Skip to main content

Python package to handle multiple files with environment variables.

Project description

Python package to handle multiple files with environment variables.

  • TODO: Ver si puedo instalarlo en global para manejar las variables dentro de arch.

Quickstart

  • Crear folder .envs/ en la raiz del proyecto.
cd /path/to/project
mkdir -p .envs
touch .envs/name_env.env
  • Editar las variables de entorno, deberán llamarse {NAME_ENV}_{VAR}.
NAME_ENV_VAR_1=my_var_1
NAME_ENV_VAR_2=my_var_2
from izienv import BaseEnv, load_env_var

class MyEnv(BaseEnv):
    @property
    @load_env_var()
    def VAR_1(self) -> str:
        return "VAR_1"
    
    @property
    @load_env_var()
    def VAR_2(self) -> str:
        return "VAR_2"

# You need .envs/ folder with envs. Or set `path_envs`.
env = MyEnv(name='name_env')
print(env.VAR_1)
print(env.VAR_2)

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

izienv-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

izienv-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file izienv-0.0.4.tar.gz.

File metadata

  • Download URL: izienv-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for izienv-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3f055d4e5583313f76571a08e8ceea7086ee726d22c4a14f807c036761fa7abb
MD5 389564a99544c2b9b39e759e510d7196
BLAKE2b-256 2231b851d5534b4d5b2a02fe8b7c3431d2b9ed0c3e20adcb34379fae659c3d49

See more details on using hashes here.

File details

Details for the file izienv-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: izienv-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for izienv-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d6cfe653281672a2fdd359e67248fb52c9f86740c09aff938e5779107cebf8
MD5 65696cfa02ec01f4f0c5faa09f2ce5c4
BLAKE2b-256 8f1acd7471094e4dd149c9996215b469b9677410fbcc4dd21addca5449e6fcce

See more details on using hashes here.

Supported by

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