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.1.0.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file fastapi_lazy-1.1.0.tar.gz
.
File metadata
- Download URL: fastapi_lazy-1.1.0.tar.gz
- Upload date:
- Size: 5.5 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 | 4a56f0cd79b8fec8284fdd1d2a17296c78b8d8ab13dba154e45459b9781d94f5 |
|
MD5 | fc3b69c67457ac92f6e41c4b14484b4c |
|
BLAKE2b-256 | 2b1d0febff0a5221fb4beda892b134eeaf6d733df0e5088fd9d4f7ffdf4ebd9b |
File details
Details for the file fastapi_lazy-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: fastapi_lazy-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 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 | 3fdb20487a49bf22e87fb10a10b796154e28dba4e383eb850be9fd9a7fc380f7 |
|
MD5 | 2af6f8c8a4c7a8932a6d4a6634342531 |
|
BLAKE2b-256 | 166bf0a978fbdc13ebc665fbd57a199648a7311063824fd955ea0ad62d8b2b0a |