Metadata-Version: 2.1
Name: shell_operator
Version: 0.0.2
Summary: Python library for Shell Operator
Project-URL: Homepage, https://github.com/flant/py-shell-operator
Project-URL: Bug Tracker, https://github.com/flant/py-shell-operator/issues
Author-email: Eugene Shevchenko <evgeny.shevchenko@flant.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# Shell Operator Python Framework

This is a framework for [shell-operator](https://github.com/flant/shell-operator) for writing hooks
im Python.

## Sample hook

```python
# hello.py
import shell_operator as operator

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

if __name__ == "__main__":
    operator.run(main, "hello.yaml")
```

```yaml
# hello.yaml
configVersion: v1
onStartup: 10
```
