Skip to main content

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

Project details


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 details)

Uploaded Source

Built Distribution

roll-0.5.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file roll-0.5.0.tar.gz.

File metadata

  • Download URL: roll-0.5.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for roll-0.5.0.tar.gz
Algorithm Hash digest
SHA256 68a348073326e9c0a4035b9aad33acd36cc2f50637228da8e4022ca2f2463259
MD5 f9fdd9525da7937f7632e585b56789e0
BLAKE2b-256 611f02d76f4546d299a348e98d03217a406254a46e7c322d384d7a9108fb2309

See more details on using hashes here.

File details

Details for the file roll-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for roll-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 923bc04322f313ffbf1b3ed6f39667d79c6bd79d2fa2046bb1faddde86d681e5
MD5 89624abf6119eff957a1d169555e8123
BLAKE2b-256 a1b0be4e4368f0c38bae77c82139fb95a6746eb7f81eddad98ce56a98cfd4df8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page