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
:
├── gadalang_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 .
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
gada-pyrunner-0.3a0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for gada_pyrunner-0.3a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7c8a61dee34062135a9bc24d76d41139c23f03078634074a2673eac93748ad |
|
MD5 | e818265550d01f925305b1b61f635a5c |
|
BLAKE2b-256 | 2a0a81c334eeb9ca641dc466574d4128626a9e5cd947262c22c53dd2deef510a |