A Python Interface for TChecker
Project description
tcheckerpy
tcheckerpy is a Python interface to the TChecker model checker, allowing you to analyze and compare timed automata models directly from Python.
It provides access to the following TChecker tools:
- tck-compare
- tck-liveness
- tck-reach
- tck-simulate
- tck-syntax
For detailed documentation, refer to the TChecker Wiki.
Installation
You can install tcheckerpy via PyPI:
pip install tcheckerpy
Usage Example
# import required tools
from tcheckerpy.tools import tck_reach, tck_syntax
# read declaration of timed automata network from .txt or .tck file into string
with open(system_declaration_path) as file:
system = file.read()
# raise error if syntax is incorrect
tck_syntax.check(system)
# perform reachability analysis
result, stats, certificate = tck_reach.reach(system, tck_reach.Algorithm.REACH, certificate = tck_reach.Certificate.GRAPH)
print(result)
print(stats)
print(certificate)
Example output (based on ad94.txt):
False
MEMORY_MAX_RSS 41116
REACHABLE false
RUNNING_TIME_SECONDS 6.1474e-05
VISITED_STATES 7
VISITED_TRANSITIONS 8
digraph ad94_fig10 {
0 [initial="true", intval="", labels="", vloc="<l0>", zone="(0<=x && 0<=y)"]
1 [intval="", labels="", vloc="<l1>", zone="(1<x && 0<=y && 1<x-y)"]
2 [intval="", labels="", vloc="<l1>", zone="(0<=x && 0<=y && 0<=x-y)"]
3 [intval="", labels="", vloc="<l2>", zone="(1<x && 1<=y)"]
4 [intval="", labels="", vloc="<l2>", zone="(1<=x && 1<=y)"]
5 [intval="", labels="green", vloc="<l3>", zone="(1<x && 0<y && x-y<1)"]
6 [intval="", labels="green", vloc="<l3>", zone="(0<=x && 0<=y && x-y<1)"]
0 -> 2 [vedge="<P@a>"]
1 -> 3 [vedge="<P@b>"]
2 -> 4 [vedge="<P@b>"]
2 -> 6 [vedge="<P@c>"]
5 -> 1 [vedge="<P@a>"]
5 -> 5 [vedge="<P@d>"]
6 -> 2 [vedge="<P@a>"]
6 -> 5 [vedge="<P@d>"]
}
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tcheckerpy-2026.3.31.14.11.22.tar.gz.
File metadata
- Download URL: tcheckerpy-2026.3.31.14.11.22.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af5a73cd2519566da27bad4df07efa6fe9b04db3e23076efb1f3a2e4677c125f
|
|
| MD5 |
4800340f10ff7b83472e7dc707b3cd2d
|
|
| BLAKE2b-256 |
ff22e43e7399d62da23f25795a6dab828eada7c29ae49aea008beac3efe9f2c3
|
Provenance
The following attestation bundles were made for tcheckerpy-2026.3.31.14.11.22.tar.gz:
Publisher:
publish_to_pypi.yaml on Echtzeitsysteme/tcheckerpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tcheckerpy-2026.3.31.14.11.22.tar.gz -
Subject digest:
af5a73cd2519566da27bad4df07efa6fe9b04db3e23076efb1f3a2e4677c125f - Sigstore transparency entry: 1203484729
- Sigstore integration time:
-
Permalink:
Echtzeitsysteme/tcheckerpy@15214f55062b931a8cc42922811a5a47d6229561 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Echtzeitsysteme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@15214f55062b931a8cc42922811a5a47d6229561 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tcheckerpy-2026.3.31.14.11.22-py3-none-any.whl.
File metadata
- Download URL: tcheckerpy-2026.3.31.14.11.22-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
223bd7d6a8ef7a781caf5db4b44a8a2c3e8b1dc431b988000079253743f4f1a4
|
|
| MD5 |
ea1966c63f472a323d88e197382eb2c5
|
|
| BLAKE2b-256 |
e822fe1f2457e5b2ff72e28740a0b78ec988bb5c781161b19283c051beb46e3f
|
Provenance
The following attestation bundles were made for tcheckerpy-2026.3.31.14.11.22-py3-none-any.whl:
Publisher:
publish_to_pypi.yaml on Echtzeitsysteme/tcheckerpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tcheckerpy-2026.3.31.14.11.22-py3-none-any.whl -
Subject digest:
223bd7d6a8ef7a781caf5db4b44a8a2c3e8b1dc431b988000079253743f4f1a4 - Sigstore transparency entry: 1203484738
- Sigstore integration time:
-
Permalink:
Echtzeitsysteme/tcheckerpy@15214f55062b931a8cc42922811a5a47d6229561 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Echtzeitsysteme
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yaml@15214f55062b931a8cc42922811a5a47d6229561 -
Trigger Event:
push
-
Statement type: