macOS
brew install bagitlocal Homebrew formula metadata
brew
Library for creation, manipulation, and validation of bags. Version 1.9.0 via Homebrew; verified from local package data.
install
brew install bagitlocal Homebrew formula metadata
overview
Library for creation, manipulation, and validation of bags
history
bagit is the Library of Congress-maintained Python library and command-line utility for creating, reading, and validating BagIt packages. Its importance comes from the BagIt format more than from the code itself: BagIt is a simple directory layout for reliable transfer and preservation of arbitrary digital content.
The BagIt format was developed in the digital-preservation community and standardized as RFC 8493 in October 2018 by contributors from the California Digital Library, Stanford Libraries, the Library of Congress, and others. The RFC describes BagIt as a filesystem hierarchy with payload files, tag files, manifests, and checksum validation rather than as a compressed archive format.
The bagit-python repository was created under the Library of Congress GitHub organization in 2013. Its README presents the package as both a Python module and a `bagit.py` command-line program for turning directories into bags, updating bag metadata, regenerating manifests, and validating bags.
RFC 8493 notes BagIt use across preservation organizations including the Library of Congress, Dryad Data Repository, NSF DataONE, the Rockefeller Archive Center, and university libraries including Cornell, Purdue, Stanford, Ghent University, New York University, and the University of California.
In package-manager culture, `bagit` is a small but durable archival utility: Homebrew packages it as a formula, and the formula API reported stable version 1.9.0 with 19 installs in the previous 30 days as of June 30, 2026.
Common CLI workflows are `bagit.py /path/to/dir` to create a bag, `bagit.py --validate /path/to/bag` to validate manifests and payloads, and checksum flags such as `--sha256` or `--sha512` to control manifest generation. The module API exposes the same ideas through `bagit.make_bag`, `bagit.Bag`, `save`, and `validate`.
bagit is a package nerd's preservation tool: it turns a normal directory tree into a self-describing, checksum-verifiable transfer object without forcing data into tar or zip. It is the kind of small CLI that matters in archives, data repositories, and reproducible handoffs precisely because its format is boring and inspectable with ordinary filesystem tools.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bagit.py | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://libraryofcongress.github.io/bagit-python/
install metadata
| Package key | brew:bagit |
|---|---|
| Version | 1.9.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/bagit |
| Homepage | https://libraryofcongress.github.io/bagit-python/ |
| Repository | https://github.com/LibraryOfCongress/bagit-python |
| Upstream docs | https://libraryofcongress.github.io/bagit-python |
| License | CC0-1.0 |
| Source archive | https://files.pythonhosted.org/packages/a1/a0/8866b4c6f894af0eb10e4964157f3241dd4117700fc010e7825471d51a13/bagit-1.9.0.tar.gz |
| Dependencies | python@3.14 |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bagit |
| Version Scheme | 1 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.