Documentation Index
Fetch the complete documentation index at: https://mintlify.com/open-contracting/cardinal-rs/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Install theocdscardinal Python package from PyPI:
Package Information
- Package name:
ocdscardinal - Latest version: 0.0.8
- License: MIT
- Homepage: https://github.com/open-contracting/cardinal-rs
Basic Usage
Import thecoverage function from the package:
What’s Available
Currently, the Python library exposes the following functionality:coverage(): Count the number of times each field is non-empty in a line-delimited JSON file
coverage() function, see the coverage page.
Performance
The Python bindings provide access to Cardinal’s Rust-based implementation, offering high performance for processing large OCDS datasets. The library uses parallel processing internally to efficiently analyze JSON data.Development
The Python package is built using Maturin, which compiles the Rust source code into a Python extension module. The package is compatible with:- Python 3.10+
- CPython implementation
- Linux, macOS, and Windows
