Skip to main content

Environment variable helpers

Project description

Roskarl

Is a tiny module for environment variables.

How to install

pip install roskarl

Example usage

from roskarl import env_var

str

value = env_var(var="STR_VAR")

returns str

bool

value = env_var(var="BOOL_VAR", type_=bool)

returns bool if environment variable value uppercase is TRUE or FALSE

list

value = env_var(var="LIST_VAR", type_=list, separator="|")

returns list if value is splittable by separator

int

value = env_var(var="INT_VAR", type_=int)

returns int if value is numeric

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

roskarl-2.0.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

roskarl-2.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file roskarl-2.0.1.tar.gz.

File metadata

  • Download URL: roskarl-2.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for roskarl-2.0.1.tar.gz
Algorithm Hash digest
SHA256 8d46c70a59f0182724e7aa2706c7fc8ea08e76d09898ab3575232ec956252229
MD5 74a8d84865e8fecaa13850c81b91ffe9
BLAKE2b-256 24d3d89e852983477ce53a8d3f40f09dfbebdb07b4b1f1628511b5a5e750ed4f

See more details on using hashes here.

File details

Details for the file roskarl-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: roskarl-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for roskarl-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 194b80e12dd821b1ff43407b7363ed64c501c5e9640bf6b2e479f1501768d1bf
MD5 3d13db39b3d215c81bad37411a8f53dc
BLAKE2b-256 18ee44f98c114b460addfc10463c8392325f445174290ff0e65271e4baf1836a

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