Skip to main content

pyucis

Python API to Unified Coverage Interoperability Standard (UCIS) Data Model

Build Status PyPI version PyPI

Features

  • Python API for manipulating UCIS coverage databases
  • CLI Tools for database conversion, merging, and reporting
  • MCP Server for AI agent integration (see MCP_SERVER.md)
  • AgentSkills Support for enhanced AI agent understanding (see https://agentskills.io)
  • Support for XML, YAML, and UCIS binary formats
  • Multiple export formats: LCOV, Cobertura, JaCoCo, Clover

Installation

# Standard installation
pip install pyucis

# With MCP server support
pip install pyucis[dev]

Usage

Command Line Interface

# Convert coverage database
pyucis convert --input-format xml --output-format yaml input.xml -o output.yaml

# Merge multiple databases
pyucis merge db1.xml db2.xml db3.xml -o merged.xml

# Generate reports
pyucis report coverage.xml -o report.txt

# Query coverage information
pyucis show summary coverage.xml
pyucis show gaps coverage.xml --threshold 80
pyucis show covergroups coverage.xml

MCP Server for AI Agents

PyUCIS now includes a Model Context Protocol (MCP) server that enables AI agents to interact with coverage databases:

# Start the MCP server
pyucis-mcp-server

See MCP_SERVER.md for detailed documentation on:

  • Available MCP tools (17+ coverage analysis tools)
  • Integration with Claude Desktop and other AI platforms
  • API usage examples

AgentSkills Support

PyUCIS includes an AgentSkills skill definition that provides LLM agents with comprehensive information about PyUCIS capabilities. When you run any PyUCIS command, the absolute path to the skill file is displayed, allowing agents to reference it for better understanding of UCIS coverage data manipulation.

# Running any pyucis command displays the skill file location
pyucis --help
# Output includes: Skill Definition: /path/to/ucis/share/SKILL.md

Python API

from ucis import UCIS

# Open a database
db = UCIS("coverage.xml")

# Access coverage data
for scope in db.scopes():
    print(f"Scope: {scope.name}")
    for coveritem in scope.coveritems():
        print(f"  {coveritem.name}: {coveritem.count} hits")

Documentation

License

Apache 2.0

Links

Metadata

Release files for pyucis 0.1.5.21964264311

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

Built distribution (wheel)

Table of built distributions (wheels) for pyucis 0.1.5.21964264311
File Interpreter ABI Platform
pyucis-0.1.5.21964264311-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / pyucis-0.1.5.21964264311-py2.py3-none-any.whl

Download URL pyucis-0.1.5.21964264311-py2.py3-none-any.whl
Size 290.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
06b60f59845e0036caeaa7c38e1322eb70b46d519a12631806c854e74b163f38
BLAKE2b-256 checksum
How to use checksums
493a761e794323b91970d56145fccf63f3aa6acced42d4763601eab8eaba81e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.5.21964264311 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.0.0

1 release file

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