Skip to main content

yProv4DV (Data Visualization) is a python utility which allows for packaging of code, inputs and outputs of data visualization scripts. Once integrated, it will produce a zip file which includes all information necessary for reproducibility of the current script, including a copy of the files used.

Project description

HPCI Lab Logo

yProv4DA

A python utility for automatically packaging code, inputs and outputs of data visualization scripts.
Explore the docs »

Report Bug · Request Feature


Contributors Forks Stars Issues GPLv3 License

yProv4DV

yProv4DV (Data Visualization) is a python utility which allows for packaging of code, inputs and outputs of data visualization scripts. Once integrated, it will produce a zip file which includes all information necessary for reproducibility of the current script, including a copy of the files used. This library is part of the yProv framework, which means it can also produce W3C-prov compliant files useful for interpretability and reproducibility.

Installation

pip install yprov4dv

Example

Inside the examples folder is contained an example of a simple data visualization script in python. It is already integrated with the yProv4DV library, and can be run with the prompt:

python ./examples/simple.py

This execution will create:

  • The prov directory (which is customizable) and will hold all the information for the current execution, so inputs, outputs and source code (src), all in their respective folders. Additionally, in the same directory, the library creates a set of provenance files, containing a description of the current execution (in .json, dot and svg formats).
  • prov.zip: containining all the aforementioned information in a zipped RO-Crate.

Customization

To keep the number of yprov4dv calls to a minimum, the customization of the library behaviour can be changed using environment variables. All possible fields are listed below:

  • YPROV4DV_PROVENANCE_DIRECTORY: (str) changes where the inputs, outputs and code directory are stored;
  • YPROV4DV_PREFIX: (str) changes the prefix given to fields in the provenance document;
  • YPROV4DV_RUN_NAME: (str) changes the run name inside the provenance file;
  • YPROV4DV_CREATE_JSON_FILE: (True or False) whether the json file is created or not;
  • YPROV4DV_CREATE_DOT_FILE: (True or False) whether the dot file is created or not, cannot be True if YPROV4DV_CREATE_JSON_FILE is False;
  • YPROV4DV_CREATE_SVG_FILE: (True or False) whether the svg file is created or not, cannot be True if YPROV4DV_CREATE_JSON_FILE or YPROV4DV_CREATE_DOT_FILE are False;
  • YPROV4DV_CREATE_RO_CRATE: (True or False) whether the ro-crate zip is created or not;
  • YPROV4DV_DEFAULT_NAMESPACE: (str) changes the default namespace inside the provenance file
  • YPROV4DV_VERBOSE: (True or False),

For an example, run:

python ./examples/customized.py

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

yprov4dv-1.0.6.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yprov4dv-1.0.6-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file yprov4dv-1.0.6.tar.gz.

File metadata

  • Download URL: yprov4dv-1.0.6.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yprov4dv-1.0.6.tar.gz
Algorithm Hash digest
SHA256 0e1d27367c4f807107a7d7962da71f98bb5c54eaea9aa66091b9027756382156
MD5 de5a3ff6e56a7f79e8b4fc628a2dd3a3
BLAKE2b-256 a29511476fcae7decc36fc413854e840f3bdfe32674e73833f4b810686083c16

See more details on using hashes here.

File details

Details for the file yprov4dv-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: yprov4dv-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for yprov4dv-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 781fbd51882d0842556f371d89b4c5af6744c1e3379f8532890e31dd29f5f15b
MD5 e0a54ec9cd84e92bbfcbd42dd767b653
BLAKE2b-256 276a87b28d1ea92be8282dd0f3e98a01c6012cb89aa5581a8fcae6d735491801

See more details on using hashes here.

Supported by

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