This release is a pre-release and may not be stable for production use.
Data Director inventory
dd-inventory describes a dataset's files where they live. It reads every file under a folder
and writes a FileInventory, a JSON document of the core contract, that gives for each file:
- its path relative to the folder;
- its size and its SHA-256 digest;
- its media type and every PRONOM identifier it matched, found with fido, and whether the match was by byte signature, container signature or extension only;
- for a CSV or TSV table, its fields as a Frictionless Table Schema inferred from a sample of rows.
The inventory holds facts about the files and never their content. Research data are not uploaded to Data Director: the researcher adds the inventory to their project instead (Projects). The digests let the files deposited later be shown to be the files described.
$ uv run dd-inventory path/to/dataset -o inventory.json
The package installs two names for the same command, dd-inventory and data-director-inventory,
so that uvx data-director-inventory path/to/dataset works. It is published to PyPI and, for trying a release first, TestPyPI (RELEASING.md).
A researcher without a checkout runs it with uvx and attaches the file to a conversation in the
app; the user guide's Making an inventory
says how.
Hidden files and folders (names beginning with .) are skipped, symbolic links are not
followed, and both are counted in inventory_limitations. If fido cannot be loaded, formats are
guessed from file extensions and the inventory says so.
To read an inventory in TypeScript, as the app does to show one to the researcher, use
@data-director/inventory in browser/, which is not part of this Python
package.
The package does not depend on the contract or any other part of Data Director
(System and boundaries). Its tests check
what it writes against the contract's FileInventory schema.
| Module | What it does |
|---|---|
scan.py |
Walks the folder, digests each file and assembles the inventory. |
identify.py |
The one module that calls fido, with the extension fallback. |
tables.py |
Infers a table's fields with Frictionless. |
cli.py |
The dd-inventory command. |
Metadata
Release files for data-director-inventory 0.1.0a3
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 |
|---|---|---|---|---|
| data_director_inventory-0.1.0a3.tar.gz | 13.7 kB | Without provenance | Details for data_director_inventory-0.1.0a3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_director_inventory-0.1.0a3-py3-none-any.whl | Python 3 | none | any | Details for data_director_inventory-0.1.0a3-py3-none-any.whl |
Total release size: 24.1 kB
Release files / data_director_inventory-0.1.0a3.tar.gz
| Download URL | data_director_inventory-0.1.0a3.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
377ba3a5435c71abf21fb0fd60443c4e33a87414b7f25179b719287eb9b79300
|
|
BLAKE2b-256 checksum How to use checksums |
a960f50b9f7db3d9e786f263e7b7af39e1e1b621070f7c44a8b72f5d4598eff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / data_director_inventory-0.1.0a3-py3-none-any.whl
| Download URL | data_director_inventory-0.1.0a3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1034fdf4592cfb159206aa01cec2c535bc9019bc7658e15fd8aba5eaa5b33fe0
|
|
BLAKE2b-256 checksum How to use checksums |
681d21a02b2d9123417753f774d40d3dd26d9097eb96ef26df2bdc51f0725c13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for data-director-inventory 0.1.0a3
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.