Parsenvy 3.0.3
pip install Parsenvy
Released:
Enviously elegant environment variable parsing
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD 3-Clause License Copyright (c) 2017, Nik Kantar All rights reserved. Redistribution and use in...)
- Author: Nik Kantar
- Requires: Python >=3.9
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
- Typing
Project description
Parsenvy is an enviously elegant environment variable parsing Python library.
Environment variables are strings by default. This can be rather inconvenient if you’re dealing with a number of them, and in a variety of desired types. Parsenvy aims to provide an intuitive, explicit interface for retrieving these values in appropriate types with human-friendly syntax.
Features
Examples
>>> import parsenvy
>>> parsenvy.bool('DEBUG_ENABLED') # DEBUG_ENABLED=True
True
>>> parsenvy.int('POSTS_PER_PAGE') # POSTS_PER_PAGE=13
13
>>> parsenvy.float('EXCHANGE_RATE') # EXCHANGE_RATE=42.911
42.911
>>> parsenvy.list('INVALID_USERNAMES') # INVALID_USERNAMES=admin,superuser,user,webmaster
['admin', 'superuser', 'user', 'webmaster']
>>> parsenvy.tuple('SAMPLE_GREETING') # SAMPLE_GREETING=Hello,world!
('Hello', 'world!')
>>> parsenvy.set('ALLOWED_CATEGORIES') # ALLOWED_CATEGORIES=python,vim,git
{'python', 'vim', 'git'}
>>> parsenvy.str('DB_PREFIX') # DB_PREFIX=dj_
'dj_'
Install
pip install parsenvy
Contributing
Contributions are welcome, and more information is available in the contributing guide.
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License (BSD 3-Clause License Copyright (c) 2017, Nik Kantar All rights reserved. Redistribution and use in...)
- Author: Nik Kantar
- Requires: Python >=3.9
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
- Typing
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
Built Distribution
File details
Details for the file parsenvy-3.0.3.tar.gz
.
File metadata
- Download URL: parsenvy-3.0.3.tar.gz
- Upload date:
- Size: 42.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931c15a8d718f3a0e4cb0e0ca11fad4338c472a6faae69a86ee36ef9e253ce5d |
|
MD5 | c4822ae4104af3c6ba37e116d369ad6c |
|
BLAKE2b-256 | 139295a162096d6ac809f17312ef52dd0a6121bc5c3611feb9a9cbb69293be58 |
File details
Details for the file parsenvy-3.0.3-py3-none-any.whl
.
File metadata
- Download URL: parsenvy-3.0.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f1160045aece8e2caa26039dc7e3adce534374777fa4741e708a9cc0d5387f2 |
|
MD5 | d35a0b4a95a003bd1fa66c960eff85a9 |
|
BLAKE2b-256 | a83648f625a4e3dc88341a98791a6020d5ddf94451d4d2823b19637cf6d502e5 |