Skip to main content

Python library for Shell Operator

Project description

Shell Operator Python Framework

This is a framework for shell-operator for writing hooks im Python.

Sample hook

# hello.py
import shell_operator as operator

def main(context: operator.HookContext):
    print("Hello from Python!")

if __name__ == "__main__":
    operator.run(main, "hello.yaml")
# hello.yaml
configVersion: v1
onStartup: 10

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

shell_operator-0.0.3.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

shell_operator-0.0.3-py3-none-any.whl (9.3 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