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:
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
Releasing
Releases will be automatically published to PyPI when new tags are pushed into the repository. We use bump2version to update the version number and create a tag for the release.
To publish a new release:
pip install bump2version
bump2version {part}
git push origin main --tags
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-2.0.0.tar.gz
.
File metadata
- Download URL: palace_webpub_manifest_parser-2.0.0.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.10 Linux/5.4.0-1047-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e81f9b0d77da06c60538b52b667fd76e1aeb804286982395f1c4e31e1418b84e |
|
MD5 | 00b50bc943258b235a85eb5025b3a985 |
|
BLAKE2b-256 | 41836a6653811b2b1038c1ff0150121c0477634673b816d01f12f1ecf9fe0708 |
File details
Details for the file palace_webpub_manifest_parser-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: palace_webpub_manifest_parser-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 47.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.10 Linux/5.4.0-1047-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b56a5b06d0830f5ee3647c51e267dc01a66d53ea67d870d936f013acf8f3509 |
|
MD5 | 17bec40ea0f08fdb4d1d772fecf08e42 |
|
BLAKE2b-256 | 70bde90cac22e634b71c5df647d177eefa283fa50ba067b568a95ed54d43ff4d |