Skip to content

benblake112/woodstove

 
 

Repository files navigation

woodstove

Build Status PyPi

A simple python framework for building json http apis built ontop of the bottle microframework.

Install

pip install woodstove

Usage

Example: Hello world

from woodstove import app, server

class Hello(object):
    wsapp = app.App('/hello')

    @wsapp.get('/world')
    def hello_world(self):
        return "Hi!"

s = server.Server()
s.mount(Hello())
s.run(host='localhost', port=8080)

Run this script then point curl or your browser at http://localhost:8080/hello/world.

$ curl http://localhost:8080/hello/world
{"total": 1, "data": ["Hi!"]}

Testing

TODO

Contributing

See CONTRIBUTING for details on submitting patches.

Licensing

Woodstove is licensed under the Apache License, Version 2.0. See LICENSE for full license text.

About

Python framework for building HTTP APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%