Flask(-Twisted) microframework for microservices with Prometheus and Sentry support.
Project description
Flask(-Twisted) microframework for microservices with Prometheus and Sentry support.
The goal is to remove most of the boilerplate necessary to start a simple HTTP application. This provides:
Sane arguments (–host, –port, –debug, –log-level)
Twisted support to have a production ready uwsgi container (gourde.twisted, --twisted)
Prometheus support with default metrics (gourde.metrics: See [prometheus_flask_exporter](https://github.com/rycus86/prometheus_flask_exporter))
Optional sentry support if the SENTRY_DSN env var is set.
If you have a ‘static’ directory in your module, just put a favicon.ico inside!
Quick-start
from gourde import Gourde
gourde = Gourde(__name__)
app = gourde.app # This is a flask.Flask() app.
@app.route('/example')
def index():
return 'Example'
def main():
gourde.run()
if __name__ == '__main__':
main()
Want to know more? Look at example/app.py.
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
File details
Details for the file gourde-0.0.3.tar.gz
.
File metadata
- Download URL: gourde-0.0.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba29844a95b9bd4973c8a3e460afeb1665a7ee7bc8359e94ec7da01cb2fd614d |
|
MD5 | ca34e945f6529ed7fe999dfea5e4c163 |
|
BLAKE2b-256 | 89128b10f0e3418e3ed75c88fd84ca749751c4ae233694e92082ae18cc0d5e00 |