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:- py38
- py39
- py310
- py311
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.1.1.tar.gz
.
File metadata
- Download URL: palace_webpub_manifest_parser-3.1.1.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7025164e2ae997371ed355355d8321685c6eb1228b86d10430e682d7316351b3 |
|
MD5 | 0e9004c5c86bc8f9876f2a743db28ebe |
|
BLAKE2b-256 | d8e06ec4877381d519b3f7de59159cf6bae4a982ea8a653bb24e661b062325d0 |
File details
Details for the file palace_webpub_manifest_parser-3.1.1-py3-none-any.whl
.
File metadata
- Download URL: palace_webpub_manifest_parser-3.1.1-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.18 Linux/6.2.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac43d7f16414810cf7aeea26b9825ae8678404887ecf7a0345aa47ad992510d8 |
|
MD5 | 7301ebfa880b8deb944b40bf2fba8324 |
|
BLAKE2b-256 | 881da3a71c73667cdafe2befbda34a41cdd3b3c6a223c26875b8427bbd28b7a6 |