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

Uploaded Source

Built Distribution

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

roskarl-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for roskarl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 923279b226f217e3d7786f248fa6502822d49d59deaade733f46a4771d9a2f05
MD5 2936b7da25b1ae63b8d398d0f8bac88d
BLAKE2b-256 1aa012bbca8f6d13631b84104801ac0b1070ba672d253898ac97506544467e5f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for roskarl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19d82a60177b8002fd48f39a9bfa727aafc37db7ef26d4c91bf91b2bf4720a2d
MD5 1b0315550f7002a292815847e0f9c000
BLAKE2b-256 e9e482f1d1309f2b9b81d6126035e00e594b6820124a16149a73bbc24dab96d5

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