Skip to main content

PyUCIS provides a Python API for manipulating UCIS coverage data.

Project description

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyucis-0.1.5.21974983570-py2.py3-none-any.whl (299.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyucis-0.1.5.21974983570-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyucis-0.1.5.21974983570-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e09e153a19c1d5473fef8bdb4fe34cb14326646abc3e081007f01537596e1ee9
MD5 60bc958b9cc17aa894ee7e3676b13e60
BLAKE2b-256 dc871020a3a85c5071eb520c3f245df0a8535865ca5f6cd7476c4e77fd0fd67a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page