data_pipeline_api 0.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data_pipeline_api/__init__.py +27 -0
- data_pipeline_api/ext/SEIRSModelRun.py +43 -0
- data_pipeline_api/ext/SEIRSconfig.yaml +31 -0
- data_pipeline_api/ext/SEIRSconfigWindows.yaml +31 -0
- data_pipeline_api/ext/__init__.py +0 -0
- data_pipeline_api/ext/static_params_SEIRS.csv +8 -0
- data_pipeline_api/fdp_utils.py +517 -0
- data_pipeline_api/link.py +218 -0
- data_pipeline_api/pipeline.py +611 -0
- data_pipeline_api/raise_issue.py +255 -0
- data_pipeline_api-0.8.0.dist-info/LICENSE +674 -0
- data_pipeline_api-0.8.0.dist-info/METADATA +75 -0
- data_pipeline_api-0.8.0.dist-info/RECORD +14 -0
- data_pipeline_api-0.8.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: data_pipeline_api
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: Python api to interact with the Fair Data Pipeline
|
|
5
|
+
Home-page: https://www.fairdatapipeline.org/
|
|
6
|
+
License: GNU General Public License v3.0
|
|
7
|
+
Keywords: FAIR Data Pipeline,FAIR,Data Management,Provenance
|
|
8
|
+
Author: Ryan J Field
|
|
9
|
+
Author-email: ryan.field@glasgow.ac.uk
|
|
10
|
+
Requires-Python: >=3.9,<4.0
|
|
11
|
+
Classifier: License :: Other/Proprietary License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Requires-Dist: PyYAML (>=6.0,<7.0)
|
|
18
|
+
Requires-Dist: matplotlib (==3.*)
|
|
19
|
+
Requires-Dist: requests (>=2.23.0,<3.0.0)
|
|
20
|
+
Requires-Dist: scipy (>=1.7.3,<2.0.0)
|
|
21
|
+
Project-URL: Issue Tracker, https://github.com/FAIRDataPipeline/pyDataPipeline/issues
|
|
22
|
+
Project-URL: Repository, https://github.com/FAIRDataPipeline/pyDataPipeline
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# pyDataPipeline
|
|
26
|
+
|
|
27
|
+
[](https://pypi.org/project/data-pipeline-api/) [](https://pypi.org/project/data-pipeline-api/)
|
|
28
|
+
[](https://github.com/FAIRDataPipeline/pyDataPipeline/actions/workflows/pyDataPipeline.yaml)
|
|
29
|
+
[](https://codecov.io/gh/FAIRDataPipeline/pyDataPipeline)
|
|
30
|
+
[](https://doi.org/10.5281/zenodo.5562602)
|
|
31
|
+
[](https://bestpractices.coreinfrastructure.org/projects/5461)
|
|
32
|
+
|
|
33
|
+
Welcome to pyDataPipeline a Python api to interact with the Fair Data Pipeline.
|
|
34
|
+
|
|
35
|
+
Full documention of the pyDataPipeline is avaialable at [https://www.fairdatapipeline.org/pyDataPipeline/](https://www.fairdatapipeline.org/pyDataPipeline/)
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
pyDataPipeline can be installed from PyPi:
|
|
39
|
+
```
|
|
40
|
+
pip3 install data-pipeline-api
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Or from the Repository:
|
|
44
|
+
```
|
|
45
|
+
git clone https://github.com/FAIRDataPipeline/pythonFDP.git
|
|
46
|
+
|
|
47
|
+
git checkout dev
|
|
48
|
+
|
|
49
|
+
pip3 install -e .
|
|
50
|
+
```
|
|
51
|
+
**NB. PyDataPipeline requires Python3.**
|
|
52
|
+
|
|
53
|
+
## Example submission_script
|
|
54
|
+
|
|
55
|
+
Assume FDP_CONFIG_DIR, storage_locations and objects have been set by CLI tool
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
import os
|
|
59
|
+
import fairdatapipeline as pipeline
|
|
60
|
+
|
|
61
|
+
token = os.environ['FDP_LOCAL_TOKEN']
|
|
62
|
+
config_dir = os.environ['FDP_CONFIG_DIR']
|
|
63
|
+
config_path = os.path.join(config_dir, 'config.yaml')
|
|
64
|
+
script_path = os.path.join(config_dir, 'script.sh')
|
|
65
|
+
|
|
66
|
+
handle = pipeline.initialise(token, config_path, script_path)
|
|
67
|
+
|
|
68
|
+
pipeline.finalise(token, handle)
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## SEIRS Model Example
|
|
73
|
+
|
|
74
|
+
The SEIRS Model Example is available at: [https://www.fairdatapipeline.org/pyDataPipeline/examples/SEIRS.html](https://www.fairdatapipeline.org/pyDataPipeline/examples/SEIRS.html)
|
|
75
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
data_pipeline_api/__init__.py,sha256=maRO7gbh4J5Qn6gvh1CdzN5UCzXg75q9wROnCBhHm1s,752
|
|
2
|
+
data_pipeline_api/ext/SEIRSModelRun.py,sha256=hmMbmnRKPc5hGupf0I0d4Y30-piiddiJng-H2qGgAVM,1366
|
|
3
|
+
data_pipeline_api/ext/SEIRSconfig.yaml,sha256=-55cfmntbIHJ2hxnQIQaGBOSNY_4jAhTKv-WHc4fi3Y,959
|
|
4
|
+
data_pipeline_api/ext/SEIRSconfigWindows.yaml,sha256=7bY2hJtpnNwVnWp_PB66bQpm2QBGJGMOCyNG7EcTc5s,958
|
|
5
|
+
data_pipeline_api/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
data_pipeline_api/ext/static_params_SEIRS.csv,sha256=o055O2XCvy9LwgmusmlVvhqK3IBPh9JJ5BD1R7E7qTo,100
|
|
7
|
+
data_pipeline_api/fdp_utils.py,sha256=DwKHrcTvonoK7jxEjqLQXDSWpz9gWgZAeaWOymj3yXw,16165
|
|
8
|
+
data_pipeline_api/link.py,sha256=6j6X-sDjcUsdRPz04VcE02Qso4FGrDhQ0JQwl_gz3LU,6697
|
|
9
|
+
data_pipeline_api/pipeline.py,sha256=mwC_jiDz0HmrGcoeRCPdqwq3wf8SVm9j1Rp0Yd6L1Yk,20759
|
|
10
|
+
data_pipeline_api/raise_issue.py,sha256=rIbFhi-xbWV6QIC4MuXkviw4aINLkj_H6z0ZKvoLetk,7799
|
|
11
|
+
data_pipeline_api-0.8.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
data_pipeline_api-0.8.0.dist-info/METADATA,sha256=5a11QEO4rX-Q2wInVHWsuhXnPbf9ar6NDWTjQOR7EyU,3069
|
|
13
|
+
data_pipeline_api-0.8.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
14
|
+
data_pipeline_api-0.8.0.dist-info/RECORD,,
|