Introduction

This section provides an overview of Chalpak.

Welcome to Chalpak!

Chalpak is a modern, high-performance web framework for building APIs and web applications with Python 3.7+. Inspired by FastAPI and built on top of Starlette and Aiohttp, Chalpak offers a powerful yet intuitive developer experience, and excellent performance.

Open Source Philosophy

Chalpak is proudly open-source! 🎉 We believe in creating an accessible, collaborative platform that thrives on community contributions.

Contribute:

Interested in helping us improve? Check out our GitHub repository to get started! From feature suggestions to bug fixes, all contributions are welcome.

Project Overview

Chalpak aims to be a lightweight, flexible, and easy-to-learn alternative to existing Python web frameworks. It leverages modern Python features like type hints and async/await to make your code more readable, maintainable, and efficient.

Key Goals:

  • Fast to Code: Increase development speed with an intuitive API and minimal boilerplate.
  • Fast to Run: Deliver high performance thanks to Starlette and asynchronous programming.
  • Automatic API Docs: Generate interactive API documentation (OpenAPI/Swagger and ReDoc) automatically from your code.
  • Data Validation: Use Pydantic for robust data validation and serialization.
  • Easy to Learn: Designed with simplicity and a gentle learning curve in mind.
  • Extensible: Support for plugins and middleware to customize and enhance functionality.

Key Features

FeatureDescription
FastAPI-like APISimilar developer experience to FastAPI, making it easy to transition or learn if you're familiar with FastAPI.
Asynchronous SupportLeverage async and await for non-blocking, concurrent request handling.
Type HintingUse Python type hints for improved code readability, maintainability, and automatic data validation.
Pydantic IntegrationDefine data models and perform data validation using Pydantic.
Automatic API DocsGenerate interactive API documentation (OpenAPI/Swagger and ReDoc) from your code and type hints.
Dependency InjectionPowerful and easy-to-use dependency injection system.
Middleware SupportAdd custom middleware to modify requests and responses.
Testing UtilitiesBuilt-in testing utilities to simplify writing tests for your application.
Built on StarletteBenefit from the performance and features of the Starlette ASGI toolkit.

Install and try now

pip install chalpak