An elegant hierarchical (or "onioned") properties parser
Project description
__ONION_PROPS__
ONION_PROPS is a simple python module meant to simplify interaction with java .properties files.
It provides the benefit of being able to parse properties hierarchically to provide a more robust way of storing and using properties.
Currently it provides the ability to:
* load properties from a file (and interact with it as you would a normal dictionary)
* interact (add/delete/edit) with properties
* save properties to a file
ONION_PROPS also supports comments, you can specify whether or not to include comments within any interactor method as well as whether or not to include a timestamp.
USAGE:
To import base parser class:
```from onion_props.onion_props import PropParser```
NOTE:
To add properties to the parser object, it is advised that you also import:
```from onion_props.onion_props import Property, Properties```
As they are the custom data storage classes PropParser uses.
It is possible to add properties as standard dictionary key-values, but in order to add comments, you must import the `Property` class.
Changelog (Onion_props)
=======================
0.2.1
------
- Changed name from prop_parser to onion_parser to accommodate for pypi
0.2.2
------
- Removed integrated modules from install_requires to allow proper installation
0.2.3
-----
- Fixed another dumb error so that now installation can actually be achieved
ONION_PROPS is a simple python module meant to simplify interaction with java .properties files.
It provides the benefit of being able to parse properties hierarchically to provide a more robust way of storing and using properties.
Currently it provides the ability to:
* load properties from a file (and interact with it as you would a normal dictionary)
* interact (add/delete/edit) with properties
* save properties to a file
ONION_PROPS also supports comments, you can specify whether or not to include comments within any interactor method as well as whether or not to include a timestamp.
USAGE:
To import base parser class:
```from onion_props.onion_props import PropParser```
NOTE:
To add properties to the parser object, it is advised that you also import:
```from onion_props.onion_props import Property, Properties```
As they are the custom data storage classes PropParser uses.
It is possible to add properties as standard dictionary key-values, but in order to add comments, you must import the `Property` class.
Changelog (Onion_props)
=======================
0.2.1
------
- Changed name from prop_parser to onion_parser to accommodate for pypi
0.2.2
------
- Removed integrated modules from install_requires to allow proper installation
0.2.3
-----
- Fixed another dumb error so that now installation can actually be achieved
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
onion_props-0.2.4.tar.gz
(16.6 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 onion_props-0.2.4.tar.gz.
File metadata
- Download URL: onion_props-0.2.4.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cf8435ad111f3e676c36e39ff8debc95797011c2bf6a6017778423a1cc25a84
|
|
| MD5 |
03133a7d09fedee5cedde19ee83235a0
|
|
| BLAKE2b-256 |
87627f3b52d0de2cfc1bc73561ce95aede4d7336b4e08ca9b5f5cc1f97726da6
|
File details
Details for the file onion_props-0.2.4-py2.py3-none-any.whl.
File metadata
- Download URL: onion_props-0.2.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dabbb52f85842dbb8300bf45672981ea78409f3691857594a8652a2a71d6f585
|
|
| MD5 |
fba9f7487de2d159eeab2f838cc40d74
|
|
| BLAKE2b-256 |
db666d23b5885e0559c33a3a22875c00a8aa82150b3f6a366535304d2386cc83
|