Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A modern async python3 web framework

Project Description

Albatross

A modern, fast, simple, natively-async web framework. (Python3.5 only)

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('/{name})', Handler())
app.serve()

Notes for Usage

For now (pre 1.0.0), I’m making no claims about API stability (but will try to avoid changes). That said, I’m using this framework for some small projects, and it is a joy to work in! 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. Doing await database calls or controller calls in your views just works!
  • This works with the uvloop project, to make your server fast!

Benchmarks

  • My benchmarks indicate that albatross is as fast as aiohttp, both of which are twice as fast as tornado. You can run the benchmarks by poking around in the bench/ folder.
Release History

Release History

This version
History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.10

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
albatross3-0.6.3-py3-none-any.whl (11.6 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Oct 14, 2016
albatross3-0.6.3.tar.gz (8.3 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting