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.10.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for albatross3-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1dda81ff1261c5d62e2a076f6d35b5f9378033678ea5ea430a8a7171776595 |
|
MD5 | 5efe9ae9b0898399dfecc410fd1ed325 |
|
BLAKE2b-256 | d62002d6c5fd9ae2b205245e01bbb17e6c677e1343cb7a5452fb036db4c8fbed |