Skip to main content

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

  1. PYTHONPATH=./microservice python test.py
  2. curl localhost:8001/v1/test | json_pp
  3. inspect test.py and enjoy

Getting started

coming soon...

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

microservice-0.3.10.tar.gz (22.1 kB view details)

Uploaded Source

File details

Details for the file microservice-0.3.10.tar.gz.

File metadata

  • Download URL: microservice-0.3.10.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.6.5

File hashes

Hashes for microservice-0.3.10.tar.gz
Algorithm Hash digest
SHA256 42b434a727ce2db2caaa4fdb2ece06d2e1ed52ae1ad9fc607f5a1e86eb181fc3
MD5 3bf777b832d43016b0d4d485233bf15a
BLAKE2b-256 ca6531e14570b652864c696f9f826f1893b20378d539112d17d6a701e8b78320

See more details on using hashes here.

Provenance

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