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.
- 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.
- Creates a
- 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:
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.4.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file fastapi_lazy-1.2.4.tar.gz
.
File metadata
- Download URL: fastapi_lazy-1.2.4.tar.gz
- Upload date:
- Size: 9.1 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 | fc2058cb97b070a087c00a59e7530a3ae33df06e220ecdd2746692d811e31595 |
|
MD5 | e67c8d5200cd87d8e659c828baa94a71 |
|
BLAKE2b-256 | f46aa4aec83de833f7817e9b785b8f457ba053ec60796dac64a9cd53c395054e |
File details
Details for the file fastapi_lazy-1.2.4-py3-none-any.whl
.
File metadata
- Download URL: fastapi_lazy-1.2.4-py3-none-any.whl
- Upload date:
- Size: 11.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 | 9c17387eaf87f89adc551b6fc09b1ebd79f1643a315c691bf0b2e0cc1299084b |
|
MD5 | c11be981d948adc57c265f325d7962b5 |
|
BLAKE2b-256 | f56527553381bfce41496801b204dae5eb575fdda15dfb7cef8509ebbb51ce1f |