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.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for shell_operator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d070667faacbc2ae88de35a1c4b9e6b14823b2dc0fb70efba5200b077b879e46 |
|
MD5 | b17707ddb7003c756cff582481f0eb24 |
|
BLAKE2b-256 | 516093df6d17c61fe00a8d686d2d908d62331d27b363541e8d384dd400c61edc |