I’ve created a new Python package with FastAPI in mind, called FastRDB (R stands for Redis).
While working with FastAPI (or any other framework), we usually write
separate CRUD operations for SQLAlchemy (database) and Redis (cache). So I thought—why not merge them?
So I made FastRDB 🙃 , which provides various methods to perform CRUD, and it will automatically work with Redis as well.
Features:
Type-Safe CRUD Operations: Built with Python type hints and generics for robust type checking
SQLAlchemy Integration: Seamless integration with SQLAlchemy for database operations
Redis Caching: Integrated Redis caching with automatic cache invalidation
Async Support: Fully asynchronous operations using SQLAlchemy async ORM and Redis
Pagination: Built-in pagination support with customizable limits and page numbers
Pydantic Integration: Seamless integration with Pydantic for schema validation
Automatic Cache Management: Smart cache invalidation on data modifications
please check it on pypi : https://pypi.org/project/fastrdb
Github : https://github.com/biisal/fastrdb
You can contribute or raise issues in the GitHub repo.
Thank you
ek star Mardo.... 🙇
4
1May 1, 2025 865 4