This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
____________________ ________________
\______ \______ \ / _ \__ ___/
| | _/| _/ / /_\ \| |
| | \| | \/ | \ |
|______ /|____|_ /\____|__ /____|
\/ \/ \/

A [framework|practice] of RESTful API based on Tornado

[![Build Status](](


git clone
cd brat
python install


* python 2.6 or 2.7
* tornado
* ujson
* requests

##Minimal Demo

###$ more examples/

from brat import Brat
from brat import BratHandler

brat = Brat()

class HelloWorld(BratHandler):
def get(self):
return {'hello': 'world'}

brat.add_handler('/', HelloWorld)

if __name__ == '__main__':

###$ python

###$ curl http://localhost:7777/ -X GET

{"hello": "world"}

##Completion Demo

use buildout for building application

###$ ls examples/demo/src used for the enter of the application used for handlers of the application used for data

###$ bin/doc_gen init & bin/doc_gen

used for generate docs for api

1. write options method for each handler
2. change your docs/doc.conf

you will see doc at docs/doc.html

###$ curl http://localhost:7778/users -X POST -u test:test -d ''


###$ curl http://localhost:7778/users -X GET -u test:test


###$ curl http://localhost:7778/users/1 -X GET -u test:test


###$ curl http://localhost:7778/users/1 -X DELETE -u test:test



'brat' is the acronym of '__B__rat is a [framework|practice] of __R__estful __A__pi based on __T__ornado'.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Brat-0.0.2.tar.gz (8.6 kB) Copy SHA256 Checksum SHA256 Source Nov 30, 2013

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