Skip to content

bali framework

🏝 Simplify Cloud Native Microservices development base on FastAPI and gRPC.


Introduction

Bali is a framework integrate FastAPI and gRPC. If you want to provide both HTTP and RPC, it can improve development efficiency.

It gives you the following features:

  • A simple layout of file structure rule.
  • Integrated SQLAlchemy ORM and provide generic model methods.
  • Utilities of transform models to Pydantic schemas.
  • GZipMiddleware included and GZip decompression enabled.
  • 🍻 Resource layer to write code once support both HTTP and RPC

Who's using bali framework

Requirements

  1. Python 3.7+
  2. FastAPI 0.63+
  3. grpcio>=1.32.0,<1.42

Installation

# Bali framework
pip install bali-core 

# Bali command line tool 
pip install bali-cli