Skip to main content

--/--

Project description

IDU config library is dedicated for automatic environment variables loading from .env files and changing.

Be advised that your .env file should be named as .env.{TYPE} where {TYPE} is value of APP_ENV environment variable.

This allows you to have multiple .env files for different scenarios and swapping between them easily on your code launch.

from iduconfig import Config

# This line automatically loads variables from your .env file
config = Config()

# Now you can access them through .get(...) method
env_value = config.get("KEY")

# Or you can set new value for environment variable (even if doesn't exist)
config.set("KEY", "NEW_VALUE")

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

idu_config-1.0.2.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idu_config-1.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file idu_config-1.0.2.tar.gz.

File metadata

  • Download URL: idu_config-1.0.2.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/10

File hashes

Hashes for idu_config-1.0.2.tar.gz
Algorithm Hash digest
SHA256 23887d1ff766bfb45ecfdb29f27c0a9cbe427732ab519c18fa9a0b241f5b686a
MD5 d0456616b6e8d82be3a8802dd1089046
BLAKE2b-256 006fe733619a1218af3c09527337d30743945b511a78a66b4776d78c2b1d5fc5

See more details on using hashes here.

File details

Details for the file idu_config-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: idu_config-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Windows/10

File hashes

Hashes for idu_config-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ed7defa887dce3d2737d8e8b4734372650b24ee6ff60554cb0e44a019e1b14d
MD5 7234df455d5e5cab8dd9240dbaedfd8d
BLAKE2b-256 309de26ac203c896638a99b36e33b8226d2de69238977e0d2b700aecbe46c491

See more details on using hashes here.

Supported by

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