trabConfig
A simple Config file parser that supports json, and yaml formats with auto-save feature.
Installation
from pip
pip install trabConfig
or the old fashioned way
python setup.py install
NOTE: wheels and source dists also available on pypi
Usage
Example -
from trabconfig import trabConfig
# load file verbatim
config = trabConfig("config.json", autosave=False, data='json')
# or just
config = trabConfig("config.json")
# for yaml
config = trabConfig("config.yml", data='yaml)
# autosave capability (saves on changes)
config.autosave = True
# or during instantiation
config = trabConfig("config.json", autosave=True)
# usage example
health = config['health']
config['health'] = 9999
mana = config.get('mana', None)
if mana is not None:
config['mana'] = 999
lvl = config.get('lvl')
config.set('lvl', 99)
config.new('items', [])
config['items'].append('gold')
config.delete('cloth')
config.save()
Notes
Created by - traBpUkciP 2016-2017
Metadata
Release files for trabConfig 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trabConfig-0.1.5.tar.gz | 3.1 kB | Without provenance | Details for trabConfig-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trabConfig-0.1.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for trabConfig-0.1.5-py2.py3-none-any.whl |
Total release size: 7.8 kB
Release files / trabConfig-0.1.5.tar.gz
| Download URL | trabConfig-0.1.5.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a1664f98e5908f120fb4fdede15ac9bcbd9188d265c56d77d9ed763b7f48c2f
|
|
BLAKE2b-256 checksum How to use checksums |
20b32eceb43a89e20f99860ace424840bc63fbb433c550ea8c8d1c0e30ee3de3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / trabConfig-0.1.5-py2.py3-none-any.whl
| Download URL | trabConfig-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d39437b5fceb61007a0cf4d79506b2f4daa683fead85e0a6e1dca9c77e48bf42
|
|
BLAKE2b-256 checksum How to use checksums |
e9ccceb21c36048e514bc18751550c4d92abd5ebb46cbb3b8b4abdb879e0a1d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for trabConfig 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.