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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for roll-0.2.0.tar.gz
Algorithm Hash digest
SHA256 adb7e4a8b22a73e2e64284205112f866714cd355e10e4858d4fca84d860d592e
MD5 901994718f24fa2c10e9f23f4ca10aa8
BLAKE2b-256 36a291530156065c346a9367be6651a34d42d16e97765fb6260841201d1fb375

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for roll-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3b06adc8ca54bfcc69977860afbd54f33bcd855b3dac4307c6e15c44f05225
MD5 2cac13ee126289c62367d5997b68035b
BLAKE2b-256 f115cc327ed65b821af06889415390eb9e741053399ce97bb5f388a3be0476f4

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