A framework for writing HTTP service APIs
Project description
# woodstove
[](https://travis-ci.org/richardmarshall/woodstove) [](https://pypi.python.org/pypi/woodstove)
A simple [python](https://python.org) framework for building json http apis built ontop of the [bottle](http://bottlepy.org) microframework.
## Install
```
pip install woodstove
```
## Usage
### Example: Hello world
```python
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](CONTRIBUTING.md) for details on submitting patches.
## Licensing
Woodstove is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for full license text.
[](https://travis-ci.org/richardmarshall/woodstove) [](https://pypi.python.org/pypi/woodstove)
A simple [python](https://python.org) framework for building json http apis built ontop of the [bottle](http://bottlepy.org) microframework.
## Install
```
pip install woodstove
```
## Usage
### Example: Hello world
```python
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](CONTRIBUTING.md) for details on submitting patches.
## Licensing
Woodstove is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for full license text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
woodstove-0.1.1.tar.gz
(15.3 kB
view details)
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
woodstove-0.1.1-py3-none-any.whl
(20.1 kB
view details)
woodstove-0.1.1-py2-none-any.whl
(20.1 kB
view details)
File details
Details for the file woodstove-0.1.1.tar.gz.
File metadata
- Download URL: woodstove-0.1.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d22dafb1dc10c7053be5b368e34e9dd423e42d6b9db7c40a5fc176a8f0470ea
|
|
| MD5 |
79173d16e045bd1c366fd3607d5cfc0c
|
|
| BLAKE2b-256 |
793daedf8b7eb850ebe14d785f1a33cc8c72b89053942791dad47d1740c12a29
|
File details
Details for the file woodstove-0.1.1-py3-none-any.whl.
File metadata
- Download URL: woodstove-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8daeecb86be99b5de66d014c32811ed04d70c2b422920160dd1b1ee9c4b198
|
|
| MD5 |
6672d50600259f1803763094e0cd9e5a
|
|
| BLAKE2b-256 |
80d1b64dc5ad90f0add4af5f409e54d14b2098dfc6f8f42fda9b412fa31b77f8
|
File details
Details for the file woodstove-0.1.1-py2-none-any.whl.
File metadata
- Download URL: woodstove-0.1.1-py2-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5cfc82cf4128591fef287fbf5e7e7da8a277ce3182f2476b701fdabe45e9ba
|
|
| MD5 |
32edadafe4cfd5d68c0fdb06741fed9d
|
|
| BLAKE2b-256 |
aedc6241e877290a5889dbf62f92612c859043560ac2fdc05917ee9eaf77e1c5
|