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 application server, MQTT server, microservice container, ETL or stream processor.

ASAB is developed on GitHub.

Contributions are welcome.

Have fun!

Join the chat at https://gitter.im/TeskaLabs/asab

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.5b3.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asab-18.5b3-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for asab-18.5b3.tar.gz
Algorithm Hash digest
SHA256 13cb6e6a191707c7e2893d6dd7dda1f363341a7ae9a68f2e40b640dec51bea34
MD5 2402b6d50f7750cda5091649210633cc
BLAKE2b-256 7bf5e9213af8c3ea34f455fed20190e609ffdfd9cd0dc3ae60d5949c0f9191ae

See more details on using hashes here.

File details

Details for the file asab-18.5b3-py3-none-any.whl.

File metadata

File hashes

Hashes for asab-18.5b3-py3-none-any.whl
Algorithm Hash digest
SHA256 ca7aec00da2a4a57f6d94239db008827d670bd18d1c788c2004d328662697bbd
MD5 c79ca698ef4863f2529c518714156f8c
BLAKE2b-256 cd1f14e2bc36ccdc7ce954638632f1dba80af02093dbcbbe7fc8a4b3839ef85f

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