Skip to main content

Python runner for gada

Project description

gada-pyrunner

PyPI - Python Version Python package Documentation Status Codecov Code style: black contributions welcome

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


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.4a0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

gada_pyrunner-0.4a0-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page