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.2.0.tar.gz
(7.3 kB
view hashes)
Built Distribution
albatross3-0.2.0-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for albatross3-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f6fcd5fc9a9592b444684710372e03299136feb54e2b1063f32bbd6a2531881 |
|
MD5 | af694d4affede1bb83d551261701b89c |
|
BLAKE2b-256 | 55a97084596013ff14e6063fb980fb16dc9d89867e3bd0e046428458b2980d6e |