Pest control
Bugs are bad, but it's even worse when it happens in production, this is why it is a good idea to document all data possible when a exception occurs.
Installing
pip3 install exterminator
Usage
You have three options.
As a decorator
from exterminator import Exterminator
@Exterminator()
def main_function():
# do stuff that might work
main_function()
As a context manager
from exterminator import Exterminator
with Exterminator():
# do stuff, you know the thing
Globally
from exterminator import Exterminator
Exterminator().globally()
# that's it! now every exception that is not handled will be looged
Important Note
If you are going to except all errors the context manager and globally solution wont work for you, the only option for you will be:
from exterminator import Exterminator
@Exterminator()
def main_function():
# do stuff that work or not
try:
main_function()
except:
# do some stuff of you own...
Metadata
Release files for exterminator 0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exterminator-0.8-py3-none-any.whl | Python 3 | none | any | Details |
Release files / exterminator-0.8-py3-none-any.whl
| Download URL | exterminator-0.8-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3572756d4d020e3f940ca8cf87bc59990c19e1471f827a7c3f572570d1c9a7be
|
|
BLAKE2b-256 checksum How to use checksums |
7a50c5a829b323bef11f477931b711ead8ca2cfb24b0d57338225526453db797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|