Async pico server that rolls.
Project description
# Let’s roll.
# Philosophy
Make it small to make it big.
Roll is a pico framework with performances and aesthetic in mind.
## Install
pip install roll
## Getting started
from roll import Roll
myapp = Roll()
@myapp.route('/hello/{parameter}')
async def hello(request, response, parameter='world'):
response.body = f'Hello {parameter}'
## Contains
* async everywhere
* basic routing through [autoroutes](https://github.com/pyrates/autoroutes)
* extensible system through hooks, see extensions for inspiration
* decent HTTP errors
## Does NOT contain
* templating system
* stability (yet!)
## Run
gunicorn path.to.your:app --bind 0.0.0.0:3579 --worker-class roll.worker.Worker --workers 4
You can try with `example:app` for instance.
## Running the tests
Roll exposes a pytest fixture (`client`), and for this needs to be properly
installed so pytest sees it. Once in the roll root (and with your virtualenv
active), run:
python setup.py develop
Then you can run the tests:
py.test
# Philosophy
Make it small to make it big.
Roll is a pico framework with performances and aesthetic in mind.
## Install
pip install roll
## Getting started
from roll import Roll
myapp = Roll()
@myapp.route('/hello/{parameter}')
async def hello(request, response, parameter='world'):
response.body = f'Hello {parameter}'
## Contains
* async everywhere
* basic routing through [autoroutes](https://github.com/pyrates/autoroutes)
* extensible system through hooks, see extensions for inspiration
* decent HTTP errors
## Does NOT contain
* templating system
* stability (yet!)
## Run
gunicorn path.to.your:app --bind 0.0.0.0:3579 --worker-class roll.worker.Worker --workers 4
You can try with `example:app` for instance.
## Running the tests
Roll exposes a pytest fixture (`client`), and for this needs to be properly
installed so pytest sees it. Once in the roll root (and with your virtualenv
active), run:
python setup.py develop
Then you can run the tests:
py.test
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
roll-0.5.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
roll-0.5.0-py3-none-any.whl
(9.6 kB
view hashes)