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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for betterconfigs-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c842a22e30fdb34fa1bd512072f19f449bd7bd45664e034d9400fc9d9563c3fe |
|
MD5 | 394d11d469af11e1ae0eee98f754a481 |
|
BLAKE2b-256 | 92bb228f546817ac6f7297abc8d8c7eac90d17e121eafad04e9f0d2f10d05720 |