|
| 1 | +============================== |
| 2 | +Flask Error Monitor |
| 3 | +============================== |
| 4 | + |
| 5 | +Full featured error monitor app for Flask |
| 6 | + |
| 7 | +.. image:: https://travis-ci.org/sonus21/flask-error-monitor.svg?branch=master |
| 8 | + :target: https://travis-ci.org/sonus21/flask-error-monitor |
| 9 | + |
| 10 | +.. image:: https://coveralls.io/repos/github/sonus21/flask-error-monitor/badge.svg |
| 11 | + :target: https://coveralls.io/github/sonus21/flask-error-monitor |
| 12 | + |
| 13 | +Introduction |
| 14 | +------------ |
| 15 | + |
| 16 | +Flask-Error-Monitor is a batteries-included, simple-to-use `Flask <http://flask.pocoo.org/>`_ extension that lets you |
| 17 | +add error recording interfaces to Flask applications. It's implemented in such a way that the developer has total control of the resulting application. |
| 18 | + |
| 19 | +Out-of-the-box, Flask-Error-Monitor plays nicely with various ORM's, including |
| 20 | + |
| 21 | +- `SQLAlchemy <http://www.sqlalchemy.org/>`_, |
| 22 | + |
| 23 | +- `MongoEngine <http://mongoengine.org/>`_, |
| 24 | + |
| 25 | +- `pymongo <http://api.mongodb.org/python/current/>`_ and |
| 26 | + |
| 27 | + |
| 28 | +It also boasts a simple Model management interface. |
| 29 | + |
| 30 | +The biggest feature of Flask-Error-Monitor is flexibility. To start off with you can create a very simple application in no time, |
| 31 | +with exception monitor enabled, but then you can go further and customize different aspects. |
| 32 | + |
| 33 | +Flask-Error-Monitor is an active project, well-tested and production ready. |
| 34 | + |
| 35 | +Installation |
| 36 | +------------ |
| 37 | +To install Flask-Error-Monitor, simply:: |
| 38 | + |
| 39 | + git clone git@github.com:sonus21/flask-error-monitor.git |
| 40 | + cd flask-error-monitor |
| 41 | + python setup.py install |
| 42 | + |
| 43 | + |
| 44 | +Features |
| 45 | +------------- |
| 46 | +- Sensitive data( like *password*, *secret* ) Masking |
| 47 | +- Record all the frames ( frame data are stored in JSON format so that it can be analyzed later) |
| 48 | +- Unique URL generation |
| 49 | +- Number of times the exception occurred and first/last time of exception |
| 50 | +- Sending emails with exception details |
| 51 | +- Record different types of exception like 500 or 404 etc |
| 52 | + |
| 53 | +Documentations |
| 54 | +------------- |
| 55 | +This has got extensive document browse at https://flask-error-monitor.readthedocs.io/en/latest/ |
| 56 | + |
| 57 | +All docs are in `docs/source` |
| 58 | + |
| 59 | +And if you want to preview any *.rst* snippets that you may want to contribute, go to `http://rst.ninjs.org/ <http://rst.ninjs.org/>`_. |
| 60 | + |
| 61 | + |
| 62 | +Examples |
| 63 | +-------- |
| 64 | +Several usage examples are included in the */tests* folder. Please feel free to add your own examples, or improve |
| 65 | +on some of the existing ones, and then submit them via GitHub as a *pull-request*. |
| 66 | + |
| 67 | +You can see some of these examples in action at https://github.com/sonus21/flask-error-monitor/tree/master/examples. |
| 68 | +To run the examples on your local environment, one at a time, do something like:: |
| 69 | + |
| 70 | + cd flask-error-monitor |
| 71 | + python examples/simple/app.py |
| 72 | + |
| 73 | + |
| 74 | +Tests |
| 75 | +----- |
| 76 | +Test are run with *nose*. If you are not familiar with this package you can get some more info from `their website <https://nose.readthedocs.io/>`_. |
| 77 | + |
| 78 | +To run the tests, from the project directory, simply:: |
| 79 | + |
| 80 | + pip install -r requirements-dev.txt |
| 81 | + nosetests |
| 82 | + |
| 83 | +You should see output similar to:: |
| 84 | + |
| 85 | + ............................................. |
| 86 | + ---------------------------------------------------------------------- |
| 87 | + Ran 26 tests in 1.144s |
| 88 | + |
| 89 | + OK |
| 90 | + |
| 91 | + |
| 92 | +Contribution |
| 93 | +------------- |
| 94 | +You're most welcome to raise pull request or fixes. |
0 commit comments