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.6+ 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.6, 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!

https://travis-ci.com/TeskaLabs/asab.svg?branch=master Join the chat at https://gitter.im/TeskaLabs/asab

Installation

pip install asab

Documentation

Video tutorial

http://img.youtube.com/vi/77StpWxOIBc/0.jpg

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.6+ 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

  • Kappa architecture

  • 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-21.11.tar.gz (65.1 kB view details)

Uploaded Source

Built Distribution

asab-21.11-py3-none-any.whl (88.6 kB view details)

Uploaded Python 3

File details

Details for the file asab-21.11.tar.gz.

File metadata

  • Download URL: asab-21.11.tar.gz
  • Upload date:
  • Size: 65.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for asab-21.11.tar.gz
Algorithm Hash digest
SHA256 75e2ef9fb4aad4eacf864f77f8baa4ef8d58ca377a7cadb2e2247431044df9e5
MD5 76598f9bdc157dfc7f9bd89a3916aafe
BLAKE2b-256 07148b886ba85ae36a5894dc0f543b595c9bc8bb23181c739fcdfe2c86b66f6a

See more details on using hashes here.

File details

Details for the file asab-21.11-py3-none-any.whl.

File metadata

  • Download URL: asab-21.11-py3-none-any.whl
  • Upload date:
  • Size: 88.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for asab-21.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6b72e5a9b50c5bc8ff022e2dcda0507bd68e2b7a2e9d3e5d201f0cc5fe246e47
MD5 54efcd3db65d595563f339fb9a8bdd5b
BLAKE2b-256 ba1efc52691ce7dc6a8b1c9a96a7ad20313a80e4ac7cbdf08b507c865320f584

See more details on using hashes here.

Supported by

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