Preprocessor for JSON files with extended syntax
Project description
Getting Started
The JsonPreprocessor is a Python 3 package that enables programmers to extend the functionality of JSON files with features such as:
Adding comments
Importing other JSON files
Overwriting existing parameters with new values
The JsonPreprocessor processes these enhanced JSON files and returns a dictionary object containing the deserialized data.
How to install
The JsonPreprocessor can be installed in two different ways.
Installation via PyPi (recommended for users)
pip install JsonPreprocessorInstallation via GitHub (recommended for developers)
Clone the JsonPreprocessor repository to your machine.
git clone https://github.com/test-fullautomation/python-jsonpreprocessor.gitUse the following command to install JsonPreprocessor (executed in repository main folder):
python -m pip install .Or:
python -m pip install --proxy <proxy> .This command will also download and install all dependencies that are required to work with the source files in the current repository. After the initial installation of JsonPreprocessor is done, you have the following two possibilities:
Clean the previous installation:
python "./cleanup_installation.py"cleanup_installation.py explicitly deletes all files and folders within the component installation folder under site-packages and also deletes local build artefacts.
Render the component documentation:
python "./genpackagedoc.py"This would e.g. be required in case of changes in the interface of JsonPreprocessor.
The documentation is rendered by a separate application called GenPackageDoc, that is part of the build dependencies and runtime dependencies of JsonPreprocessor.
GenPackageDoc needs to be configured. Details about how to do this, can be found in the README.rst (sections Install dependencies and Configure dependencies).
Use the following command to build JsonPreprocessor (executed in repository main folder):
python -m build .Or:
python -m pip config set global.proxy <proxy> python -m build .
Package Documentation
A detailed documentation of the JsonPreprocessor can be found here: JsonPreprocessor.pdf
Feedback
To give us a feedback, you can send an email to Thomas Pollerspöck
In case you want to report a bug or request any interesting feature, please don’t hesitate to raise a ticket.
Maintainers
Contributors
License
Copyright 2020-2026 Robert Bosch GmbH
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonpreprocessor-0.12.0.tar.gz.
File metadata
- Download URL: jsonpreprocessor-0.12.0.tar.gz
- Upload date:
- Size: 355.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5fce45b750b19de904b4e6063f140e5c6da84e39ad7bccb823da3e6e12641ea
|
|
| MD5 |
01bce7c05c5449cf8c96caa98f09947e
|
|
| BLAKE2b-256 |
53cd3b991b5762fc957bd35f217283417a068ed561da4c21ef606071f18bcb6a
|
File details
Details for the file jsonpreprocessor-0.12.0-py3-none-any.whl.
File metadata
- Download URL: jsonpreprocessor-0.12.0-py3-none-any.whl
- Upload date:
- Size: 353.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
746377ffb95eb036847c5fbd8743db7173ece07b10d4f24c2b8ca42417a5ba7e
|
|
| MD5 |
aa97907b91f87bc2e666b1a062831944
|
|
| BLAKE2b-256 |
af68cc5b77179a04f78a6885ece35ee8827accb2156cb5f6074f8d1496eed274
|