Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A simple json configuration handler.

Project description

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()

Project details


Download files

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

Files for aratrum, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size aratrum-0.3.2-py3-none-any.whl (4.3 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size aratrum-0.3.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page