Skip to main content

Dcc-Json Toolkit

pipeline status coverage Docs PyPI Version

The tool offers a set of tools for both users and developers for the Digital Calibration Certificate (DCC) files. The functionality of the tool allows:

  • Caching locally any released dcc.xsd file, together with all its required imports.
  • Validation of any DCC file, printing all the possible issues it has.
  • Bidirectional conversion XML-JSON for DCC files.

Setup

Python Environment

The package is installable via pip:

pip install dcc-json-toolkit

The basic installation allows working directly with any DCC Schema. There are also some additional requirements for those interested:

  • pip install dcc-json-toolkit[content] to allow validating the contents.

Alternatively, all additional requirements can be installed with the following command:

pip install dcc-json-toolkit[full]

Windows executable

The executable file provides access to all the commandline tools without the need of extra installation. This option is recommended for those users that do not require Python.

To obtain the executable, access the GitLab Project Releases page, then download the file under the Packages section for the desired release.

==================================================
                DccJsonToolkit
==================================================

Write the name of the tool you want to use (followed by its arguments):
   1. dcc-validate : Validate existing DCC files.
   2. dcc-cache : Manage the local cache.
   3. dcc2json : Exports a DCC (.xml) file into a JSON file.
   4. json2dcc : Creates a DCC file from JSON data.

If you don't know what the tool does, write '-h' after its name. For example, 'dcc-validate -h'. Then press ENTER.

Usage

Commandline Tools

  • DCC-JSON file conversion: Use either dcc2json or json2dcc.
  • DCC file validation: Use dcc-validate to display all errors of a DCC file or to compare it with a different XSD version. The comparison is quite helpful to control the upgrade of any DCC to the next released XSD version.
  • Cache Manager: Use dcc-cache to control cached versions and see the absolute path for every cache.

Read more about the CLI tools.

Developer Tools

If you plan to integrate some of the functionality onto your own code, all functionalities can be recreated with the use of DccSchema.

from dcc_json_toolkit import DccSchema

schema = DccSchema("3.3.0")
dcc_as_dict = schema.to_dict("./path/to/dcc.xml")

Read the complete official documentation.

Metadata

Release files for dcc-json-toolkit 1.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcc-json-toolkit 1.2.5
File Size Uploaded
dcc_json_toolkit-1.2.5.tar.gz 32.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dcc-json-toolkit 1.2.5
File Interpreter ABI Platform
dcc_json_toolkit-1.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 63.8 kB

Release files / dcc_json_toolkit-1.2.5.tar.gz

Download URL dcc_json_toolkit-1.2.5.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fe2d5f21c0aa8eec5f25e8ef0a2e2f370dd9510b2fb9003a879b6ad79607bd17
BLAKE2b-256 checksum
How to use checksums
d628a3049eb53a1002a0a9767ce91c96dc2efd01ffa7cbd9a070339d37e01ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / dcc_json_toolkit-1.2.5-py3-none-any.whl

Download URL dcc_json_toolkit-1.2.5-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb76f064003595aa3790326bd68e1788ff93301756c00710cc6c358117439af2
BLAKE2b-256 checksum
How to use checksums
ff32d3f201c82820da5c4661b222c07d48d09483f7238a327b18db632cea8845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page