BSD Ports

devel/py-crosshair-tool 0.0.110 DragonFly

Analyze Python code for correctness using symbolic execution

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
1216.1 KiB, 8247.7 KiB installed

Description

CrossHair is an analysis tool for Python that blurs the line between testing and type systems.

If you have a function with type annotations and add a contract in a supported syntax, CrossHair will attempt to find counterexamples for you.

CrossHair works by repeatedly calling your functions with symbolic inputs. It uses an SMT solver (a kind of theorem prover) to explore viable execution paths and find counterexamples for you. This is not a new idea; a Python approach was first described in this paper. However, to my knowledge, CrossHair is the most complete implementation: it can use symbolic reasoning for the built-in types, user-defined classes, and much of the standard library.

In the other systems

The newest version among them is 0.0.113, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-crosshair-tool0.0.110 behind since 2026-11-01none known-[email protected]-
FreeBSDdevel/py-crosshair-tool0.0.113 newestnone known-[email protected]2026-11-12
HardenedBSDdevel/py-crosshair-tool0.0.111 behind since 2026-11-09no data-[email protected]-
GhostBSDdevel/py-crosshair-tool0.0.110 behind since 2026-11-01no data-[email protected]-

Version history 1

  1. 0.0.110

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-crosshair-tool

From DPorts:

cd /usr/dports/devel/py-crosshair-tool && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 8