{"id":44934978,"url":"https://github.com/mahimailabs/fluxcrud","last_synced_at":"2026-02-18T07:08:15.648Z","repository":{"id":329756058,"uuid":"1112430016","full_name":"mahimailabs/fluxcrud","owner":"mahimailabs","description":"FluxCRUD is a easy to use, fast, and modern CRUD framework for FastAPI.","archived":false,"fork":false,"pushed_at":"2025-12-21T17:14:37.000Z","size":1699,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T05:14:15.252Z","etag":null,"topics":["async","crud","fastapi","fastapi-crud","fluxcrud","pydantic","pydantic-v2","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://fluxcrud.mahimai.dev/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mahimailabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["mahimairaja"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-12-08T16:02:19.000Z","updated_at":"2025-12-21T17:16:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mahimailabs/fluxcrud","commit_stats":null,"previous_names":["mahimailabs/fluxcrud"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mahimailabs/fluxcrud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahimailabs%2Ffluxcrud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahimailabs%2Ffluxcrud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahimailabs%2Ffluxcrud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahimailabs%2Ffluxcrud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahimailabs","download_url":"https://codeload.github.com/mahimailabs/fluxcrud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahimailabs%2Ffluxcrud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29571902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","crud","fastapi","fastapi-crud","fluxcrud","pydantic","pydantic-v2","sqlalchemy"],"created_at":"2026-02-18T07:08:14.948Z","updated_at":"2026-02-18T07:08:15.642Z","avatar_url":"https://github.com/mahimailabs.png","language":"Python","funding_links":["https://github.com/sponsors/mahimairaja"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://fluxcrud.mahimai.dev\"\u003e\n    \u003cimg src=\"https://github.com/mahimailabs/fluxcrud/blob/main/assets/logo.png?raw=true\" width=\"400\" alt=\"FluxCRUD Logo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eModern, High-Performance, Async-First CRUD Framework for FastAPI ⚡\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mahimailabs/fluxcrud/actions/workflows/ci.yml\"\u003e\n    \u003cimg src=\"https://github.com/mahimailabs/fluxcrud/actions/workflows/ci.yml/badge.svg\" alt=\"CI Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/mahimailabs/fluxcrud\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/mahimailabs/fluxcrud/branch/main/graph/badge.svg\" alt=\"Coverage\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/fluxcrud/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/fluxcrud\" alt=\"PyPI Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/mahimailabs/fluxcrud/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/mahimailabs/fluxcrud\" alt=\"License\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n**FluxCRUD** is a developer-friendly framework designed to eliminate boilerplate when building efficient, scalable APIs with **FastAPI** and **SQLAlchemy 2.0**. It provides a fully typed, async-first experience with built-in best practices like **caching**, **N+1 query prevention (DataLoaders)**, and **automatic extensive pagination**.\n\n## ✨ Features\n\n- **🚀 Async \u0026 Fast**: Built on top of `asyncpg`, `aiosqlite`, and `SQLAlchemy 2.0`.\n- **🛠️ Zero Boilerplate**: Auto-generates fully typed CRUD routes (Create, Read, Update, Delete, List).\n- **⚡ Smart Caching**: Integrated support for **Redis**, **Memcached**, and **In-Memory** caching.\n- **🔍 Query Optimization**: Built-in **DataLoaders** to solve N+1 query problems automatically.\n- **📄 Advanced Pagination**: Cursor-based and limit-offset pagination out of the box.\n- **🛡️ Type Safe**: Deep integration with **Pydantic v2** for robust data validation.\n- **📦 Modular**: Use what you need—Router, Repository, or the full Framework.\n\n## 📦 Installation\n\n```bash\npip install fluxcrud\n\n# OR with standard extras\npip install \"fluxcrud[postgresql,redis]\"\n```\n\n## 🚀 Quick Start\n\nBuild a comprehensive API in less than 30 lines of code.\n\n```python\nfrom fastapi import FastAPI\nfrom sqlalchemy.orm import Mapped, mapped_column\nfrom pydantic import BaseModel\nfrom fluxcrud import Flux, Base\n\n# 1. Define your Database Model\nclass Item(Base):\n    __tablename__ = \"items\"\n    id: Mapped[int] = mapped_column(primary_key=True)\n    name: Mapped[str]\n    price: Mapped[float]\n\n# 2. Define Pydantic Schemas\nclass ItemSchema(BaseModel):\n    id: int\n    name: str\n    price: float\n\nclass CreateItemSchema(BaseModel):\n    name: str\n    price: float\n\n# 3. Initialize App \u0026 Flux\napp = FastAPI()\nflux = Flux(app, db_url=\"sqlite+aiosqlite:///:memory:\")\nflux.attach_base(Base)\n\n# 4. Register Routes\n# Auto-generates: GET /items, POST /items, GET /items/{id}, PATCH /items/{id}, DELETE /items/{id}\nflux.register(\n    model=Item,\n    schema=ItemSchema,\n    create_schema=CreateItemSchema\n)\n```\n\nRun it locally:\n\n```bash\nuvicorn main:app --reload\n```\n\n## 🧩 Advanced Usage\n\n### Customizing the Repository\n\nNeed custom logic? Extend `FluxRepository` seamlessly.\n\n```python\nfrom fluxcrud.core import FluxRepository\n\nclass ItemRepository(FluxRepository[Item]):\n    async def get_expensive_items(self, min_price: float):\n        query = select(Item).where(Item.price \u003e min_price)\n        return await self.all(query)\n```\n\n### Enabling Caching\n\nFluxCRUD makes caching trivial.\n\n```python\nfrom fluxcrud.cache import RedisBackend\n\n# Configure Redis cache with 60s TTL\nflux = Flux(\n    app,\n    db_url=\"...\",\n    cache_backend=RedisBackend(\"redis://localhost\"),\n    cache_ttl=60\n)\n```\n\n## 🤝 Contributing\n\nWe welcome contributions! Please check out our [Contributing Guide](CONTRIBUTING.md) to get started.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahimailabs%2Ffluxcrud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahimailabs%2Ffluxcrud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahimailabs%2Ffluxcrud/lists"}