Koza - Knowledge Graph Transformation and Operations Toolkit
Overview
Koza is a Python library and CLI tool for transforming biomedical data and performing graph operations on Knowledge Graph Exchange (KGX) files. It provides two main capabilities:
📊 Graph Operations (New!)
Powerful DuckDB-based operations for KGX knowledge graphs:
- Join multiple KGX files with schema harmonization
- Split files by field values with format conversion
- Prune dangling edges and handle singleton nodes
- Append new data to existing databases with schema evolution
- Multi-format support for TSV, JSONL, and Parquet files
🔄 Data Transformation (Core)
Transform biomedical data sources into KGX format:
- Transform csv, json, yaml, jsonl, and xml to target formats
- Output in KGX format
- Write data transforms in semi-declarative Python
- Configure source files, columns/properties, and metadata in YAML
- Create mapping files and translation tables between vocabularies
Installation
Koza is available on PyPi and can be installed via pip/pipx:
[pip|pipx] install koza
Usage
See the Koza documentation for complete usage information.
Key Features
🔧 Multi-Format Support
- Native support for TSV, JSONL, and Parquet KGX files
- Automatic format detection and conversion
- Mixed-format operations in single commands
🛡️ Schema Flexibility
- Automatic schema harmonization across heterogeneous files
- Schema evolution with backward compatibility
- Comprehensive schema reporting and validation
⚡ High Performance
- DuckDB-powered operations for fast bulk processing
- Memory-efficient handling of large knowledge graphs
- Parallel processing and streaming where possible
🔍 Rich CLI Experience
- Progress indicators for long-running operations
- Detailed statistics and operation summaries
- Dry-run modes for safe operation preview
🧹 Data Integrity
- Dangling edge detection and preservation
- Duplicate detection and removal strategies
- Non-destructive operations with data archiving
Metadata
Release files for koza 2.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| koza-2.7.0.tar.gz | 483.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| koza-2.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 680.3 kB
Release files / koza-2.7.0.tar.gz
| Download URL | koza-2.7.0.tar.gz |
|---|---|
| Size | 483.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31a92591107f7411b53b0da3ecd17a0951fe74d7ff9a475e3b0bce82e93cc3df
|
|
BLAKE2b-256 checksum How to use checksums |
01497b59dd66b7a9988edda665982fdfeb991bdf139483971a9983314bc406ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.22
|
Release files / koza-2.7.0-py3-none-any.whl
| Download URL | koza-2.7.0-py3-none-any.whl |
|---|---|
| Size | 196.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8034ed218d05374bfc2a9f0029ca805fc998f23e23357a8362a602dac50e01a1
|
|
BLAKE2b-256 checksum How to use checksums |
74db25f712f79a1c7bcbfe9a4290b915186dc88464c5f13c6d10cfc5e6710941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.22
|
Security for koza 2.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.