Skip to main content

ocfl-py - A Python implementation of OCFL

Project description

ocfl-py is a Python reference implementation of the Oxford Common File Layout (OCFL). It also provides a number of command-line tools that may be useful for validating and manipulating OCFL Objects and OCFL Storage Roots. The code implements the current OCFL specification v1.1 while retaining support for v1.0. See implementation status for errors and warnings for details of validator support.

See ocfl-py documentation on ReadTheDocs.

Installing

This code requires Python 3.

This supports the OCFL specifications v1.1 and v1.0. To get the most up to date version check out the main branch from github.

I hope to keep a fairly current version on PyPI, which can be installed or upgraded with:

pip install –upgrade ocfl-py

The latest version is in the main branch on github.

Use

There should then be four command-line scripts available:

  • ocfl-root.py - add or access OCFL objects under an OCFL storage root

  • ocfl-validate.py - validate OCFL objects, OCFL storage roots or standalone OCFL inventory files

  • ocfl-object.py - build, manipulate, extract from or validate a stand-alonde OCFL object

  • ocfl-sidecar.py - update OCFL inventory sidecar file (useful for manually building examples and test cases)

Each script takes -h for help.

See examples in docs folder for use of these scripts.

The code is also available as a module ocfl for other python code to use.

Contributing

Bug reports welcome as github issues.

See CONTRIBUTING.md for guidelines for contributing.

Other Python OCFL Code

See also OCFL-Core which is another Python implementation of OCFL, designed to support the InvenioRDM repository, and other OCFL implementations.

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

ocfl_py-2.0.2.tar.gz (101.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocfl_py-2.0.2-py3-none-any.whl (85.8 kB view details)

Uploaded Python 3

File details

Details for the file ocfl_py-2.0.2.tar.gz.

File metadata

  • Download URL: ocfl_py-2.0.2.tar.gz
  • Upload date:
  • Size: 101.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for ocfl_py-2.0.2.tar.gz
Algorithm Hash digest
SHA256 6db535cf83e1df583fe7e2c080d1ca89a60bc8deaf055d099a7bbb02275c35e0
MD5 c94e3ba5f68419a4d1c8e77262fd41cd
BLAKE2b-256 45dc214c08b0b9dab25f5bcacb3d55c70be0aca9d78c768526d78ad3b51a689e

See more details on using hashes here.

File details

Details for the file ocfl_py-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: ocfl_py-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 85.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for ocfl_py-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f734d4b69c805bff6349cf6db463ad9ee8f4a991e4952530aaf991980483f0
MD5 eef512836faec6c2da1781ef52ee43d9
BLAKE2b-256 0a5a47e42bbaf0841745f24a696fa345608c92322ecbaddc605a0187d68f6844

See more details on using hashes here.

Supported by

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