Skip to content

Asynchronous Server Application Boilerplateยค

Asynchronous Server App Boilerplate (ASAB) is an open-source microservice platform for Python 3.7+ and asyncio. ASAB aims to minimize the amount of code that needs to be written when building a microservice or an application server. ASAB is fully asynchronous using async/await syntax from Python 3, 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 microservices via Docker or Kubernetes swiftly and easily.

Anyone can (and is encouraged to) use ASAB in their own projects, for free.

Install ASAB Tutorials About TeskaLabs Contribute

ASAB is the right choice when:

You want to build a microservice or an application server

You are using Python 3.7+

You want to use asynchronous I/O

You want to write non-blocking, speedy, and scalable code

Here is a complete example of a working microservice:

hello_world.py
import asab

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

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

Development

TeskaLabs Ltd maintains ASAB.

ASAB is developed on GitHub. Contributions are most welcome! If you want to help us improve ASAB, check our contribution rules.

ASAB is a free and open-source software, available under the BSD licence. Anyone is freely licensed to use, copy, study, and change the software in any way, and the source code is openly shared so that people can voluntarily improve the software.