ASAB simplifies a development of async application servers
Project description
Asynchronous Server App Boilerplate (or ASAB for short) provides a unified environment for building Pythonic microservices or application servers. ASAB minimizes the amount of code that needs to be written when building a backend infrastructure in Python. ASAB is fully asynchronous using async/await syntax from Python 3.5, making your code modern, non-blocking, speedy and hence scalable. ASAB supports request/response architectures such as HTTP REST as well as message-oriented architectures such as RabbitMQ/AMQP or Kafka or any combinations. We make every effort to build ASAB container-friendly so that you can deploy the microservice to a Docker or Kubernetes in a breeze.
We hope you will find ASAB fun and easy to use.
ASAB is currently used for microservices, web application servers, ETL or stream processors.
ASAB is developed on GitHub.
Contributions are welcome.
Have fun!
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
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
Licence
ASAB is an open-source software, available under BSD 3-Clause License. ASAB is maintained by TeskaLabs Ltd.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.