Skip to main content

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

Project description

webpub manifest parser

Run Tests PyPI Code style: black Imports: isort pre-commit Python: 3.8,3.9,3.10,3.11

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>
    
  3. Install pyenv-virtualenv plugin

  4. Create a virtual environment:

    pyenv virtualenv <virtual-env-name>
    pyenv activate <virtual-env-name>
    
  5. 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
    
  2. Install tox and tox-pyenv globally:

    pip install tox tox-pyenv
    
  3. Make your code prettier using isort and black:

    pre-commit run -a
    
  4. 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


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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-3.0.1.tar.gz
Algorithm Hash digest
SHA256 e2e194cbf7aea97876ba869d106448ad81858b46bb113292e10eaa4863f64ba4
MD5 a1f92c1ee200bd8fa8d86b6de20f9e6a
BLAKE2b-256 80ce27e0510d5969edf4c8ef81bd7b9d0874e4995f2fcb3af429f36dec5eda94

See more details on using hashes here.

File details

Details for the file palace_webpub_manifest_parser-3.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for palace_webpub_manifest_parser-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f32c5e88d0a0e0789ccc1cbf5f3cea0e5605031f568ce1835b1ee105a579a38
MD5 fa300c42a52e208e0ef9722125b68504
BLAKE2b-256 8965862c35fa8f21bc020f097ef59f81af35d76caa7e6c695274451ef0dca272

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