skillfed

bdbag

Big Data Bag Utilities

bdbag v1.8.0 119.0K downloads/30d#12,095 on PyPI
Permissive license AGING released

What it is and what it does

bdbag is a toolkit for creating and managing BagIt packages—a standardized format for bundling research data with metadata, checksums, and references to remote files. It wraps and extends the Bagit-Python library and Bagit-Profiles-Validator, adding features like in-place bag updates, automatic archiving (ZIP, TAR, TGZ), and multi-protocol file retrieval (HTTP, FTP, S3, Google Cloud Storage, Globus). The package enforces BDBag and Bagit/RO profiles, which specify required manifests and serialization rules, making it useful for researchers and data repositories that need to exchange large, complex datasets in a reproducible, verifiable format.

The tool works both as a command-line utility and as a Python API, allowing integration into data pipelines. It depends on seven runtime libraries (pytz, tzlocal, certifi, packaging, requests, bagit, bagit-profile) and installs with low friction as a pure-Python wheel. It supports Python 3.8 through 3.12 and carries no known security vulnerabilities.

Use it for:

  • Create and validate research data packages that conform to BagIt standards for submission to data repositories.
  • Automatically generate manifest and fetch.txt entries for datasets that include remote files from multiple sources.
  • Retrieve remote files referenced in a bag's fetch.txt using HTTP, FTP, S3, or Globus Transfer protocols.
  • Update existing bags in place without re-creating the entire structure, useful for iterative data curation.
  • Serialize bags into ZIP, TAR, or TGZ archives for distribution while preserving integrity metadata.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

bdbag creates, validates, and manages BagIt packages—standardized containers for research data that bundle files with checksums, metadata, and remote file references—supporting multiple serialization formats and transport protocols.

Yes, if you work with research data packaging or need to exchange large datasets in a standardized, verifiable format. The low install friction, lack of security issues, and support for current Python versions make it straightforward to adopt. The aging maintenance status (319 days since release) is a minor concern for a stable, feature-complete tool but warrants checking whether active development has simply paused or shifted elsewhere.

Install

bdbag on PyPI

pip

pip install bdbag

uv

uv add bdbag

poetry

poetry add bdbag

Installing bdbag

Before you install

Low install friction with a pure-Python wheel. Maintenance status is aging (319 days since last release), but the package supports current Python versions (3.8–3.12) and carries no known security vulnerabilities.

License in practice

Licensed under Apache License (permissive), allowing commercial and private use with minimal restrictions.

Quickstart

pip install bdbag

from bdbag import bdbag
bdbag.make_bag('/path/to/data', 'my-bag')

Requires Python 3.8 or later; optional extra dependencies (boto, globus) available for S3 and Globus transfer support.

Verify before relying

  • Whether the aging maintenance status (319 days since release) reflects active stewardship or dormancy in a stable, feature-complete tool.
  • Performance characteristics when handling very large datasets or deeply nested directory structures.
  • Compatibility with the latest BagIt specification versions and any breaking changes in upstream bagit or bagit-profile libraries.

Package facts

License not declared (permissive)
Python support supports the current Python release (<4,>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 7 — pytz, tzlocal, certifi, packaging, requests, bagit, bagit-profile
Maintenance aging — 319 days since the last release
First released
Downloads 118,968/month — #12,095 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: bdbag-1.8.0-py3-none-any.whl

Intended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

bagit package creation and validationresearch data packaging utilitiesbig data bag managementfetch.txt remote file handlingbagit profile compliance checking
data-packagingresearch-databagit-standard

More Utilities packages