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.

Source Distribution

json_configparser-0.4.2.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

json_configparser-0.4.2-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

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