Metadata-Version: 2.0
Name: aratrum
Version: 0.3.0
Summary: A simple json configuration handler.
Home-page: https://github.com/Vesuvium/aratrum
Author: Jacopo Cascioli
Author-email: jacopocascioli@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: ujson (>=1.35)

Aratrum
#######
|Pypi| |Build Status| |Code Climate|

A simple configuration handler that reads a JSON config file and provides
methods to interact with it.

Was it really necessary to make a package for such a simple thing?
Maybe not, but I like the DRYness of it, since almost every app will
need a configuration reader.

Installation
############
::

    pip install aratrum

Usage
#####

Load a configuration file::

    >>> from Aratrum import Aratrum
    >>> config = Aratrum('config.json')
    >>> options = config.get()
    >>> print(type(options))
    dict


Set a value in the config and save it::

    >>> config = Aratrum('config.json')
    >>> config.get()
    >>> config.set('server', 'somewhere')
    >>> config.save()


.. |Build Status| image:: https://img.shields.io/travis/Vesuvium/aratrum.svg?maxAge=3600&style=flat-square
   :target: https://travis-ci.org/Vesuvium/aratrum
.. |Pypi| image:: https://img.shields.io/pypi/v/aratrum.svg?maxAge=3600&style=flat-square
   :target: https://pypi.python.org/pypi/efesto
.. |Code Climate| image:: https://img.shields.io/codeclimate/github/Vesuvium/aratrum.svg?maxAge=3600&style=flat-square
   :target: https://codeclimate.com/github/Vesuvium/aratrum


