A small package to simplify configuration storing and retrieving
Project description
BetterConfigs
A small package to simplify configuration storing and retrieving
Usage
Using BetterConfigs is as simple as importing the package, calling a new configuration object, and saving whatever you need to a file.
Example Code
- Import the package with
import betterconfigs
- Create a configuration file object with
objectname = betterconfigs.config(filename)
where objectname is a blank variable and filename is the string of the configuration file. - You can now set properties using
objectname[property]=key
. Note you cannot use the property version as this is specific to the configuration file and must not be changed.
import betterconfigs
t = betterconfigs.config('test.config')
t['hello'] = 'world'
print(t['hello'])
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
betterconfigs-0.6.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for betterconfigs-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f93ed71f13ddd6e2823b2816235a2c4e44a84a4a289ce63e1ec11ad6104a581 |
|
MD5 | b754ce8d745b927c59fb1afe5722d380 |
|
BLAKE2b-256 | 71d7385e5a25eca77921516967f0396c72d4cd95e0538094dc7d50eb50e1bce7 |