RepositoryPythonUSUnited States
pschanely

pschanely/CrossHair

An analysis tool for Python that blurs the line between testing and type systems.

1.4kstars
109forks
59issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: dynamic-analysis

#1 Repository of the week

1
TINIX TRENDING·Topic: z3

#1 Repository of the week

1
TINIX TRENDING·Topic: contracts

#1 Repository of the week

CrossHair

Join the chat on Discord Check status Downloads

An analysis tool for Python that blurs the line between testing and type systems.

THE LATEST NEWS: Python's most popular property-based testing tool, Hypothesis, now supports running CrossHair as an optional backend!

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

Animated GIF demonstrating the verification of a python function

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.

Try CrossHair right now, in your browser, at crosshair-web.org!

CrossHair has IDE integrations for VS Code, PyCharm, and more.

Finally, CrossHair can do more than check contracts. It can also generate unit tests and find behavioral differences between functions.

Want to help? Sign up for email or RSS updates. Star ⭐️ the repository. There are other ways to help too.

Documentation

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
MobSF/Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.

22.4k
Dec 2, 2026
RepositoryPython
OWASP/mastg

The OWASP Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes technical processes for verifying the OWASP Mobile Security Weakness Enumeration (MASWE) weaknesses, which are in alignment with the OWASP MASVS.

13.4k
Nov 30, 2026
RepositoryPython
HypothesisWorks/hypothesis

The property-based testing library for Python

9.3k
Nov 30, 2026
RepositoryPython
trailofbits/manticore

Symbolic execution tool

3.9k
Jun 24, 2026
RepositoryPython
lambdasec/frame

The sound, open SAST for modern apps: code, dependencies, secrets, infrastructure and AI, in one tool

134
Nov 27, 2026
RepositoryPython
donnemartin/system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

379.9k
Sep 15, 2026