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.3.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for evacuator-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1a22f7b4f540502424d9a15038cfb2fa6863ea5fa82fca1533f5335a5aabf1 |
|
MD5 | 71e4f2c485d926e154874dc4aef129d7 |
|
BLAKE2b-256 | 263411f964dcc32d380844b0e9cbd2171ddb5fdefbca799d1adf710462746118 |