Python runner for gada
Project description
gada-pyrunner
Python runner for gada.
Install
Using pip:
$ pip3 install gada-pyrunner
Documentation
Build the doc with:
$ make html
You can find the latest documentation on gada-pyrunner.readthedocs.io.
Basic example
Create a Python package with the following structure and add it to your PYTHONPATH:
├── mycomponent
│ ├── __init__.py
│ ├── mynode.py
│ └── config.yml
Content of mynode.py:
def main():
print("hello world")
if __name__ == "__main__":
main()
Content of config.yml:
nodes:
mynode:
runner: python
file: ${comp_dir}/mynode.py
Usage:
$ gada mycomponent.mynode
hello world
Testing
The test directory contains many tests that you can run with:
$ tox .
License
Licensed under the MIT License.
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 gada-pyrunner-0.4a0.tar.gz.
File metadata
- Download URL: gada-pyrunner-0.4a0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d495dbfddac226e1237a618da561ba403d93f071259b122cd8881aa0f7ab67
|
|
| MD5 |
8ac31c262ba7af1e976de2cf2deaefec
|
|
| BLAKE2b-256 |
477841520413c25f3d69333680e91f6a832e6f0c7f084c2a0135063041f5599e
|
File details
Details for the file gada_pyrunner-0.4a0-py3-none-any.whl.
File metadata
- Download URL: gada_pyrunner-0.4a0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08c5487efb890bfb65b5cfc06af806ba6a8e8f4893841471e81613efcec30e28
|
|
| MD5 |
b5daf075fa5829230b5d275c59c2e206
|
|
| BLAKE2b-256 |
f54c9b02ea3b16e0dbdfc4d55925fce2db1c6fc11d6b5937bb2d794f838ae42f
|