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
yProv4DA
A python utility for automatically packaging code, inputs and outputs of data visualization scripts.
Explore the docs »
Report Bug
·
Request Feature
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
provdirectory (which is customizable) and will hold all the information for the current execution, soinputs,outputsand 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,dotandsvgformats). 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: (TrueorFalse) whether the json file is created or not;YPROV4DV_CREATE_DOT_FILE: (TrueorFalse) whether the dot file is created or not, cannot beTrueifYPROV4DV_CREATE_JSON_FILEisFalse;YPROV4DV_CREATE_SVG_FILE: (TrueorFalse) whether the svg file is created or not, cannot beTrueifYPROV4DV_CREATE_JSON_FILEorYPROV4DV_CREATE_DOT_FILEareFalse;YPROV4DV_CREATE_RO_CRATE: (TrueorFalse) whether the ro-crate zip is created or not;YPROV4DV_DEFAULT_NAMESPACE: (str) changes the default namespace inside the provenance fileYPROV4DV_VERBOSE: (TrueorFalse),
For an example, run:
python ./examples/customized.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yprov4dv-1.0.5.tar.gz.
File metadata
- Download URL: yprov4dv-1.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f6bdd2ce3666fe60f61c9859c5b0004feb0a5b755b2e8faffcd638bcc48c1c3
|
|
| MD5 |
ec6cf2d638f96e5e381733f2300022ea
|
|
| BLAKE2b-256 |
0107f5ac5b04428703d64c1f2e13254a233d38117a6ac08d32a0ee8898a31817
|
File details
Details for the file yprov4dv-1.0.5-py3-none-any.whl.
File metadata
- Download URL: yprov4dv-1.0.5-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c1fea2464dc84cbe078964f699e2c3200b5ff84737f1f2d4a4a1f5cb6293f1
|
|
| MD5 |
186cc083a82644248fcef73dc3ca5bd0
|
|
| BLAKE2b-256 |
fca669245794ff1ac7814b79d07170e86d18f0061b68d46a2cb17821353caf21
|