A module that parses and validates JSON configuration files.
Project description
JSON-Configparser
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
Built Distribution
Close
Hashes for json_configparser-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a1b8cc99dc7275c18ed78c4333480f697853e4ae33d2b2c73d047033049066 |
|
MD5 | 43fcc2b99678ef0016d1b049b6c88cf6 |
|
BLAKE2b-256 | 65e013cd37880ce21223f268ee342820ac91f4ba26aa84b55c1bd89d1b53c651 |