# Install
```
$ pip install exception-slacker
```
# Usage
## When ENV set
```
import os
import exception_slacker
os.environ['EXCEPTION_SLACKER_TOKEN'] = "XXXXXXXXXX"
os.environ['EXCEPTION_SLACKER_CHANNEL'] = "#notification-test"
os.environ['EXCEPTION_SLACKER_NAME'] = "Exception Notifier"
raise StandardError("ERROR")
```

## When ENV not set
```
import exception_slacker
raise StandardError("ERROR")
```
```
Error in sys.excepthook:
Traceback (most recent call last):
File "/path/to/exception_slacker.py", line 17, in notification
raise StandardError("exception_slacker is imported, but %s aren't found in ENV." % ','.join(__KEYS))
StandardError: exception_slacker is imported, but EXCEPTION_SLACKER_TOKEN,EXCEPTION_SLACKER_CHANNEL,EXCEPTION_SLACKER_NAME aren't found in ENV.
Original exception was:
Traceback (most recent call last):
File "test.py", line 20, in <module>
raise StandardError("ERROR")
StandardError: ERROR
```
# Update PyPI
```
$ nosetests -vs
$ python setup.py register # if necessary
$ python setup.py sdist upload
```
# Contributing
- Fork the repository on Github
- Create a named feature branch (like add_component_x)
- Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
# License
MIT
Metadata
Release files for exception-slacker 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exception-slacker-0.1.1.tar.gz | 2.3 kB | Without provenance | Details for exception-slacker-0.1.1.tar.gz |
Release files / exception-slacker-0.1.1.tar.gz
| Download URL | exception-slacker-0.1.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88658664307806ed55166b869d12a751d349d4cb3c104ff036136e75e298738f
|
|
BLAKE2b-256 checksum How to use checksums |
6b1b1e9a5e99df5a286029d66c3af11950f47e5b66e6318673a7166f7581dfa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for exception-slacker 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.