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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file json_configparser-0.4.2.tar.gz.

File metadata

  • Download URL: json_configparser-0.4.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for json_configparser-0.4.2.tar.gz
Algorithm Hash digest
SHA256 0cf905c5b531813d066871a4e1d54a4221b7b9d62779a6bc1ed0fc4388ff2003
MD5 f37413b62e05db453b9ee8aba02eff46
BLAKE2b-256 e705356f3be2930dc14923a413540d0400b374c44c7c7c2cfd2f050fe5b6d479

See more details on using hashes here.

File details

Details for the file json_configparser-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: json_configparser-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for json_configparser-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51bcdd5bf384fd6d26f934890dc8c6b76092c7ddf256835a8517038c9fd2586a
MD5 62ca71a93389f2dc02b4c98b1521e0a6
BLAKE2b-256 7294fa37ec017548ac9c81f3d8ed87b5bb6b56b3b57a26d147b27f299a7804bb

See more details on using hashes here.

Supported by

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