A modern async python3 web framework
Project description
[![Build Status](https://travis-ci.org/kespindler/albatross.svg?branch=master)](https://travis-ci.org/kespindler/albatross)
# Albatross
A modern, fast, simple, natively-async web framework. (Python3.5 only)
```python
from albatross import Server
import asyncio
class Handler:
async def on_get(self, req, res):
await asyncio.sleep(0.1)
res.write('Hello, %s' % req.args['name'])
app = Server()
app.add_route('/(?P<name>[a-z]+)', Handler())
app.serve()
```
### Notes for Usage
For now (pre 1.0.0), I'm not guaranteeing the API stays the same. In particular, the add_route will
likely change from regex to `{arg}`-based. But reach out if you want to use this, as I'm happy to
incorporate your feedback!
## Install
pip3 install albatross3
## Features
- You can read the entire codebase in about 30 minutes.
- It's natively async
- This works with the `uvloop` project, to make your server fast!
# Albatross
A modern, fast, simple, natively-async web framework. (Python3.5 only)
```python
from albatross import Server
import asyncio
class Handler:
async def on_get(self, req, res):
await asyncio.sleep(0.1)
res.write('Hello, %s' % req.args['name'])
app = Server()
app.add_route('/(?P<name>[a-z]+)', Handler())
app.serve()
```
### Notes for Usage
For now (pre 1.0.0), I'm not guaranteeing the API stays the same. In particular, the add_route will
likely change from regex to `{arg}`-based. But reach out if you want to use this, as I'm happy to
incorporate your feedback!
## Install
pip3 install albatross3
## Features
- You can read the entire codebase in about 30 minutes.
- It's natively async
- This works with the `uvloop` project, to make your server fast!
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
albatross3-0.4.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
albatross3-0.4.0-py3-none-any.whl
(10.9 kB
view hashes)
Close
Hashes for albatross3-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6cc1d3365e44af790e9e31ada31b62ee183756e2b1bad25a235fde357c82df9 |
|
MD5 | cf1b04f37e56f01252b7b3da6eba46f3 |
|
BLAKE2b-256 | 6bbb3df52805c41ba151d9852e7cd9a8e6d45d29d07ebaa95051d99231e0c7ed |