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.0.tar.gz (3.6 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.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roskarl-2.0.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 f0fc65b8fe83adec5d0fc7204c795e6ef68ca4cec433fb038f71dea74d7f56de
MD5 1ee116f7f6627fe0d8a65425373bd8da
BLAKE2b-256 831c78a682a2348f080ce6c2f3409976668aee41208cb9afd022965030e34478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roskarl-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2add6db1f618fd7edcb65c58ef55f8a601f09663580bef1c6ebdc34bdfa8c04a
MD5 5fd2a9ff3635b8271532faedf525fb18
BLAKE2b-256 e113bcad9a824c8e28140c505a822468a454ff22ea7d41d43f6c72191d312f76

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