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-1.0.5.tar.gz
(3.4 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-1.0.5.tar.gz.
File metadata
- Download URL: roskarl-1.0.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09235c615fb7403c99fdb6e8c4f66e8a62a29a0721560f1ebb2a52ba29200516
|
|
| MD5 |
0edfecbc9099d1b0efb1194a3ab485da
|
|
| BLAKE2b-256 |
898a04ef304cd64b0ae158f9aee4bc968ee1ab2e3494fa763e0818740d7c08d9
|
File details
Details for the file roskarl-1.0.5-py3-none-any.whl.
File metadata
- Download URL: roskarl-1.0.5-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f47618a703f3047c227cc3c4188b0d4dd3cf6c96d4fca14dffe31eea59346fd7
|
|
| MD5 |
b84418c7c852a848bcf11fe80e6b91f0
|
|
| BLAKE2b-256 |
08bfd7e685cd838df721847593d293ad36578d81c3680e4f53e4c32354bcece3
|