bbelderbos,
@bbelderbos@fosstodon.org avatar

Managing environment variables in , python-dotenv or -decouple?

When I need to:

from distutils.util import strtobool
DEBUG = bool(strtobool(os.getenv('DEBUG', 'True')))

...to ensure correct types, I opt out of python-dotenv. Python-decouple (or Pydantic) it is for me :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • rosin
  • thenastyranch
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • cisconetworking
  • slotface
  • vwfavf
  • everett
  • Durango
  • kavyap
  • GTA5RPClips
  • megavids
  • khanakhh
  • osvaldo12
  • ngwrru68w68
  • normalnudes
  • anitta
  • ethstaker
  • cubers
  • modclub
  • tacticalgear
  • provamag3
  • Leos
  • tester
  • JUstTest
  • All magazines