better-exceptions/README.md

37 lines
782 B
Markdown
Raw Normal View History

2017-03-12 14:22:31 +03:00
# better-exceptions
Pretty and more helpful exceptions in Python, automatically.
2017-03-12 14:22:31 +03:00
![Example screenshot of exceptions](screenshot.png)
## Usage
Install `better_exceptions` via pip:
```console
$ pip install better_exceptions
```
And import it somewhere:
```python
import better_exceptions
```
That's it!
2017-03-12 14:42:57 +03:00
### Advanced Usage
If you want to allow the entirety of values to be outputted instead of being truncated to a certain amount of characters:
```python
better_exceptions.MAX_LENGTH = None
```
2017-03-22 19:42:12 +03:00
## See Also
- [paradoxxxzero/better-exceptions-hook](https://github.com/paradoxxxzero/better-exceptions-hook) - removes the need to `import better_exceptions` by adding a startup hook
2017-03-12 14:22:31 +03:00
# License
Copyright © 2017, Josh Junon. Licensed under the [MIT license](LICENSE.txt).