Skip to main content

A micro web framework

Project description


A micro web framework for python3.


Here is an example of the HelloWorld.

from burette import Burette

app = Burette()

def helloworld():
    return "Hello World!"

if __name__ == '__main__':


Here are some routing examples.

# /hello/Jack -> "Hello Jack"
def hello_path(request):
    return "Hello " + request.path_params.get('yourname')

# /hello?yourname=Ken -> "Hello Ken"
def hello_querystring(request):
    return "Hello " + request.params.get('yourname')

# POST and PUT
@app.route('/hello_post', method='POST')
def hello_post(request):
    return "Hello " + request.text


from burette import redirect

def redirect_example():
    return redirect('/to/path')


Sometimes you may want to return json to the client. Just return a dictionary for that.

def get_json():
    return {'key': 'value'}

Jinja2 integration

from burette import jinja2
def jinja():
    return jinja2('foo.tpl', myvar={'url': '', 'name': 'Example'}, template_path='./templates' )

Project details

Download files

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

Files for burette, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size burette-0.1-py3-none-any.whl (7.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size burette-0.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page