Skip to main content

A Python package for keeping track of your data processing steps

Project description

PyPI version Documentation Status Downloads License: MIT

Command line provenance

cmdline_provenance is a Python package for keeping track of your data processing steps.

It was inspired by the popular NCO and CDO command line tools, which automatically generate a record of what was executed at the command line, append that record to the history attribute from the input (netCDF) data file, and then set the new extended record as the history attribute of the output (netCDF) data file.

For example, after selecting the 2001-2005 time period from a rainfall data file and then deleting the long_name file attribute, the command log would look as follows:

Fri Dec 08 10:05:47 2017: ncatted -O -a long_name,pr,d,, rainfall_data_2001-2005.nc
Fri Dec 01 07:59:16 2017: cdo seldate,2001-01-01,2005-12-31 rainfall_data_1850-2005.nc rainfall_data_2001-2005.nc

Following this simple approach to data provenance, it is possible maintain a record of all data processing steps from intial download/creation of your data files to the end result (e.g. a .png image).

cmdline_provenance contains a series of functions for generating history records in the NCO/CDO format, and for combining the current record with previous records to maintain a complete command log.

Documentation

http://cmdline-provenance.readthedocs.io/en/latest/

Installation

pip install cmdline-provenance

or

conda install cmdline_provenance

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdline_provenance-1.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

cmdline_provenance-1.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file cmdline_provenance-1.1.0.tar.gz.

File metadata

  • Download URL: cmdline_provenance-1.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for cmdline_provenance-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3da89243cd315ed2d7929887ebcb82ee00c3a288e00b80e227b8ec51174ed868
MD5 707ce3d60af22d631341f372e9464fe7
BLAKE2b-256 337b55edb87403c5a8cf318a5fa1fa87a811a451e6b6ceb26e53a172e663d46f

See more details on using hashes here.

File details

Details for the file cmdline_provenance-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cmdline_provenance-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5b050ff9d87133af64998d5d4c1876b0eb1f8b5b4787d9fcece22a83f67294
MD5 d1b843beb76973e81854c621f4875470
BLAKE2b-256 0abf6cbb5e8852cf2c09de0b424c861db68fd7230ee321079561a81200fa9df8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page