Skip to main content

ASAB simplifies a development of async application servers

Project description

Asynchronous Server App Boilerplate (or ASAB for short) is a microservice platform for Python 3.5+ and asyncio. The aim of ASAB is to minimize the amount of code that needs to be written when building a microservice or an aplication server. ASAB is fully asynchronous using async/await syntax from Python 3.5, making your code modern, non-blocking, speedy and hence scalable. We make every effort to build ASAB container-friendly so that you can deploy ASAB-based microservice via Docker or Kubernetes in a breeze.

ASAB is the free and open-source software, available under BSD licence. It means that anyone is freely licenced to use, copy, study, and change the software in any way, and the source code is openly shared so that people could voluntarily improve the design of the software. Anyone can (and is encouraged to) use ASAB in his or her projects, for free.

ASAB is currently used for microservices, web application servers, ETL or stream processors.

ASAB is developed on GitHub. Contributions are welcome!

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

Installation

pip install asab

Documentation

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.12b1.tar.gz (31.6 kB view details)

Uploaded Source

File details

Details for the file asab-18.12b1.tar.gz.

File metadata

  • Download URL: asab-18.12b1.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for asab-18.12b1.tar.gz
Algorithm Hash digest
SHA256 7e0902d9f34feb0d2c5aed6edaba8617c047eda967c9f45cc7aa641d7cb01a76
MD5 69d16f0fb158035bd1d11f02e9920a06
BLAKE2b-256 6b444ff4cc7ba8a5aca052ba369b95690ffa218a16e9222907d6f9c927396c15

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