Catch an exception and exit with an exit code
Project description
What is Evacuator?
Decorator/context manager designed to catch a certain exception and exit with specific exit code.
- Designed to be used in Apache Airflow with:
BashOperator
SSHOperator
DockerOperator
KubernetesPodOperator
any other operator which can handle process exit codes.
How to install
pip install evacuator
Documentation
Contribution guide
See CONTRIBUTING.rst
Security
See SECURITY.rst
Develop
Clone repo
Clone repo:
git clone git@github.com:MobileTeleSystems/evacuator.git -b develop
cd evacuator
Setup environment
Create virtualenv:
python -m venv venv
source venv/bin/activate
pip install -U wheel
pip install -U pip setuptools
Install dependencies for development:
# install linters, formatters, etc
pip install -U -r requirements-dev.txt
Enable pre-commit hooks
Install pre-commit hooks:
pre-commit install --install-hooks
Test pre-commit hooks run:
pre-commit run
Run tests
# install requirements for testing
pip install -U -r requirements-test.txt
# run tests
pytest
Build documentation
# install requirements for documentation
pip install -U -r requirements-docs.txt
cd docs
# generate html documentation
make html
Then open docs/_build/html/index.html file in browser.
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
evacuator-1.0.2.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for evacuator-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adcff0b0ee009d41374d487d517dbd03059897ee2761424a66ccd05ffc6c26ca |
|
MD5 | a1f6d71faac606d8204702a20b5deaba |
|
BLAKE2b-256 | 31a7d7bd302c086542211c03c85e630cddc4a0ce8488a6870e034943b224aefa |