This site is in development
Use Pydantic's BaseSettings class instead of loading .env file manually

Home > Blogs

Use Pydantic's BaseSettings class instead of loading .env file manually

May 23, 2021

    The pydantic package comes with built-in BaseSettings class for us to create a config object with support for .env file for loading environment variables. No need to install python-dotenv and load the env. vars. manually!