Hooks🔗
The Environment-class provides a few hooks that can be used to add logic to the initialization of the environment, or modify its behavior.
pre-setup
🔗
This hook is called before the settings have been determined, but after the environment has been loaded.
post-setup
🔗
This hook is called after the settings have been determined.
load_dotenv
🔗
This method is used to load the .env file. By default, the library uses the python-dotenv library to load the file. You can override this method to provide your own implementation. It should return a mapping of the environment variables, where the keys and values are strings.