DCC-Json Toolkit¶
The DccJsonToolkit is a Python tool that allows easy handling to DCC files.
It provides a set of tools for:
- Bidirectional file conversion XML—JSON. (All DCC files are *.xml format)
- Local cache for schema XSD files (to work offline if required).
- DCC schema validation based on the XSD release.
Setup¶
Standalone program¶
For an executable version, access the latest published release at the 'GitLab Releases page'. There, select the desired ZIP file under the section Packages. Each item provided here is a link to the PTBBox containing the executable and a 'Readme.txt' file.
Once the ZIP is extracted, run through the terminal (shell, powershell, etc.) the executable named DccJsonToolkit.
The program will run and offer access to all the tools without the need of any additional installation.
Note
This version was prepared only for Windows systems.
Python installation¶
The program is installable via pip:
pip install dcc-json-toolkit
Once installed, all functionalities are part of DccSchema, a class directly importable from the top level package:
from dcc_json_toolkit import DccSchema
schema = DccSchema("3.4.0-rc.2")
Installing the package via pip also enables its use via the terminal with the CLI scripts.