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 [kua](https://github.com/nitely/kua)
* 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 [kua](https://github.com/nitely/kua)
* 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.1.0.tar.gz
(6.7 kB
view details)
Built Distribution
roll-0.1.0-py3-none-any.whl
(9.3 kB
view details)
File details
Details for the file roll-0.1.0.tar.gz
.
File metadata
- Download URL: roll-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff28aa173e819460f3e0a150abf54e251162cc8b5ff154efffb42ae70ec385f |
|
MD5 | ead57c3dbc084f0cc0ebdd49be805f3d |
|
BLAKE2b-256 | 7134d42333d1803f21a1a93f2eaafe4a8407706d844872d3be4f79a4d6e9f957 |
Provenance
File details
Details for the file roll-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: roll-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b88cf5c4788d694f7f34c7a2a364f724504368a67e7d1b3ea7e6f654ea85f8 |
|
MD5 | 5020584ebde52c82c3ce69ca6ea29fef |
|
BLAKE2b-256 | f1f7e7990322b4296eef49b100237683b3d86024a86f4e01d97469196afe37f7 |