This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple wrapper around flask that uses environment variables for host, port, endpoint prefix. Also uses the py-hancock library for the ability to sign endpoints. Endpoints for `time`, `ping`, and `status` are automatically added as well.

Project Description

tinflask 0.0.2

Tornado server with some built-in endpoints.

Here’s a simple usage example:

import tinflask.web

def test():
        self.write("hola")

def test_job():
        print("did some job")

if __name__ == "__main__":
        a = tinflask.web.Application()
        c.add_status_job("Test Job", 5, test_job)
        c.run()

The Application looks at the environment variables HOST, PORT, and ENDPOINT on initialization. If These are not set the defaults are HOST: 0.0.0.0, PORT: 8080, ENDPOINT: /.

get tinflask

Install flask and requests

sudo easy_install tinflask

Download the latest release from Python Package Index or clone the repository

More documentation is on it’s way (check the site for updates)

Provide any feedback and issues on the bug tracker, that should be coming soon.

Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tinflask-0.0.2.tar.gz (14.2 kB) Copy SHA256 Checksum SHA256 Source Mar 6, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting