Skip to main content

ASAB simplifies a development of async application servers

Project description

Asynchronous Server App Boilerplate (or ASAB for short) minimizes the amount of code that needs to be written when building a server application in Python. ASAB is fully asynchronous, this means you can use the new shiny async/await syntax from Python 3.5, making your code non-blocking, speedy and hence scalable.

We hope you will find ASAB fun and easy to use, especially when you are about to build a Python-based application server such as web server, MQTT server, microservice container, ETL or stream processor.

ASAB is developed on GitHub.

Contributions are welcome.

Have fun!

Installation

pip install asab

Documentation

Documentation on Readthedocs

Example

#!/usr/bin/env python3
import asab

class MyApplication(asab.Application):
    async def main(self):
        print("Hello world!")
        self.stop()

if __name__ == '__main__':
    app = MyApplication()
    app.run()

Principles

  • Write once, use many times

  • Keep it simple

  • Well documented

  • Asynchronous via Python 3.5+ async/await and asyncio

  • Event-driven Architecture / Reactor pattern

  • Single-threaded core but compatible with threads

  • Good support for containerization

  • Compatible with pypy, Just-In-Time compiler capable of boosting Python code performace more then 5x times

  • Support for introspection

  • Modularized

High-level architecture

Schema of ASAB high-level achitecture

Licence

ASAB is an open-source software, available under BSD 3-Clause License. ASAB is maintained by TeskaLabs Ltd.

Project details


Download files

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

Source Distribution

asab-18.4b3.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file asab-18.4b3.tar.gz.

File metadata

  • Download URL: asab-18.4b3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for asab-18.4b3.tar.gz
Algorithm Hash digest
SHA256 7729e3fe86a0254cdd6d9564352c0032f098cc32dbcb051e7dc3c5d3c16b382d
MD5 2a2eb638689e3c4f93145b1e5d0e684c
BLAKE2b-256 8216da09276d92088e8455a9d42efaa134124391cbc6cd1721ffcd9799672313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page