A parser for the Readium Web Publication Manifest and OPDS 2.0 formats.
Project description
python-webpub-manifest-parser
A parser for the Readium Web Publication Manifest (RWPM) and Open Publication Distribution System 2.0 (OPDS 2.0) formats.
Usage
-
Install pyenv
-
Install one of the supported Python versions mentioned in .python-version or other PATCH versions of the same MINOR versions:
pyenv install <python-version>
-
Install pyenv-virtualenv plugin
-
Create a virtual environment:
pyenv virtualenv <virtual-env-name>
pyenv activate <virtual-env-name>
- Install the library
pip install webpub-manifest-parser
Setting up a development environment
Running tests using tox
- Make sure that a virtual environment is not activated and deactivate it if needed:
deactivate
- Install
tox
andtox-pyenv
globally:
pip install tox tox-pyenv
- Make your code prettier using isort and black:
make reformat
- Run the linters:
make lint
- To run the unit tests use the following command:
make test-<python-version>
where <python-version>
is one of supported python versions:
- py27
- py36
- py37
- py38
For example, to run the unit test using Python 2.7 run the following command:
make test-py27
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for webpub_manifest_parser-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05e17a09db96319c51f71d9433d3c2bc06a05b30955f98f2b307850ac8e12265 |
|
MD5 | 73462d922a187e11d18acf57036e5490 |
|
BLAKE2b-256 | 0efbf904f57212a0576a6e3eab59fddbba518d3547c4af5b4bf983d5a96f4865 |
Close
Hashes for webpub_manifest_parser-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c839340dbe0a2bce2edb88323608b26b39a8166a0b98029f7e2013f0a3d95b2 |
|
MD5 | 3cbf2bf75c700bbbca4f896545a19fdd |
|
BLAKE2b-256 | c0eb48b4e01ff43bebf48ccae59e3b92354a959d447231deb622d3b8ed8df1ed |