Skip to main content

Build Status

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.

Metadata

Release files for albatross3 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for albatross3 0.6.3
File Size Uploaded
albatross3-0.6.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for albatross3 0.6.3
File Interpreter ABI Platform
albatross3-0.6.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / albatross3-0.6.3.tar.gz

Download URL albatross3-0.6.3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4fc41ccea351e9c5e4b5c7c29568c39d29c23057e4e87fd95dddae6436f6304a
BLAKE2b-256 checksum
How to use checksums
aef53910ea235780c9f90d7fa9185817f7e5599d596949c50d01c2775bb6ccd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / albatross3-0.6.3-py3-none-any.whl

Download URL albatross3-0.6.3-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9677b715211b14bc11bf3ed07a5affe412f7012f529129802b34937205d0f5af
BLAKE2b-256 checksum
How to use checksums
9638f72d0f5fefddb2f82c970bbb3722ebab8767443b23761b4e8ba50c27671d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6.3 This release

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

3 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page