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
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
shell_operator-0.0.3.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for shell_operator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c75042790a101f0d059242e8f622e8d8429412a7b7aa28e12bbf0e8eb6df5e |
|
MD5 | 925d3d2088a8993d1f2aff4981f45790 |
|
BLAKE2b-256 | efa361780040b15aab6c91b94b6820b52a81dee3c93b3dfe689fa1210cc40d6a |