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.11.tar.gz
(22.1 kB
view details)
File details
Details for the file microservice-0.3.11.tar.gz
.
File metadata
- Download URL: microservice-0.3.11.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6a0fb8d9859956fa41b52b768e66fbba7cfa0cc4a213d1b5cb28faf6ba6555 |
|
MD5 | 33e65eddac8b6e0dc3fb6c815d0a310b |
|
BLAKE2b-256 | 2f88f8886010c218dfc7fc20e070b247e2df4d69f88ef4a675008d11d40e2476 |