Skip to main content

Utilities that you use in various projects made in FastAPI

Project description

Fastapi-lazy 🦥

lazy

Utilities that you use in various projects made in FastAPI.

PyPI version Downloads Downloads Language framework Star Badge Pypi


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.
  • 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


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.6.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

fastapi_lazy-1.2.6-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_lazy-1.2.6.tar.gz.

File metadata

  • Download URL: fastapi_lazy-1.2.6.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for fastapi_lazy-1.2.6.tar.gz
Algorithm Hash digest
SHA256 372019522ccc32d6d3ec86d1c08498175a4803af05cf162f086552a78cc0b217
MD5 5a23e5c47ffe319de9b560945c04ffd9
BLAKE2b-256 73f8bfa289db6a08e22483d9b41db3de79d0cc534b6cb823d1a6a0373fddbafc

See more details on using hashes here.

File details

Details for the file fastapi_lazy-1.2.6-py3-none-any.whl.

File metadata

  • Download URL: fastapi_lazy-1.2.6-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for fastapi_lazy-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ac3501df68c23f99ff4c040a280805961c070a72137ee6fa4e8aa8716a09dfdf
MD5 81fdb3c634d55e69cd947585da9d4c3d
BLAKE2b-256 3f329a19245ad2da3153b3cd1b31f63a43cd0cb464b9cd293951f3f9fa04c014

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page