Skip to main content

Preprocessor for json files

Project description

Json Preprocessor's Package Description

Getting Started

The JsonPreprocessor is a Python3 package which allows programmers to handle additional features in JSON files such as

  • add comments
  • import other json files
  • overwrite already existing parameters with new values

These JSON files will be handled by the JsonPreprocessor which returns as result a dictionary object of the deserialized data.

How to install

The JsonPreprocessor can be installed in two different ways.

  1. Installation via PyPi (recommended for users)

    pip install JsonPreprocessor
    

    JsonPreprocessor in PyPi

  2. Installation via GitHub (recommended for developers)

    • Clone the JsonPreprocessor repository to your machine.

      git clone https://github.com/test-fullautomation/python-jsonpreprocessor.git
      

      JsonPreprocessor in GitHub

    • Install dependencies

      JsonPreprocessor requires some additional Python libraries. Before you install the cloned repository sources you have to install the dependencies manually. The names of all related packages you can find in the file requirements.txt in the repository root folder. Use pip to install them:

      pip install -r ./requirements.txt
      

      Additionally install LaTeX (recommended: TeX Live). This is used to render the documentation.

    • Configure dependencies

      The installation of JsonPreprocessor includes to generate the documentation in PDF format. This is done by an application called GenPackageDoc, that is part of the installation dependencies (see requirements.txt).

      GenPackageDoc uses LaTeX to generate the documentation in PDF format. Therefore GenPackageDoc needs to know where to find LaTeX. This is defined in the GenPackageDoc configuration file

      packagedoc\packagedoc_config.json
      

      Before you start the installation you have to introduce the following environment variable, that is used in packagedoc_config.json:

      • GENDOC_LATEXPATH : path to pdflatex executable
    • Use the following command to install JsonPreprocessor:

      setup.py install
      

Package Documentation

A detailed documentation of the Json Preprocessor's package 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

Thomas Pollerspöck

Contributors

Mai Dinh Nam Son

Tran Duy Ngoan

License

Copyright 2020-2023 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

License: Apache v2

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

JsonPreprocessor-0.8.0.tar.gz (340.3 kB view details)

Uploaded Source

Built Distribution

JsonPreprocessor-0.8.0-py3-none-any.whl (337.5 kB view details)

Uploaded Python 3

File details

Details for the file JsonPreprocessor-0.8.0.tar.gz.

File metadata

  • Download URL: JsonPreprocessor-0.8.0.tar.gz
  • Upload date:
  • Size: 340.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for JsonPreprocessor-0.8.0.tar.gz
Algorithm Hash digest
SHA256 28b2a3f5b9ee3ff08f6025788c5b987ac358adcd7ff6603bf68212a502e97a60
MD5 308aca273cd42433454f5de7391bf359
BLAKE2b-256 10a20a190b8863f45c6b826162d0122d1418c9c26574882ddd6849ac9b66c3ca

See more details on using hashes here.

File details

Details for the file JsonPreprocessor-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for JsonPreprocessor-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19d2d82ba51b7067b2793008b77f6175e0e72d02fca1c6699c5a5a4b2e6698ff
MD5 7da09a93d3e53958c6505654934013bc
BLAKE2b-256 95b3751adc1004024d82e257dfd89f2d459b97d58f961d161fcfb735f3d8c0f6

See more details on using hashes here.

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