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 attempts to follow the current Draft OCFL specification v1.1 while retaining support for v1.0. See implementation status for errors and warnings for details of validator support.

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

Installing

This code requires Python 3.

This code attempts to support the OCFL specifications v1.1 draft 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-validate.py - validate OCFL objects, OCFL storage roots or standalone OCFL inventory files

  • ocfl-object.py - build, manipulate, extract from or validate an OCFL object

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

  • 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.

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

Uploaded Source

Built Distribution

ocfl_py-1.3.0-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

Details for the file ocfl-py-1.3.0.tar.gz.

File metadata

  • Download URL: ocfl-py-1.3.0.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for ocfl-py-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6c0abf4eb76b8831d23ea41e132bb781b2957a80799d6c523fb9bb6d96984042
MD5 0f3e3e783517a68d7720376f44cbac77
BLAKE2b-256 15d86d69ecf60923ec5822c6cbe26a6c045bb449a2c7c56419bbaa2cda711bbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocfl_py-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 54.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for ocfl_py-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec9c0d581cad307296d6a72f27859e383e95c78d7b418e48ca26d6e3542af295
MD5 93a7c77d7fded49f238312deb5d93072
BLAKE2b-256 e50e2b3de10bdacf079f11f9d20cf7b2a375e7277afdc26e59fd3d3ccc1c975b

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