dataset-prep
This python package provides utilities for prepping datasets for publication, building on the Frictionless data framework and corresponding python package.
This package is currently in alpha status and provides a script for generating field-level information from a frictionless datapackage file for inclusion in a dataset readme (plain text) or accompanying data dictionary (CSV). The script assumes you have already created a datapackage to describe your dataset.
Basic Usage
Install the package from python using your preferred method (pip or uv):
pip install dataset-prep
Run the dataset-readme-info script with a path to your datapackage file. The data files
referenced in the datapackage must be present at the path specified.
[!NOTE] We highly recommend running
frictionless validateon your datapackage to ensure your dataset and your datapackage agree on the structure of your data!
To generate a plain-text list of fields with the descriptions in the datapackage file:
dataset-readme-info my-dataset/datapackage.json
The script will output text content to the console, which can be copied and pasted into the readme for your dataset.
To generate a CSV data dictionary with field information (description, type, name) for each resource described in the datapackage file, specify the path where the file should be generated:
dataset-readme-info my-dataset/datapackage.json --data-dictionary my-dataset/datadictionary.csv
Use the -h or --help option for script usage.
Examples
The dataset-readme-info script is generalized from one that was used to help prepare datasets from the Shakespeare and Company Project for publication.
The 2.0 version of the data published in 2025 includes a CSV data dictionary:
Koeser, Rebecca Sutton & Kotin, Joshua. (2025). Shakespeare and Company Project Datasets [Data set]. Version 2. Princeton University. https://doi.org/10.34770/kf6c-b079
The 1.2 version of the data published in 2022 includes field details in the README:
Kotin, Joshua, Koeser, Rebecca Sutton, et al. (2022). Shakespeare and Company Project Dataset: Lending Library Members, Books, Events [Data set]. Version 1.2. Princeton University. https://doi.org/10.34770/dtqa-2981
License
This project is licensed under the Apache 2.0 License.
(c)2025 Trustees of Princeton University. Permission granted for non-commercial distribution online under a standard Open Source license.
Metadata
Release files for dataset-prep 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dataset_prep-0.1.0.tar.gz | 52.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataset_prep-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.8 kB
Release files / dataset_prep-0.1.0.tar.gz
| Download URL | dataset_prep-0.1.0.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
780a7e3b1e9c03bbe27f22fc04eb1ccb17bd3e0f85950a8826a585b4b4e5631b
|
|
BLAKE2b-256 checksum How to use checksums |
f14b7f8040f27d57bf31c818d0701b11af904863483aa23525992522625fa682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency logRelease files / dataset_prep-0.1.0-py3-none-any.whl
| Download URL | dataset_prep-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11bf187fb0112a290fa88d436dc9e6eae0053e45913068fc2f69d3a1423926cd
|
|
BLAKE2b-256 checksum How to use checksums |
cbe7df51928b62b52241fdd779e30ac51760789ce031431d56c635b1dfbce2ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 2, 2026.
Transparency log