Utilities that you use in various projects made in FastAPI
Project description
Fastapi-lazy 🦥
Utilities that you use in various projects made in FastAPI.
Source Code: https://github.com/yezz123/fastapi-lazy
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.
- 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.
- 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.
- Creates a
- Support UUID generator:
- Create a custom UUID4 using the current timestamp.
Development 🚧
You should create a virtual environment and activate it:
python -m venv venv/
source venv/bin/activate
And then install the development dependencies:
pip install -r requirements.dev.txt
Format the code 💅
Execute the following command to apply pre-commit
formatting:
make lint
License 🍻
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastapi_lazy-1.2.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for fastapi_lazy-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db8dbce530dcab1cce6181a530902c617a9e0df5b374cf2d217de821b18f9b6 |
|
MD5 | ab8f7f8688a3808852918935c41865d2 |
|
BLAKE2b-256 | a84cededea368e1b174c07bd84ed607548ea8cf3352aab9336a16ab7649eb80d |