workflow.core 1.4.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.
- workflow/__init__.py +17 -0
- workflow/cli/__init__.py +0 -0
- workflow/cli/buckets.py +124 -0
- workflow/cli/configs.py +279 -0
- workflow/cli/main.py +48 -0
- workflow/cli/pipelines.py +146 -0
- workflow/cli/results.py +168 -0
- workflow/cli/run.py +283 -0
- workflow/cli/schedules.py +234 -0
- workflow/cli/workspace.py +149 -0
- workflow/daemons/__init__.py +0 -0
- workflow/daemons/audit.py +74 -0
- workflow/daemons/transfer.py +255 -0
- workflow/definitions/__init__.py +0 -0
- workflow/definitions/config.py +124 -0
- workflow/definitions/jsonschema.md +28 -0
- workflow/definitions/notify.py +91 -0
- workflow/definitions/work.py +520 -0
- workflow/definitions/workspace.py +252 -0
- workflow/examples/function.py +92 -0
- workflow/examples/sample.svg +12 -0
- workflow/examples/sample.workflow.yml +31 -0
- workflow/helpers/__init__.py +0 -0
- workflow/helpers/date.py +33 -0
- workflow/http/__init__.py +0 -0
- workflow/http/buckets.py +286 -0
- workflow/http/client.py +136 -0
- workflow/http/configs.py +165 -0
- workflow/http/context.py +170 -0
- workflow/http/pipelines.py +123 -0
- workflow/http/results.py +305 -0
- workflow/http/schedules.py +157 -0
- workflow/lifecycle/__init__.py +1 -0
- workflow/lifecycle/archive/__init__.py +102 -0
- workflow/lifecycle/archive/http.py +58 -0
- workflow/lifecycle/archive/posix.py +185 -0
- workflow/lifecycle/archive/s3.py +157 -0
- workflow/lifecycle/attempt.py +112 -0
- workflow/lifecycle/configure.py +152 -0
- workflow/lifecycle/execute.py +159 -0
- workflow/utils/__init__.py +0 -0
- workflow/utils/decorators.py +29 -0
- workflow/utils/logger.py +93 -0
- workflow/utils/prompt.py +26 -0
- workflow/utils/read.py +146 -0
- workflow/utils/renderers.py +113 -0
- workflow/utils/tmate.sh +17 -0
- workflow/utils/validate.py +198 -0
- workflow/utils/variables.py +24 -0
- workflow/utils/write.py +44 -0
- workflow/workspaces/__init__.py +0 -0
- workflow/workspaces/chimefrb.yml +48 -0
- workflow/workspaces/development.yml +48 -0
- workflow/workspaces/site-dev.yml +36 -0
- workflow_core-1.4.0.dist-info/METADATA +115 -0
- workflow_core-1.4.0.dist-info/RECORD +58 -0
- workflow_core-1.4.0.dist-info/WHEEL +4 -0
- workflow_core-1.4.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: workflow.core
|
|
3
|
+
Version: 1.4.0
|
|
4
|
+
Summary: Workflow Core
|
|
5
|
+
Home-page: https://github.com/chimefrb/workflow
|
|
6
|
+
License: MIT
|
|
7
|
+
Author: Shiny Brar
|
|
8
|
+
Author-email: charanjotbrar@gmail.com
|
|
9
|
+
Requires-Python: >=3.8.1,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Dist: click (>=8.1,<9.0)
|
|
17
|
+
Requires-Dist: click-params (>=0.5,<0.6)
|
|
18
|
+
Requires-Dist: docker (>=7.1,<8.0)
|
|
19
|
+
Requires-Dist: minio (>=7.2,<8.0)
|
|
20
|
+
Requires-Dist: pydantic (>=2.0,<3.0)
|
|
21
|
+
Requires-Dist: pydantic-settings (>=2.0,<3.0)
|
|
22
|
+
Requires-Dist: python-logging-loki (>=0.3,<0.4)
|
|
23
|
+
Requires-Dist: pyyaml (>=6.0,<7.0)
|
|
24
|
+
Requires-Dist: requests (>=2.31,<3.0)
|
|
25
|
+
Requires-Dist: rich (>=13.4,<14.0)
|
|
26
|
+
Requires-Dist: tenacity (>=8.2,<9.0)
|
|
27
|
+
Requires-Dist: toml (>=0.10,<0.11)
|
|
28
|
+
Project-URL: Documentation, https://chimefrb.github.io/workflow-docs/
|
|
29
|
+
Project-URL: Repository, https://github.com/chimefrb/workflow
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
[](https://github.com/CHIMEFRB/workflow/actions/workflows/ci.yml) [](https://github.com/CHIMEFRB/workflow/actions/workflows/cd.yml) [](https://coveralls.io/github/CHIMEFRB/workflow?branch=main)
|
|
33
|
+
|
|
34
|
+
# Workflow
|
|
35
|
+
|
|
36
|
+
Workflow is a Python-based system designed to manage and automate any task in a structured manner. It provides a framework for defining (work), scheduling (buckets), sequencing (pipelines), executing (managers) and archiving (results) the output of any task. The system is designed to be modular with a low threshold of entry for new users, while also providing advanced features for power users.
|
|
37
|
+
|
|
38
|
+
For more information, please refer to the [Workflow documentation](https://chimefrb.github.io/workflow-docs/).
|
|
39
|
+
|
|
40
|
+
## Getting Started
|
|
41
|
+
|
|
42
|
+
To get started with the Workflow project, you need to have Python 3.8.1 or later installed. You can then install the project's dependencies using Poetry:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git clone https://github.com/chimefrb/workflow.git
|
|
46
|
+
cd workflow
|
|
47
|
+
poetry install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Alternatively, you can add the Workflow project as a dependency to your own project using Poetry:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
poetry add git+https://github.chime/chimefrb/workflow.git
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Contributing
|
|
57
|
+
|
|
58
|
+
Contributions to the Workflow project are welcome. Please ensure that any changes you make pass the project's tests and adhere to the project's coding standards.
|
|
59
|
+
|
|
60
|
+
### Setting Up Your Development Environment
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git clone https://github.com/chimefrb/workflow.git
|
|
64
|
+
cd workflow
|
|
65
|
+
poetry install
|
|
66
|
+
pre-commit install
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Writing Your First Commit
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git add file/you/changed.py
|
|
73
|
+
poetry run commitizen commit
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Running Tests
|
|
77
|
+
|
|
78
|
+
You can run the project's tests using Docker & Poetry:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
docker compose up -d
|
|
82
|
+
poetry run pytest
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
Workflow is licensed under the MIT license.
|
|
88
|
+
|
|
89
|
+
Copyright (c) 2024 CHIME/FRB Collaboration
|
|
90
|
+
|
|
91
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
92
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
93
|
+
in the Software without restriction, including without limitation the rights
|
|
94
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
95
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
96
|
+
furnished to do so, subject to the following conditions:
|
|
97
|
+
|
|
98
|
+
The above copyright notice and this permission notice shall be included in all
|
|
99
|
+
copies or substantial portions of the Software.
|
|
100
|
+
|
|
101
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
102
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
103
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
104
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
105
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
106
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
107
|
+
SOFTWARE.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
<p align="center">
|
|
111
|
+
<a href="Some Love">
|
|
112
|
+
<img src="https://forthebadge.com/images/badges/built-with-love.svg">
|
|
113
|
+
</a>
|
|
114
|
+
</p>
|
|
115
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
workflow/__init__.py,sha256=EU7I4l2iBk3ITu0ozKmZ2EFgwuhEHllDjjiSbZzTZhM,630
|
|
2
|
+
workflow/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
workflow/cli/buckets.py,sha256=vcgEIEnmsrj6K0uVVALCkJE4IwdBs9znvd-xAbRyydc,3748
|
|
4
|
+
workflow/cli/configs.py,sha256=Xdc3F1oJDT8C4CJjDfUEckklsBEaRnwgWHoXq8m-IYU,8840
|
|
5
|
+
workflow/cli/main.py,sha256=wW8pMxRD1Z64mj1PF4f4i0rR59KAQFHi1HM0-1zhN1A,1140
|
|
6
|
+
workflow/cli/pipelines.py,sha256=cK_JIl_mEyUezSmU0VcCIRuoYmQRgsdvTfcZJvU8nAY,4207
|
|
7
|
+
workflow/cli/results.py,sha256=tWUDdYRZ4_ZyeaBp6juPs1ckh_6jmZK9Oe-M4v0TJoc,3812
|
|
8
|
+
workflow/cli/run.py,sha256=Keg5Vwq1YPUCA953PEStik1FR5azQ2ACX6uPT9aGbZ0,8018
|
|
9
|
+
workflow/cli/schedules.py,sha256=aV3heyEVHwxYm_Eis44_UTTN0ofSfVK8cZUstD5xqPI,7429
|
|
10
|
+
workflow/cli/workspace.py,sha256=PVeDMHUZA9M7ffprI4LtqXMeXy7gHT6Z2Sx3rxygAZo,5429
|
|
11
|
+
workflow/daemons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
workflow/daemons/audit.py,sha256=AKKTtAZ5yfSw9U9LkK1fBXU-zGR2MlR2fCiBMO26WWY,1954
|
|
13
|
+
workflow/daemons/transfer.py,sha256=FfcCE3RgG1Kittg9TQ8f51cItnbdBaJV1HhL1o0ftMk,8705
|
|
14
|
+
workflow/definitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
+
workflow/definitions/config.py,sha256=9pfeISE4WgcdmZ9Wnevl5uNPLks6z7xQAIgXXXHxGR4,3779
|
|
16
|
+
workflow/definitions/jsonschema.md,sha256=IEYOlCBESHKo6qHfpb7WdidSYfIGiKL6MiVO2UJc0rU,1177
|
|
17
|
+
workflow/definitions/notify.py,sha256=SXtouvuzh3A6n9rof9i0Cluxvyu3G5laHmSMdDSe4-k,2925
|
|
18
|
+
workflow/definitions/work.py,sha256=9eWu5rDSsyDzvk2slY4PJufGmD_xQBefwqzFjQQJ8Jg,18318
|
|
19
|
+
workflow/definitions/workspace.py,sha256=yLKKK7cwMdl_JGg6C5OHghFe7UA4rjnA_GdbthmRdJg,8147
|
|
20
|
+
workflow/examples/function.py,sha256=Sjmn3si2m3U_gDE5pMMaxHTzBNxIP1NfDF3RggBkWbc,2687
|
|
21
|
+
workflow/examples/sample.svg,sha256=YrAf-SVVQqWkBsOV8wA417ty1nyk9cgeDYug-yUkV24,1219
|
|
22
|
+
workflow/examples/sample.workflow.yml,sha256=HVCD3aUJdIh-N37yOdK9eKhncAhJZPkCIKEuvk1WDGA,527
|
|
23
|
+
workflow/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
+
workflow/helpers/date.py,sha256=Rf8p-vJV6bYepg7rhv2R21fubqCHqQh5FLZ9YnsZEjE,849
|
|
25
|
+
workflow/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
+
workflow/http/buckets.py,sha256=GaEFEIUVTxqjktQb0_xG02B6dvXOyPZulNUQxUJNQ8E,10616
|
|
27
|
+
workflow/http/client.py,sha256=oQ1mern3p2jutN_iZUBqeTabaYuZ9SjzC8QRxdTTqvc,4666
|
|
28
|
+
workflow/http/configs.py,sha256=4Ri7SbhqEx3O1nLzq0R30ILasPmW2Wx6SWr35Q2Ihvo,4965
|
|
29
|
+
workflow/http/context.py,sha256=hfg2_Vun0DrSuprv-pHQLthQULaQFao__-0VQUFU1zk,5176
|
|
30
|
+
workflow/http/pipelines.py,sha256=6MiOpOKplyhRrNWxM0ozeRvbebWdJkBUMPVaavSei3Q,3730
|
|
31
|
+
workflow/http/results.py,sha256=Rq2PTy012LH217yW6x_xY1fYAdmfiIvmm4Iak_p2byk,9853
|
|
32
|
+
workflow/http/schedules.py,sha256=QGAPiw-hVLnsPZ1-nNMpUbT3KVm7xe04X6jiOhMrnhY,4569
|
|
33
|
+
workflow/lifecycle/__init__.py,sha256=sLiCUQZmr-TcDdM5aJtsWd44fRpvi-TltRHIjHtxVOk,32
|
|
34
|
+
workflow/lifecycle/archive/__init__.py,sha256=IfWaX5fRYZ8swTsKNdgZR7j7GwoneBGSrJmacGLo0eY,3786
|
|
35
|
+
workflow/lifecycle/archive/http.py,sha256=_PD-AAvYFM7JQhQDh44PSeffKSaZqD8AOx4ZQ1aG6SU,1556
|
|
36
|
+
workflow/lifecycle/archive/posix.py,sha256=Z7p9-oqaYOF8GGTkQE7aUYtmD154mDoxqnZR7r97Gnk,5181
|
|
37
|
+
workflow/lifecycle/archive/s3.py,sha256=EUSMN2tCqEGe2iOTEUAmz3R4z8fMW-Mw6m1wb5v7bBo,5740
|
|
38
|
+
workflow/lifecycle/attempt.py,sha256=2tRRR2IXg8Uyp9bB6NYx6cCD5KXRaVfzzBRa0oEYXYo,3619
|
|
39
|
+
workflow/lifecycle/configure.py,sha256=3jPfQzR9HVp47NZEsN1AdNcjPAqkg-K3aMvg3DRDMKA,5465
|
|
40
|
+
workflow/lifecycle/execute.py,sha256=fl_CBC_IWX1vO7x8pVvK-wDxd4NoygK3X659an_Fk5c,5372
|
|
41
|
+
workflow/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
|
+
workflow/utils/decorators.py,sha256=WMmAeqFUhSxai501rZR7xaXAA2vv5zITNJIBf6VjK_0,671
|
|
43
|
+
workflow/utils/logger.py,sha256=L7zYSh7biH2Fev_fVplt8v2O3UFwT_3M-AuMRgdEJQQ,2537
|
|
44
|
+
workflow/utils/prompt.py,sha256=MRZtw5lAZCiNE03giAqKAmg_Cv_fd3FddSWR2xB848Q,666
|
|
45
|
+
workflow/utils/read.py,sha256=Qdrx8m25drLU9RuwD0tw6gc-6ucqgVgivhpAlNLUmgA,4141
|
|
46
|
+
workflow/utils/renderers.py,sha256=7IkLptcJZ91dC5VOFWnYywV6Wg09kV9OJ6DUc6tRoSM,3206
|
|
47
|
+
workflow/utils/tmate.sh,sha256=oKrkPfIOk8s-1veGXlJvlT-c_2YUJK3j9RzUy3e7He8,384
|
|
48
|
+
workflow/utils/validate.py,sha256=_NJAhHRQpRaJQrZY3XMIByFFbdB953d3kN2LCb1xIkA,6074
|
|
49
|
+
workflow/utils/variables.py,sha256=8slgzEH5NB-cd5gnH4IZmmrKfUHvm9Hy-3HZ3_Jnbtg,649
|
|
50
|
+
workflow/utils/write.py,sha256=DWLpPE96XT6fdIR1PG_TC7a4g6gtN_47r3v7DD3Nv8M,1408
|
|
51
|
+
workflow/workspaces/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
|
+
workflow/workspaces/chimefrb.yml,sha256=R3Rg1DnbkCN4RkFacN3SuQtRBThb7UzPfCbQHsIU65s,1210
|
|
53
|
+
workflow/workspaces/development.yml,sha256=Ds0a56TRXtJtggoJUGyv1kolFEylgLrRjAL6W7q3Cfo,961
|
|
54
|
+
workflow/workspaces/site-dev.yml,sha256=lVSFaKoPiEQP_uyfZ-YB3os0n-DZRTN4VbKzn1mu4lk,727
|
|
55
|
+
workflow_core-1.4.0.dist-info/METADATA,sha256=FsVpNePKUgCYOO0H0rSf9AGwvDs5H-TQrUhnukldvSk,4441
|
|
56
|
+
workflow_core-1.4.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
57
|
+
workflow_core-1.4.0.dist-info/entry_points.txt,sha256=ZW-qrmok8IGF7F_u7-gs4FF2bzS1mfxxi8L0ED5X0Oc,50
|
|
58
|
+
workflow_core-1.4.0.dist-info/RECORD,,
|