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 PyPI

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.

  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 releases are created on github. We use bump2version to update the version number, then create a release in github.

To publish a new release:

  • Bump the version and push it as a branch
    git checkout -b release/vX.X.X
    pip install bump2version
    bump2version {part}
    git push origin release/vX.X.X
    
  • Create a PR for new version
  • Merge PR into main
  • Create a release for the version in github

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-2.0.4.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

palace_webpub_manifest_parser-2.0.4-py2.py3-none-any.whl (47.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-2.0.4.tar.gz
Algorithm Hash digest
SHA256 8a315792ab0031e43957c6c7dc2fd57e0327a04fd05f1f7e84a4cbfbabd0f58c
MD5 70f68d8961001685710db258c9fb10b4
BLAKE2b-256 e7726434848a10016f0ce489283806487e950f70e790cd8c24cf5c2078b03d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-2.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4eecf2ee030d5a2082e8728b7350cf85b24c821e4fc872180a17963e836d277f
MD5 6f36ae6270d1de667efcaa822a1b75b5
BLAKE2b-256 551e3bb7e256ae210505fe2fba3ecb9ffb9177786ca30320089e99e7c7d265d6

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