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: Env = Env("file_path.json")

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

env.get('key_name')

How to get all environment:

env.get_env()

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: Env = Env("ruta_de_archivo.json")

Como conseguir el valor de una llave de entorno:

env.get('nombre_de_la_llave')

Como conseguir todo el entorno:

env.get_env()

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.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

JsonEnv-0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jsonenv-0.1.tar.gz
Algorithm Hash digest
SHA256 49c4bb0b9cb044e1e64c7933e2635eb6faed590db6dfc9872d562007e4ef76c8
MD5 bc6f9c51458db24a3453d6bc1e1960cd
BLAKE2b-256 dd1fc6a60a6bfea001fec8cec2a5d152e116ea9782209322384d394be761cc8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: JsonEnv-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 847cd887fbcbec8c8501d1d48fcb4832c0023d98ba33478d607bf1771d847208
MD5 bd85e753f33d54c6a6f20a13fc67c0a3
BLAKE2b-256 035058320ecd43e667c590d13c8df3f77dcb8f14506caf9cdff6c08c964982a5

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