https://github.com/yezz123/fastango
Simplifies class-based views for more organized and maintainable code in FastAPI ✨
https://github.com/yezz123/fastango
List: fastango
fastapi mvc orjson pydantic
Last synced: 4 days ago
JSON representation
Simplifies class-based views for more organized and maintainable code in FastAPI ✨
- Host: GitHub
- URL: https://github.com/yezz123/fastango
- Owner: yezz123
- License: mit
- Created: 2021-09-30T14:25:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T23:22:28.000Z (12 months ago)
- Last Synced: 2025-04-10T03:08:02.637Z (5 days ago)
- Topics: fastapi, mvc, orjson, pydantic
- Language: Python
- Homepage:
- Size: 79.1 KB
- Stars: 118
- Watchers: 7
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-fastapi - FastAPI Lazy - Lazy package to start your project using FastAPI. (Third-Party Extensions / Utils)
- awesome-fastapi - FastAPI Lazy - Lazy package to start your project using FastAPI. (Third-Party Extensions / Utils)
README
# Fastapi-lazy 🦥

Utilities that you use in various projects made in FastAPI.[](https://badge.fury.io/py/fastapi-lazy)
[](https://pepy.tech/project/fastapi-lazy)
[](https://pepy.tech/project/fastapi-lazy)
[](https://github.com/yezz123)
[](https://fastapi.tiangolo.com/)
[](https://github.com/yezz123/fastapi-lazy)
[](https://pypi.org/project/fastapi-lazy)---
**Source Code**:
**Install the project**: `pip install fastapi-lazy`
---
## Features 🎉
- Use the data contained in the JWT
- Use the username contained in the JWT and fetch data.
- Create User Models based on Pydantic.
- Multi Database Support:
- Creates the dependency to be used to connect to the Postgresql.
- Creates the dependency to be used to connect to the MongoDB.
- Create the dependency to be used to connect to the SQlite using SQLAlchemy.
- Support Redis Cache:
- Creates a `pickle` of the object passed as a parameter and saves it in the Redis which is also passed as a parameter.
- Read the `pickle` of the object saved in RedisDB and return it as Python object.
- Support UUID generator:
- Create a custom UUID4 using the current timestamp.
- Create a JWT token creator & verifier.
- Create a simple Password hash using `hashlib`.
- Create an Email Validator.
- Provide a Token Creator for login after adding a new package `passlib`.
- Add A simple Crud file for MongoDB Provider.
- Soon will be added for Postgresql Provider, & SQLite Provider.## Development 🚧
You should create a virtual environment and activate it:
```bash
python -m venv venv/
``````bash
source venv/bin/activate
```And then install the development dependencies:
```bash
pip install -r requirements.dev.txt
```### Format the code 💅
Execute the following command to apply `pre-commit` formatting:
```bash
make lint
```## License 🍻
This project is licensed under the terms of the MIT license.