Skip to main content

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).

Project details


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)

Uploaded Source

Built Distribution

markii-0.1.0.macosx-10.10-intel.exe (68.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page