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]

[!Note] This method is recommended for any Linux system or to integrate the tool at any development.

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.

[!Warning] The executable works only on Windows OS.

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.

Download files

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

Source Distribution

dcc_json_toolkit-1.2.1.post1.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcc_json_toolkit-1.2.1.post1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file dcc_json_toolkit-1.2.1.post1.tar.gz.

File metadata

  • Download URL: dcc_json_toolkit-1.2.1.post1.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dcc_json_toolkit-1.2.1.post1.tar.gz
Algorithm Hash digest
SHA256 5ea0f1fabd3819d5efbf02d97a942b60574fc4e77da36e5b91ff9282d68a75f4
MD5 9ba8d1cc6e8f3ad7d2170e8591b4be97
BLAKE2b-256 a98f4fa30bdc58bbfdeb1d5d2594901f8341bb5fbebe3ce5041f002bc72980a7

See more details on using hashes here.

File details

Details for the file dcc_json_toolkit-1.2.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for dcc_json_toolkit-1.2.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8589040b4afb05dbffae7597d36103ef9b76f6249ee74aff02a943618e3c6a
MD5 638e4398359f1f3b8924a4e0d0274af6
BLAKE2b-256 c440e2342ad6d89e07462801104a5fc4ca2c0df0dd0ec516a5a5c95efb056b0e

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.3

2 files

1.2.2

2 files

This release

1.2.1.post1 This release

2 files

1.2.1

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

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