Python api to interact with the Fair Data Pipeline
Project description
pyDataPipeline
Welcome to pyDataPipeline a Python api to interact with the Fair Data Pipeline.
Full documention of the pyDataPipeline is avaialable at https://www.fairdatapipeline.org/pyDataPipeline/
Installation
pyDataPipeline can be installed from PyPi:
pip3 install data-pipeline-api
Or from the Repository:
git clone https://github.com/FAIRDataPipeline/pythonFDP.git
git checkout dev
pip3 install -e .
NB. PyDataPipeline requires Python3.
Example submission_script
Assume FDP_CONFIG_DIR, storage_locations and objects have been set by CLI tool
import os
import fairdatapipeline as pipeline
token = os.environ['FDP_LOCAL_TOKEN']
config_dir = os.environ['FDP_CONFIG_DIR']
config_path = os.path.join(config_dir, 'config.yaml')
script_path = os.path.join(config_dir, 'script.sh')
handle = pipeline.initialise(token, config_path, script_path)
pipeline.finalise(token, handle)
SEIRS Model Example
The SEIRS Model Example is available at: https://www.fairdatapipeline.org/pyDataPipeline/examples/SEIRS.html
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
data_pipeline_api-0.7.12.tar.gz
(25.8 kB
view hashes)
Built Distribution
Close
Hashes for data_pipeline_api-0.7.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2d2573a5328c197555e85448c45df2e5a406625320d36a43142792935f254e1 |
|
MD5 | ed1bf7f53cdaa24dc2cc4f36fff34335 |
|
BLAKE2b-256 | 23ea555d9453bf983fe7fc28af1074bdb8a4fa32e8c9a48f0bb44366566d4043 |