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.1.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.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idu_config-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2032d8330b414a09447dcce2baaa40bf8b0e04868159cb22942c4881bb1f4730
MD5 16c4e712d7452b1128dd43ef6ff40056
BLAKE2b-256 798941a3e4d5193857dd9adeea54c9b5f95f4d6af3f8453b9bae1960702f32d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idu_config-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ce42c03c4b8feffa40cee9e68ce53b9875d01c22b9c37843d6436ea24d9c0eb
MD5 77570e47a3d76c6c367b9a3b9eac1074
BLAKE2b-256 f490fc6a807a815cc3eaade3f6a0da46013f6d4e810e98785c35b97a67fee7fd

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