Powerful REST API microservice on Tornado
Project description
Powerful REST API microservice on Tornado
Main goal
Sometimes (actually constantly) we need to deploy microservices like messenger bots (telegram, facebook), small backends, webhooks and other.
Features
- tornado with improved basic handler for easy create REST endpoints
- async non-blocking highly durable and scalable
- handlers versioning (e.g. GET /v2/cat?color=blue)
- request validation, answer containerization
- poor documented, sorry :(
Under the hood
- tornado 5
All features below are optional
- peewee / peewee_async as ORM
- User and session models
- oauth support
- simple redis caching
- sentry integration + telegram reports
- prometheus monitoring
Testing
- PYTHONPATH=./microservice python test.py
- curl localhost:8001/v1/test | json_pp
- inspect test.py and enjoy
Getting started
coming soon...
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
microservice-0.3.2.tar.gz
(21.8 kB
view details)
File details
Details for the file microservice-0.3.2.tar.gz
.
File metadata
- Download URL: microservice-0.3.2.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2005b6ccaf0c7f8f6dc5c3372367a3835954cb4e0d6d7cd5697edc1836c5a81b |
|
MD5 | c9878b8f5fc57e3fbd95a85dbfa16922 |
|
BLAKE2b-256 | a16b6a28e5f1192e3822f6836aae2b89892622aa16eba2ac587b758f702cef30 |