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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roskarl-2.1.0.tar.gz.
File metadata
- Download URL: roskarl-2.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b36c079b991dd6ffcf8c74db72d8b7b0d8fb7a76ea40fd03537ceb2052007460
|
|
| MD5 |
36f915862138314b818c78b1f4e638de
|
|
| BLAKE2b-256 |
e32f621f6d51edf239cc82b4a73cb8e580fa0b53ed07b3cfc16a2cd6ac27ed9d
|
File details
Details for the file roskarl-2.1.0-py3-none-any.whl.
File metadata
- Download URL: roskarl-2.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99725f928b4dfe65506e55cfaecfc52df929bedb46c47f48695812e76d8c915d
|
|
| MD5 |
36b5cf2913bef5cacd99bce6ebdcd062
|
|
| BLAKE2b-256 |
1ed91af7d7aa732978b09e88e7b1a83e5ec3c9fd56b43c55041a00ae0df4abf6
|