MarkII is an improved development-mode error handler for Python web applications.
Project description
# markii
MarkII is an improved development-mode error handler for Python web
applications. Currently the only supported framework is `webapp2`.
## Installation
`$ pip install markii`
## Usage
In your `main.py` file:
```python
from functools import partial
from markii.frameworks.webapp2 import handle_error
app = webapp2.WSGIApplication(routes)
app.error_handlers[400] = partial(handle_error, code=400)
app.error_handlers[404] = partial(handle_error, code=404)
app.error_handlers[500] = partial(handle_error, code=500)
app.run()
```
## Screenshot
![Screenshot](/example/screenshot.png)
## Warning
Make sure you only use MarkII in development mode.
## Acknowledgements
MarkII borrows its ideas (and most of its look) from [better_errors](https://github.com/charliesome/better_errors).
MarkII is an improved development-mode error handler for Python web
applications. Currently the only supported framework is `webapp2`.
## Installation
`$ pip install markii`
## Usage
In your `main.py` file:
```python
from functools import partial
from markii.frameworks.webapp2 import handle_error
app = webapp2.WSGIApplication(routes)
app.error_handlers[400] = partial(handle_error, code=400)
app.error_handlers[404] = partial(handle_error, code=404)
app.error_handlers[500] = partial(handle_error, code=500)
app.run()
```
## Screenshot
![Screenshot](/example/screenshot.png)
## Warning
Make sure you only use MarkII in development mode.
## Acknowledgements
MarkII borrows its ideas (and most of its look) from [better_errors](https://github.com/charliesome/better_errors).
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
markii-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for markii-0.1.0.macosx-10.10-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97748d806cf24d475e74679069209a00812cf7acc30b6a7a78907eb17ae1e7ec |
|
MD5 | f5a31a1fd1c077d53cf3fcec2bb40f29 |
|
BLAKE2b-256 | deb87a2801a4959fbed697827fed0aafb0143225e3419388f277556e2860c4f1 |