Ilya Kreymer
cb244a8c25
more readme tweaks
2014-03-14 11:19:05 -07:00
Ilya Kreymer
535cbc6dde
update README
2014-03-14 11:05:05 -07:00
Ilya Kreymer
14a12f95b2
pep8 fixes, improve docs for proxy
...
move CaptureException into replay_views
2014-03-14 11:02:03 -07:00
Ilya Kreymer
bdcda1df6f
add test config for memento #10
2014-03-14 11:01:47 -07:00
Ilya Kreymer
a1ab54c340
first pass at memento support #10 !
...
memento support enabled by default, togglable via 'enable_memento' config property
supporting timegate and memento apis, no timemap yet
supporting pattern 2.3 for archival and pattern 1.3 for proxy modes
also:
simplify exception hierarchy a bit more, move down to utils
make WbRequest and WbResponse extensible with mixins (eg for memento)
2014-03-14 10:46:20 -07:00
Ilya Kreymer
dd9a2c635f
disable pypy travis builds for now
2014-03-13 22:38:56 -07:00
Ilya Kreymer
29ecadee54
update README, fix setup.py typo
2014-03-12 18:35:21 -07:00
Ilya Kreymer
3222f3ee08
update setup, remove markdown readme
2014-03-12 17:57:54 -07:00
ikreymer
78af82d6b1
Fixes for README.rst
...
badges, tables finally working.
2014-03-12 17:50:47 -07:00
ikreymer
681fd79974
Update README.rst
...
Fix badges
2014-03-10 19:25:14 -07:00
Ilya Kreymer
1c85aebbf0
fix setup.py
2014-03-10 19:19:41 -07:00
Ilya Kreymer
fe9eaea006
update setup.py classifiers
2014-03-10 19:11:19 -07:00
Ilya Kreymer
f578bdf5de
add README.rst
2014-03-10 19:01:20 -07:00
Ilya Kreymer
45972df6c4
minor fixes, copyright update
2014-03-10 18:45:45 -07:00
Ilya Kreymer
3322fb233f
fixup wb and wombat.js:
...
fix formatting to 4-tab snake_case, remove obsolete code
2014-03-10 00:55:41 -07:00
Ilya Kreymer
e3d700a50f
wombat improvements: override history, ajax and use
...
seeded random number gen (with seed from capture timestamp)
2014-03-10 00:10:20 -07:00
Ilya Kreymer
e346dfb024
remove accidental logging
2014-03-09 23:03:55 -07:00
Ilya Kreymer
e384425d48
proxy cleanup: move HttpsUrlRewriter to url_rewriter module,
...
move strip_scheme to replay_views where it is used
regex rewriters: use url rewriter for rewriting http:// in JS,
instead of just prefix, to support custom rewriters (such as
https->http rewriter in proxy mode)
2014-03-09 14:21:32 -07:00
Ilya Kreymer
68878fa72a
update domain-specific rules to make flickr replay work better!
2014-03-08 15:53:52 -08:00
archiveit
4fdcdc98ae
replay: ignore 304 captures
2014-03-08 23:46:59 +00:00
Ilya Kreymer
584d826f05
rewrite: fix html rewriting, if forcing end </script>, </style>,
...
don't actually output to preserve original
wombat: copy over all Location settings
wburl: convert :/ -> :// if 2nd slash missing, only check for <scheme>:/
and ignore subsequent slashes
2014-03-08 15:10:35 -08:00
Ilya Kreymer
541c076b77
setup: add cli scripts for wayback, cdx-server
...
fix logging of app name, make most logging debug
2014-03-08 15:09:53 -08:00
Ilya Kreymer
40b7a8e921
move pytest args to pytest.ini
2014-03-08 09:30:56 -08:00
Ilya Kreymer
3b1afc3e3d
replace StringIO with BytesIO
2014-03-08 09:30:19 -08:00
ikreymer
1a6f2e2fe1
Merge pull request #32 from kngenie/add-api-docs
...
add api doc pages for all modules with sphinx-apidoc
2014-03-07 16:02:36 -08:00
Kenji Nagahashi
4e7ec4dede
Merge remote-tracking branch 'origin/master' into add-api-docs
2014-03-07 20:14:40 +00:00
Kenji Nagahashi
1829de2123
add API doc for all packages with sphinx-apidoc
2014-03-07 20:09:33 +00:00
Ilya Kreymer
e3618871c8
proxy: support setting hostname via env variable
2014-03-07 11:42:09 -08:00
Ilya Kreymer
a60ab1f118
routing/proxy: pass in hostpaths to proxy routing
...
add PYWB_HOST_NAME env var to allow overriding default hostname
add request_hostname jinja filter
2014-03-07 10:29:11 -08:00
Ilya Kreymer
702e5e0143
perms test: moved test perms policy to perms/test/test_perms_policy.py
...
all perms related configs exist within perms package
2014-03-06 18:24:53 -08:00
Ilya Kreymer
681c2fd8d5
perms: refactor perms config to make interface much clearer
...
'perms_policy' is a callback which returns a Perms object, which may
filter cdx lines from the response
2014-03-06 18:06:05 -08:00
Ilya Kreymer
7b5cbaa878
cdx: clean up closest, reverse ops
...
closest takes precedence over reverse
'reverse closest' not supported, add test to reflect that
2014-03-06 16:11:46 -08:00
Ilya Kreymer
c42a96386f
cdx: fix the 'yield nothing' case when limit==1
...
add additional test case for limit==1 and reverse=True,
as limit is optimized out
2014-03-06 16:01:49 -08:00
Ilya Kreymer
4e71a0b772
better rules.yaml fix
2014-03-06 02:51:54 -08:00
Ilya Kreymer
3718e1d21b
rewrite fixes: html_rewriter do not unescape attrs!
...
rules: don't rewrite past end of block or line
2014-03-06 02:29:52 -08:00
Ilya Kreymer
673ff35d15
minor fixes: wombat add document.WB_wombat_location
...
loaders: file 'urls' starting with . and / are always file paths
pep8 fixes for cdx, utils packages
2014-03-05 17:13:14 -08:00
Kenji Nagahashi
28b49f9aeb
add doc directory for Sphinx documentation
2014-03-05 23:03:04 +00:00
ikreymer
03ebca47c0
Merge pull request #29 from kngenie/just-a-cleanup
...
clean up docstrings: fix reST formatting issues.
2014-03-05 14:36:07 -08:00
Kenji Nagahashi
64f4699203
clean up docstrings: fix reST formatting issues.
...
cherry-picked f03e0a7092 + some more.
2014-03-05 22:07:27 +00:00
Ilya Kreymer
daf868fd61
README tweaks
...
update setup.py to support setup.py test!
.travis.yml uses python setup.py test
2014-03-05 11:19:26 -08:00
Ilya Kreymer
25a8514352
Update README (move pywb configuration section to wiki),
...
recommend running pywb.apps.wayback
make uWSGI optional (but included in Vagrant)
rename run.sh -> run-uwsgi.sh
2014-03-05 10:42:08 -08:00
Ilya Kreymer
fe1fa43fef
zipnum: remove time-based reloading for now, just look at mtime
...
and reload if changed
2014-03-04 21:29:05 -08:00
Ilya Kreymer
df2f7ba496
warc: add digest filter only if digest is present for url-agnostic load
...
ensure cdxobject format set on cdx load callback
limit reader: add length wrappign utility func to limitreader
2014-03-05 05:12:25 +00:00
Ilya Kreymer
9690d84798
travis-ci: attempt to fix 2.6 build
2014-03-04 19:36:29 -08:00
Ilya Kreymer
f25de8af2a
tweak travis pip install config
2014-03-04 19:17:33 -08:00
Ilya Kreymer
cc22448cc5
fixes for 2.6 and pypy
2014-03-04 19:11:17 -08:00
Ilya Kreymer
2d48f2d733
add testing of 2.6 and pypy (attempt)
2014-03-04 18:12:36 -08:00
Ilya Kreymer
202f6101e0
coverage work! add additional test for wsgi_wrappers
...
additional test for zipnum bad location
for now, not testing cli interfaces which depend on opt params
2014-03-04 16:13:49 -08:00
Ilya Kreymer
d702a98bbc
url-agnostic revisit testing!
...
add sample warc and cdx for url-agnostic revisits
add unit test and integration test
resolvingloader: pass callback instead of full cdx server
for use for loading cdx in case of url-agnostic revisit
2014-03-04 20:12:09 +00:00
Ilya Kreymer
cf5aaf5de4
add new perms_handler for supporting direct permissions api
...
currently just returning ["allow"] or ["block"] for a single url
2014-03-03 19:37:37 -08:00