A parser for the Readium Web Publication Manifest, OPDS 2.0 and ODL formats.
Project description
webpub manifest parser
A parser for the Readium Web Publication Manifest (RWPM), Open Publication Distribution System 2.0 (OPDS 2.0), and Open Distribution to Libraries 1.0 (ODL) formats.
Usage
Install the library with pip
pip install palace-webpub-manifest-parser
Pyenv
You can optionally install the python version to run the library with using pyenv.
-
Install pyenv
-
Install one of the supported Python 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 palace-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:
pre-commit run -a
-
To run the unit tests use the following command:
tox -e <python-version>
where
<python-version>
is one of supported python versions:- py37
- py38
- py39
- py310
For example, to run the unit test using Python 3.9 run the following command:
tox -e py39
Releasing
Releases will be automatically published to PyPI when new releases are created on github by the release.yml workflow. Just create a release in github with the version number that you would like to use as the tag, and the rest will happen automatically.
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
File details
Details for the file palace_webpub_manifest_parser-3.0.0.tar.gz
.
File metadata
- Download URL: palace_webpub_manifest_parser-3.0.0.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Linux/5.11.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96751ebbbcb22d92ec6a6c645e02fa1ccc93d6a876955ad52cc22cd9c47b96da |
|
MD5 | eff094ade1830c8db9e7ca9d5451b9f7 |
|
BLAKE2b-256 | d03b7ede34877c5037d3187a84cc7c7e60f004d4179e70874dad765bb561f51a |
File details
Details for the file palace_webpub_manifest_parser-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: palace_webpub_manifest_parser-3.0.0-py3-none-any.whl
- Upload date:
- Size: 46.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Linux/5.11.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22af2b2754754a3a0642817ad7c79ddd79acdbb1ebab2d8d81d6b561a95c048 |
|
MD5 | 4b9e3e1a61fe2d2b98a3f22ed4643c6b |
|
BLAKE2b-256 | af1b0fbbfc20a6ee5b4aef2c173f8d8832a10aa91f15d3d4774ac11e7533ba0f |