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.5.tar.gz
(9.2 kB
view details)
Built Distribution
File details
Details for the file fastapi_lazy-1.2.5.tar.gz
.
File metadata
- Download URL: fastapi_lazy-1.2.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 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 | f24a50852d18928f09bafc3ebd315d1c73025743d2115a7d0c9bea4b5cabfa20 |
|
MD5 | 41bbacc498af1db4d8f2538df67ade22 |
|
BLAKE2b-256 | 09f95305c9772f5238605f4c7c57981aaff178a59149f208e7f59f3b10c834e0 |
File details
Details for the file fastapi_lazy-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: fastapi_lazy-1.2.5-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 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 | 7872debbf0ada4ada24127ec8fdce37efb07dc982601bf50e8b5b80c267b4e3d |
|
MD5 | b15e7e2a6d3245917042196e9d5cc8c1 |
|
BLAKE2b-256 | cb315a22f80d8ad493aa94382180c46948c6cedd6e84f16677df459105bd6c62 |