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 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
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.1.tar.gz
.
File metadata
- Download URL: palace_webpub_manifest_parser-2.0.1.tar.gz
- Upload date:
- Size: 36.9 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 | 6b60b878f32d6a412b3b77c4d2372076e40e7effecb2f184d6305fa4a426aa8b |
|
MD5 | c6938f762c830e78f99acc49d35d378b |
|
BLAKE2b-256 | 97e28c1aeb9b9661c7187dd587a8b9895e39ee81ea852cda0351254618e24190 |
File details
Details for the file palace_webpub_manifest_parser-2.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: palace_webpub_manifest_parser-2.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 47.2 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 | b7bcfe2b9e69d790550cea978128d28f11541d86ee5f217fbb2fcfe4a93d7946 |
|
MD5 | 76a4b04fd9e5bfa47cf7792e11918221 |
|
BLAKE2b-256 | 815afa5766f809da541eaf4f3819c35640aac7d6183650ce17bfd290aa402e26 |