{"repo":"iklobato/lightapi","free":true,"listed":false,"github":"https://github.com/iklobato/lightapi","clone":"git clone https://github.com/iklobato/lightapi.git","description":"LightApi is a lightweight API framework designed for rapid development of RESTful APIs in Python. It provides a simple and intuitive interface for defining endpoints and handling HTTP requests without the need for complex configuration or dependencies.","language":"Python","stars":115,"topics":["api","api-rest","lightweight","mvp","poc","python","rest","rest-api","server","webapp"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"LightAPI v2: Annotation-Driven Python REST Framework LightAPI is a Python REST API framework where a single annotated class is simultaneously your ORM model, your Pydantic v2 schema, and your REST endpoint. Declare fields once — LightAPI auto-generates the SQLAlchemy table, validates input, handles CRUD, enforces optimistic locking, filters, paginates, and caches. --- Table of Contents - Why LightAPI v2? - Installation - Quick Start - Core Concepts - RestEndpoint and Field - Auto-injected Columns - Optimistic Locking - HttpMethod Mixins - Serializer - Authentication and Permissions - Filtering, Search, and Ordering - Pagination - Custom Queryset - Response Caching - Middleware - Database Reflection - YAML Configuration - Async Support - Enabling Async I/O - Async Queryset - Async Method Overrides - Background Tasks - Async Middleware - Sync Endpoints on an Async App - API Reference - Testing - Contributing - License --- Why LightAPI v2? - One class, three roles : Your RestEndpoint subclass is the SQLAlchemy ORM model, the Pydantic v2 schema, and the HTTP handler — no separate files, no boilerplate. - Annotation-driven columns : Write title: str = Field(min length=1) — LightAPI creates the VARCHAR column, the Pydantic constraint, and the API validation all at once. - Optimistic locking built in : Every endpoint gets a version field. PUT / PATCH require version in the body; mismatches return 409 Conflict . - Opt-in async I/O : Swap create engine for create async engine — LightA","default_branch":null,"files":null,"tree":[],"storefront":"/r/iklobato","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iklobato/lightapi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}