Skip to main content

A parser for the Readium Web Publication Manifest, OPDS 2.0 and ODL formats.

Project description

webpub manifest parser

Lint & Run Tests

A parser for the Readium Web Publication Manifest (RWPM) and Open Publication Distribution System 2.0 (OPDS 2.0) 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.

  1. Install pyenv

  2. Install one of the supported Python versions:

pyenv install <python-version>
  1. Install pyenv-virtualenv plugin

  2. Create a virtual environment:

pyenv virtualenv <virtual-env-name>
pyenv activate <virtual-env-name>
  1. Install the library
pip install palace-webpub-manifest-parser

Setting up a development environment

Running tests using tox

  1. Make sure that a virtual environment is not activated and deactivate it if needed:
deactivate
  1. Install tox and tox-pyenv globally:
pip install tox tox-pyenv
  1. Make your code prettier using isort and black:
make reformat
  1. Run the linters:
make lint
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palace_webpub_manifest_parser-1.0.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

palace_webpub_manifest_parser-1.0.0-py2.py3-none-any.whl (38.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file palace_webpub_manifest_parser-1.0.0.tar.gz.

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d675a67a7ebe0886f1d461fa4746ed4e12f1900d3d9c9c69adcc444cec66857f
MD5 462a982b87ca0f2a4053f9cf9fb568c0
BLAKE2b-256 472a03c793e9aee862a9eb830a081b88a89c44748a3dffdf967e5e83c8d740b0

See more details on using hashes here.

File details

Details for the file palace_webpub_manifest_parser-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d48e35ca4fc4da3d50745e6c75ef03c2d93f89baa5baf1f98b3ea8cd340a7507
MD5 5df3d823d2876ddbce7217f96e602780
BLAKE2b-256 50aecc8a5d62faa2bed1a8ec3c470dd8acf3c11ba2af6e2e68b740c3988ecfd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page