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 import PropParser```
NOTE:
To add properties to the parser object, it is advised that you also import:
```from 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.1
------
- Removed integrated modules from install_requires to allow proper installation
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 import PropParser```
NOTE:
To add properties to the parser object, it is advised that you also import:
```from 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.1
------
- Removed integrated modules from install_requires to allow proper installation
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.2.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for onion_props-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c1f8da1d4ddd6e7086883a0cf638e11922cb643ea71354aa25f9293be68c01 |
|
MD5 | 1729d4557b4b8aa5258c6055761f6641 |
|
BLAKE2b-256 | 323f6a1fbcc367c312b38c46a73ce0d1dc78e4846116c13ad7dff2d3d2731c4f |