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 [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


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.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

roll-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for roll-0.1.1.tar.gz
Algorithm Hash digest
SHA256 78ddf550779887dccefd70550d810eb50d184c633752587fbc1cecb3562daf12
MD5 731a3e6a8868ad1f41bab767c6d7516c
BLAKE2b-256 cd3d26bd32ee968e106ae4bb3cc9c39b78d26e2c2a80e138f958e8d954c8e54a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for roll-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e783addeaee9814f74f712b5d71ee255b71fe71e6ff3f79d99eebcc9c2b9554
MD5 c6846546849f17f16ee854f1026ee3a9
BLAKE2b-256 fa1d402b963763bd2ea20f0e36d27a2b343509fce12cf28e2eec9cdb3598caf9

See more details on using hashes here.

Provenance

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