Metadata-Version: 2.4
Name: tlaup
Version: 0.9.0
Summary: Install and pin TLA+ tools, compile Java overrides, and run TLC with readable output
Author-email: Denis Nikolskiy <nikolskiy@users.noreply.github.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/nikolskiy/tlaup
Project-URL: Repository, https://github.com/nikolskiy/tlaup
Project-URL: Issues, https://github.com/nikolskiy/tlaup/issues
Project-URL: Changelog, https://github.com/nikolskiy/tlaup/releases
Keywords: tla+,tlaplus,tlc,model-checking,formal-methods,sany,pluscal
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer<1.0.0,>=0.29.2
Requires-Dist: requests<3.0.0,>=2.31.0
Requires-Dist: pyyaml<7.0,>=6.0.4
Requires-Dist: platformdirs<5.0,>=4.14.8
Requires-Dist: pydantic>=2.14.4
Requires-Dist: truststore<1.0.0,>=0.9.0
Requires-Dist: rich>=15.0.0
Requires-Dist: filelock>=4.3.1
Dynamic: license-file

# tlaup

Command-line tool for working with TLA+ specifications and the TLC model checker.

> **Formerly `tlaplus-cli`.** The project, the PyPI package and the command were renamed to `tlaup` in 0.8.2.
> The old `tla` command is gone; use `tlaup` instead. From the next release `tlaup` keeps its toolsets, modules and config in its own `tlaup` folders,
> so install toolsets and add modules again. Nothing is moved over; the old `tla` folders (on Linux `~/.config/tla` and `~/.cache/tla`) can be deleted.

## Project Goals

1. Simplify managing TLA+ tools such as TLC, community modules, custom modules, etc.
2. Run TLA tools in a single CLI interface.
3. Manage and display the tool outputs.

## Quick Start & Usage

### 1. Toolset Management (`tlaup tool`)
* `tlaup doctor`: Check Java, `javac`, the pinned build, the config file and the folders.
* `tlaup tool list`: List available and installed toolset versions (`tla2tools.jar`).
* `tlaup tool install [vX.Y.Z]`: Download and install a toolset version.
* `tlaup tool pin <version>`: Set default toolset version for TLC runs.

### 2. Model Checking (`tlaup tlc`)
* `tlaup tlc <spec>`: Execute TLC model checker on a specification.
* `tlaup tlc <spec> --show-command`: Inspect exact JVM command before execution.

### 3. Custom Java Modules (`tlaup module`)
* `tlaup module add <path>`: Compile Java operator overrides and register the module under the folder's name.
* `tlaup module list`: Display the registered modules and when each was built (UTC).
* `tlaup module remove <name>`: Remove a registered module.
* `tlaup module dir`: Print the folder that holds the registered modules.

For complete, runnable specifications and Java module examples, see [docs/examples](https://github.com/nikolskiy/tlaup/tree/main/docs/examples).

## Quick Installation

### Via `uv tool`
```bash
uv tool install tlaup
```

### Via `pipx` or `uvx`
```bash
pipx install tlaup
uvx tlaup --help
```

If you installed the old package, remove it first:
```bash
uv tool uninstall tlaplus-cli
```
