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). TimeMaps are often expressed in an extension of the Web Linking (RFC5988) format. Additional, less common formats, like JSON and CDXJ TimeMaps can also express the same information in a less rigid format. CDXJ is the most flexible of the three and is used by InterPlanetary Wayback (ipwb), which sparked the initial need for this software existing.
Release files for cdxjGenerator 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cdxjGenerator-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdxjGenerator-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / cdxjGenerator-0.0.1.tar.gz
| Download URL | cdxjGenerator-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4498af152c7f0a1c947dade5d5591f7db308dcbc464a4daa3de50516cd80675a
|
|
BLAKE2b-256 checksum How to use checksums |
2636f595cb3fa679ea3bfaa83014e40835a4e655747cf701d0a03d9be3525223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.7
|
Release files / cdxjGenerator-0.0.1-py3-none-any.whl
| Download URL | cdxjGenerator-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
024c1f22965b14f8da634374c311eb54130fd48421a73bbdbe7afa4cfbe8a38a
|
|
BLAKE2b-256 checksum How to use checksums |
a5bcbccc58af2ebdd7cb10ad4ea32b7968a10b2e8d0b919e515812839a900475
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.7
|