OCFL Rehydration
OCFL Rehydration reconstitutes DRS objects from their OCFL representation
This tool has no dependencies on any external services such as the DRS database or storage. The expectation is that the OCFL object root directory for a DRS object exists on local disk. This tool takes as input the location of the OCFL object root directory and recreates the a representation of the DRS object in a form similar to what the depositor initially supplied in the DRS batch for ingest. Specifically, the resultant object is created in a directory named after the supplied object name; the data files are created with their supplied file names within directories named with their supplied names.
Build
The tool is a python command-line application that is designed to be run within a Docker container. To build the Docker image:
docker build -t rehydrate:latest .
Usage
To run the application after a Docker image has been built as detailed above:
docker run --rm --mount type=bind,source=${PWD},target=/tmp -it rehydrate -h
usage: main.py [-h] -i INPUT_DIR -o OUTPUT_DIR
Converts the OCFL form of a DRS Object and reconstitutes (rehydrates) a form expected by curators. The input is the OCFL
object root directory of object to rehydrate.
options:
-h, --help show this help message and exit
-i INPUT_DIR, --input_dir INPUT_DIR
Local directory containing the OCFL Object root of the object to rehydrate
-o OUTPUT_DIR, --output_dir OUTPUT_DIR
Local directory where rehydrated object will be written
Example
The directory '102559752' is the OCFL object root directory for a DRS object. OCFL object root directories contain the top-level 'inventory.json', the object version namaste file (e.g. '0=ocfl_object_1.0') and OCFL version directories.
docker run --rm --mount type=bind,source=${PWD},target=/tmp -it rehydrate -i /tmp/input/102559752 -o /tmp/output
Metadata
Release files for ocfl-rehydration 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ocfl_rehydration-1.1.1.tar.gz | 18.3 kB | Without provenance | Details for ocfl_rehydration-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocfl_rehydration-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for ocfl_rehydration-1.1.1-py3-none-any.whl |
Total release size: 33.6 kB
Release files / ocfl_rehydration-1.1.1.tar.gz
| Download URL | ocfl_rehydration-1.1.1.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7798b89ad15515f6c4df719b9d3ecbe82c5b19cbbc5380f907155972c578ce43
|
|
BLAKE2b-256 checksum How to use checksums |
33b8b24d8f221c8e3303202a4a7aa0e81b244aac08c972222ca29e0e18000002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.10
|
Release files / ocfl_rehydration-1.1.1-py3-none-any.whl
| Download URL | ocfl_rehydration-1.1.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68592241901402c55cd5e45220b17a73dba1c9ffea3632564bb588c6e35ccfe0
|
|
BLAKE2b-256 checksum How to use checksums |
d6c9840876bc4a2cda9601d1c399921a752b0d0f9e7ba56028c78d57baaa1bd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.10
|
Security for ocfl-rehydration 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.