Skip to main content

os-tornado

https://travis-ci.org/cfhamlet/os-tornado.svg?branch=master https://codecov.io/gh/cfhamlet/os-tornado/branch/master/graph/badge.svg PyPI - Python Version PyPI

A framework to organize tornado project and simplify development.

Install

pip install os-tornado

Usage

  • Create project

    os-tornado startproject new_project

    Will create a project structure:

    new_project/
    ├── app
    │   ├── extensions
    │   │   ├── example_extension.py
    │   │   ├── __init__.py
    │   ├── request_handlers
    │   │   ├── example_handler.py
    │   │   ├── __init__.py
    │   ├── __init__.py
    │   ├── settings.py
    └── manager.py
  • Write your extensions and request handlers

  • Configure settings (app/settings.py)

  • Run server

    python manager.py runserver

Advanced Usage

  • os_tornado.decorators.jsonify

    jsonify returned dict and raised HTTPError

    example:

    @jsonify
    class ExampleHandler(RequestHandler):
    
        def get(self, *args, **kwargs):
            return {'status':'ok'}
    
        def post(self, *args, **kwargs):
            raise HTTPHandler(405)

Unit Tests

$ tox

License

MIT licensed.

Metadata

Release files for os-tornado 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os-tornado 0.3.0
File Size Uploaded Provenance
os-tornado-0.3.0.tar.gz 18.2 kB Without provenance Details

Release files / os-tornado-0.3.0.tar.gz

Download URL os-tornado-0.3.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8efff41f0f3c459474a7e04eec0f63e509a8aa86b4f3adbd3872f3784a64fcc
BLAKE2b-256 checksum
How to use checksums
2adc1850890d5357211bc2106caa3ce4ab84d32fa28e3afc6daeaf71f2016fe5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for os-tornado 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page