cdxjGenerator-0.0.1


توضیحات

Generate CDXJ TimeMaps for testing elsewhere
ویژگی مقدار
سیستم عامل -
نام فایل cdxjGenerator-0.0.1
نام cdxjGenerator
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Mat Kelly
ایمیل نویسنده me@matkelly.com
آدرس صفحه اصلی https://github.com/machawk1/cdxjGenerator
آدرس اینترنتی https://pypi.org/project/cdxjGenerator/
مجوز MIT
# CDXJ Generator A Python script to generate CDXJ TimeMaps for testing elsewhere. # Install This tool is published to pypi. To install it: `pip install cdxjGenerator` To use the development version, clone this repository then `pip install .` ## Usage These inststructions assume installation via `pip`. To run: cdxjGenerator [number of lines] [URI-R] For example: cdxjGenerator 12 ...will generate CDXJ output (to stdout by default) consisting of entries for 12 random URIs. Alternatively: cdxjGenerator 25000 memento.us ...will generate 25,000 entries for the URI-R `memento.us`. This output can be written to a file like: cdxjGenerator 25000 memento.us > sample.cdxj The resulting file will likely need to be sorted before used elsewhere. Do this via: LC_ALL=C sort sample.cdxj > sample_sorted.cdxj This can also be performed in a single command, instead of writing to the temporary, unsorted `sample.cdxj` like: cdxjGenerator 25000 memento.us | LC_ALL=C sort > sample_sorted.cdxj ## Background TimeMaps are lists that enumerate URIs of resources that encapsulate prior states of the given resource. ([RFC7089 - Memento](https://tools.ietf.org/html/rfc7089)). TimeMaps are often expressed in an extension of the Web Linking ([RFC5988](https://tools.ietf.org/html/rfc5988)) format. Additional, less common formats, like JSON and CDXJ TimeMaps can also express the same information in a less rigid format. [CDXJ](https://github.com/oduwsdl/ORS/wiki/CDXJ) is the most flexible of the three and is used by [InterPlanetary Wayback (ipwb)](https://github.com/oduwsdl/ipwb), which sparked the initial need for this software existing.


نیازمندی

مقدار نام
- Faker
>=0.3.0 surt
- tlds


نحوه نصب


نصب پکیج whl cdxjGenerator-0.0.1:

    pip install cdxjGenerator-0.0.1.whl


نصب پکیج tar.gz cdxjGenerator-0.0.1:

    pip install cdxjGenerator-0.0.1.tar.gz