Skip to main content

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.

Source Distribution

aratrum-0.3.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

aratrum-0.3.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file aratrum-0.3.2.tar.gz.

File metadata

  • Download URL: aratrum-0.3.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aratrum-0.3.2.tar.gz
Algorithm Hash digest
SHA256 3ccee5e0ffa85d494744a4832fd3bd89d7ddfb75f89c70ee3ee4cb3b08fd1f01
MD5 aca83fadd194b6e492a59d31777e5ebd
BLAKE2b-256 8a0918e8ec7ab6c19687a2e7d4fff5843d511604153b527ff8a9283f9f0021e1

See more details on using hashes here.

File details

Details for the file aratrum-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aratrum-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1da2d299fffc3c87f6a685aa0e8dd0b428805b04277aad9c81622c5002aeb0
MD5 01872572f8fdba1be45b7346373e1e11
BLAKE2b-256 1735510145193a50a509f177df1cfb6033f7896cd440dc95e2bfbd99dcfd6394

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page