Skip to main content

Simple wrapper around tornado 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

capuchin 0.0.6

Tornado server with some built-in endpoints.

Here’s a simple usage example:

import capuchin.web

class TestHandler(tornado.web.RequestHandler):
        def get(self):
                self.write("hola")

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

if __name__ == "__main__":
        c = capuchin.web.Application([
                (r"/test", TestHandler),
        ])
        c.add_status_job("Test Job", 5, test_job)
        c.listen()

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 capuchin

Install tornado and requests

sudo easy_install capuchin

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.

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

capuchin-0.0.6.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file capuchin-0.0.6.tar.gz.

File metadata

  • Download URL: capuchin-0.0.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for capuchin-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8c733b55a357a9b324ef827f271e409457847901408e77522f99cc50b2cd21ab
MD5 d5c497df6656fe09559142f72f47f2a9
BLAKE2b-256 6daa78f6ac6b5362d552b6f27590f9e110ec6f493f6316914f3f0cc21e2fa83a

See more details on using hashes here.

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