A modern async python3 web framework
Project description
# 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()
```
## 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!
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()
```
## 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.1.8.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for albatross3-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dd7f675131bf3d385adf18c7de830e08c84c3c8c015a5ea61eb3d2047c7064d |
|
MD5 | 2a7b545edb53e962e13b693eb9936f46 |
|
BLAKE2b-256 | 4ba67e1894e55447a3f0f2aca82ef37b70fa4b95284794bccc9a375c8348a72c |