Skip to main content

JsonEnv allows you to make environment variables with Json, allowing you to write numbers and other types of variables

Project description

English

What is JsonEnv?

JsonEnv is a Python library that allows you to use a json file to create environment variables, allowing you to directly save numbers, lists, booleans, etc. avoiding having to convert the environment variable (which is always returned as a string) to another data type.

How to create an environment class:

from JsonEnv.jsonenv import env

env.load_env("path")

How to get the value of a key from the environment:

env.get('key_name')

How to get all environment:

env.get_env()

How change a key value:

env.change("key_name", "new_value")

Español

Que es JsonEnv?

JsonEnv es una libreria de Python que te permite usar un archivo json para crear variables de entorno, haciendo que puedas guardar directamente numeros, listas, booleanos, etc. evitando tener que convertir la variable de entorno (que siempre son devueltas como cadena) a otro tipo de dato.

Como crear una clase de entorno:

from JsonEnv.jsonenv import env

env.load_env("ruta")

Como conseguir el valor de una llave de entorno:

env.get('nombre_de_la_llave')

Como conseguir todo el entorno:

env.get_env()

Como cambiar el valor de una llave:

env.change("nombre_llave", "nuevo_valor")

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

jsonenv-0.2.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

JsonEnv-0.2.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file jsonenv-0.2.1.2.tar.gz.

File metadata

  • Download URL: jsonenv-0.2.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for jsonenv-0.2.1.2.tar.gz
Algorithm Hash digest
SHA256 dec7fb55f0afa5ed32cfeb3d0654c45f32bbed0904de2dd1c9c802c4e6f041f5
MD5 a441b29fd20ccaebe17f4f2f7f66b1a3
BLAKE2b-256 cdbd22001fdf18a0bbdf40df631d951e825b58807f049e1f5f45d26de8b87f7e

See more details on using hashes here.

File details

Details for the file JsonEnv-0.2.1.2-py3-none-any.whl.

File metadata

  • Download URL: JsonEnv-0.2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for JsonEnv-0.2.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a693298e39b6ee6ad06cfa4c9fed48a17ea9d3861c24f5d55f2251970ec25e0
MD5 c75f378dbbc83fc568cb40f08754e6a7
BLAKE2b-256 53c533c4d00211b01b35e88591ea7b367a1f3fdf6e2dda284a44047a2ed0846e

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