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
- Optionally pass a copy of the arguments dictionary to the extra validations function, to allow or not changing the parameters
- Ignore or fail with extra arguments in the JSON
- Add test to build docs
- Implement 3.7 version
- Implement compatibility with 3.7 dataclasses
- Improve tests
- Improve function names
- Improve the creation of Bounds
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf26140acf4302b6aa9fb74a894a70f7545431c430e89ec4cc5faf6139aace01 |
|
MD5 | a2db859eaf5ef6b18d3e0d07f76b2fc6 |
|
BLAKE2b-256 | 72a7ff28a49e87a73b278f8c9325f6966ac6f62903bb4b5749f494b2dab6390e |