Skip to main content

A module that parses and validates JSON configuration files.

Project description

JSON-Configparser

Build status PyPI version fury.io MIT license PyPI pyversions Documentation Status

This python package enables the usage of JSON files as configuration files that can be properly validated.

The examples folder contains examples of using this package.

Main Features

  • Parse several different datatypes from a JSON configuration file:
    • ints
    • floats
    • strings
    • booleans
    • lists
    • dictionaries
    • lists/dictionaries of all other types
  • Define options, including their types, bounds, extra validations, and defaults
  • Parse a configuration file, returning an object with attributes or a dictionary
  • All types, bounds, and defaults are validated by the package

List of TODOs

  • Implement compatibility with 3.7 dataclasses
  • Improve tests
  • Improve function names
  • Improve the creation of Bounds
  • Allow command line interaction, e.g., when running a script pass the path to the json and new values for some arguments

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 json-configparser, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size json_configparser-0.4.2-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size json_configparser-0.4.2.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View hashes

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page