Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

albatross3

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

albatross3

A modern async python3 web framework

  • 0.6.3
  • PyPI
  • Socket score

Maintainers
1

|Build Status|

Albatross

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

.. code:: 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('/{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.

.. |Build Status| image:: https://travis-ci.org/kespindler/albatross.svg?branch=master
   :target: https://travis-ci.org/kespindler/albatross

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc