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.0.0.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file fastapi-lazy-1.0.0.tar.gz
.
File metadata
- Download URL: fastapi-lazy-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621612190e9db55073be32c05fff69f517666800c2280535201e02ca34e38cec |
|
MD5 | 7798cb0d791be244b7c2509139707119 |
|
BLAKE2b-256 | d2370df2f2115b6238de6ba8b0e6db675fd44876594d59d2e91f75c9f6b286d5 |
File details
Details for the file fastapi_lazy-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_lazy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4833a6ccf097e1f75345d6814d285c50a5ebfaba47af5b929b152ef346b7858 |
|
MD5 | abb913c5a8cd4b78c66373618a4cc9cd |
|
BLAKE2b-256 | 90a20078b2df2b697a86a2487b02983a707f30c0befd5bf216015b9eb4e28ac4 |