BDRC Bagging
Uses the Library of Congress bag standard, implemented by the python bagit project bagit 1.8.1 to create and unpack bags of BDRC works.
Hyper important. The build system has changed:
pip install --upgrade build
python -m build --wheel
The setup.py is deprecated. The new build system is pyproject.toml
Usage
❯ bdrc-bag --help
usage: -[d|b] [-p] [-t] src dst
Unzips a LOC Bag, validates it, and extracts the payload
positional arguments:
src Source directory, if bagging, source zip if debagging
dst if bagging, container for zipped bag. If debagging, container for work
options:
-h, --help show this help message and exit
-d, --debag unzip and debag
-b, --bag bag and zip
-v, --verbose Verbose
-p, --preserve Preserve Original Source
-t TEMPDIR, --tempdir TEMPDIR
Override system temporary directory. Created if not exists
-i, --in-daemon We're in a daemon, so don't multiprocess - DONT USE ON COMMAND LINE!
Packaging BDRC Bag applications
BDRC has been packaging its internal utilities as pip modules,
but you can build and ship standalone modules which contain all their requirements.
They get large, so we'd have to package multiple commands into a module. Since you can only specify one entry point (unlike pip, where you can emit many commands using the same module, you can only have one entry point per archive,
To build a standalone executable, you run two programs in the bdrc-bag directory:
./setup-bag-build.sh which prepares the executable's self-contained runtime environment ./build-bag-exe.sh` which builds the executable
Deprecated functionality
(Deprecated) - Direct file system access on Synology NAS is unknown - SYnology embeds their share control files in the target file systems. Installing bdrc-bag utility on Synology NAS
- install Python3 package using DSM
- Connect to your Synology NAS through ssh
- Install pip
- wget https://bootstrap.pypa.io/get-pip.py
- sudo python3 get-pip.py
- Script will let you know where 'pip' is now installed. Make sure to add to your PATH.
Changelog
| version | commit | description |
|---|---|---|
| 0.0.07 | 67985c1 | fix error handling bug |
| 0.0.06 | b6b0f13 | transition to standalone and pyproject.toml installation |
| 0.0.04 | d9d656df | Incrementally add a bag to its zip |
| 0.0.03 | ec875566 | Support single process to run in docker |
Metadata
Release files for bdrc-bag 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bdrc_bag-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / bdrc_bag-0.0.7-py3-none-any.whl
| Download URL | bdrc_bag-0.0.7-py3-none-any.whl |
|---|---|
| Size | 58.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95cbc7bdf842b6fdb5262b9fd2a1e1054054ab884466469245711262323deaa1
|
|
BLAKE2b-256 checksum How to use checksums |
6c0822d71b9354ca64a0e1148033d70e09424649a16ddfcd697702d644a94a98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.20
|
Security for bdrc-bag 0.0.7
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.