Skip to main content

An elegant hierarchical (or "onioned") properties parser

Project description


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.


To import base parser class:
```from onion_props.onion_props import PropParser```

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)
- Changed name from prop_parser to onion_parser to accommodate for pypi

- Removed integrated modules from install_requires to allow proper installation

- Fixed another dumb error so that now installation can actually be achieved

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
onion_props-0.2.4-py2.py3-none-any.whl (6.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3
onion_props-0.2.4.tar.gz (16.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page