Skip to content

Simplifies class-based views for more organized and maintainable code in FastAPI ✨

License

Notifications You must be signed in to change notification settings

yezz123/fastango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3706681 · Dec 29, 2021

History

36 Commits
Nov 19, 2021
Nov 19, 2021
Sep 30, 2021
Oct 9, 2021
Nov 19, 2021
Sep 30, 2021
Sep 30, 2021
Oct 17, 2021
Nov 19, 2021
Sep 30, 2021
Dec 29, 2021
Dec 29, 2021

Repository files navigation

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.