Metadata-Version: 2.5
Name: clicknick
Version: 0.24.0
Summary: Tag-Based Programming for Automation Direct CLICK PLCs.
Project-URL: Repository, https://github.com/ssweber/clicknick
Project-URL: Homepage, https://pyrung.com/clicknick/
Project-URL: Documentation, https://pyrung.com/clicknick/
Author-email: ssweber <57631333+ssweber@users.noreply.github.com>
License-Expression: AGPL-3.0
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: <4.0,>=3.11
Requires-Dist: executing==2.2.1
Requires-Dist: laddercodec==0.4.0
Requires-Dist: pyclickplc==0.5.2
Requires-Dist: pymodbus==3.12.1
Requires-Dist: pyodbc==5.3.0
Requires-Dist: pyrsistent==0.20.0
Requires-Dist: pyrung==0.16.0
Requires-Dist: pywin32==311
Requires-Dist: tksheet==7.6.0
Requires-Dist: tomlkit==0.15.1
Description-Content-Type: text/markdown

# ClickNick

![ClickNick logo](https://github.com/user-attachments/assets/2cb7f411-3174-478c-a6c9-409aaa788376)

## Better tools for AutomationDirect CLICK PLCs

CLICK Programming Software has no simulator. ClickNick adds one: run your saved program on your laptop, work the switches, and ask why an output did or didn't come on.

![ClickNick Simulator: pressing Start does nothing, the Console's why and how queries explain it, the panel's switches start the motor, right-clicking the output shows its simplified logic, and a force stops it](https://github.com/user-attachments/assets/a1982f37-38f6-4103-a3c9-32469f0761c8)

pyrung, the engine underneath, is checked against a real CLICK, case by case: [conformance results](https://pyrung.com/pyrung/guides/conformance/) · [how it was built](https://pyrung.com/blog/click-plc-simulator/).

Also: nickname autocomplete, the Address Editor, Check Program, Review Changes, and your ladder as Python after every save.

CLICK stays CLICK. ClickNick gives you better tools around it.

Documentation and tour: https://pyrung.com/clicknick/

> [!IMPORTANT]
> ClickNick never edits your `.ckp` project file directly. You review proposed changes, and nothing becomes part of the project until you save it in CLICK Programming Software. Close CLICK without saving to discard changes made through ClickNick.

ClickNick is a free, open-source Windows application. It runs locally, with no telemetry or required cloud service. ClickNick is an independent project: not official, and not affiliated with or endorsed by AutomationDirect. The simulator and checks don't replace testing. Test on the real machine, with proper safeguards, before anything interacts with people.

## Install

ClickNick supports Windows 10 and 11 and CLICK Programming Software v2.60-v4.00.

### 1. Install uv

Open PowerShell and run:

```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

Already have uv? Update it with `uv self update` (or `winget upgrade astral-sh.uv`) and skip the install. Other installation methods are available in the [uv documentation](https://docs.astral.sh/uv/getting-started/installation/).

### 2. Install and run ClickNick

```powershell
uv tool install clicknick
clicknick
```

To upgrade later, run `uv tool upgrade clicknick`. To try the latest release without installing it, run `uvx clicknick@latest`.

Then open your CLICK project as usual. ClickNick detects the open project and connects to it.

On Windows x64, a separate database driver normally isn't needed. If connecting fails, see [connection help](https://pyrung.com/clicknick/help/#database-connection).

<details>
<summary>Install with pip instead</summary>

Python 3.11 or newer is required.

```powershell
pip install clicknick
python -m clicknick
```

</details>

![ClickNick main window connected to a CLICK project, with Check Program, Simulate and Review Changes](https://pyrung.com/clicknick/assets/main-window.png)

## Make everyday CLICK programming easier

- **Nickname autocomplete** appears directly in CLICK instruction dialogs, so you can find `Valve5` instead of remembering `C123`.
- **Address Editor** supports bulk nickname, comment, block, and annotation work with validation, search/replace, undo/redo, fill down, and structure cloning.
- **Tag Browser** organizes nicknames into a navigable hierarchy and recognizes related arrays.
- **Data View tools** add nickname lookup, grouped insertion, and drag-and-drop reordering.
- **Project navigation filters** show tag relationships such as inputs, outputs, upstream, downstream, and isolated tags.

ClickNick started by fixing a few editor annoyances - especially the need to remember addresses. You do not need Git, Python experience, an LLM, or a new programming environment to benefit from it. Start with autocomplete, open the Address Editor when it helps, and run Check Program when you want another set of eyes.

![ClickNick autocomplete demo](https://github.com/user-attachments/assets/3a1cdff9-c425-46b7-8b90-4a357d43b6d3)

## Simulate the program without the PLC

**Simulate** is an offline CLICK test bench: your hardware drawn from System Configuration, with LEDs and switches,
and the **Console** in a pane at the bottom (pop it out into its own window if you like). It lets you:

- Run the saved program and work the panel like the machine, in real time or scan by scan.
- Force points and set up machine conditions without changing the live PLC.
- Work from saved PLC and tag data while troubleshooting.
- Right-click a point or use the Console to ask why something happened - or why it did not.
- Ask how to reach a state, including routes that must pass through or avoid particular conditions.
- Connect the Data View or an HMI over Modbus at `127.0.0.1:502`, like the real PLC.

Interrupts, PID, and high-speed instructions are not yet supported.

Save the project in CLICK before opening Simulate so ClickNick can read the latest ladder files.

## Check the program before running the machine

ClickNick automatically generates a readable, executable [pyrung](https://pyrung.com/) version of the saved ladder in the open CLICK project. Simulate runs it, and **Check Program** reads it, catching common ladder mistakes and questionable patterns without running the machine. Findings include the relevant ladder source, severity, and a suggested fix.

![ClickNick Check Program report](https://github.com/user-attachments/assets/38cb2f44-482a-4e60-9f56-4da95074a971)

Save the project in CLICK before opening Check Program, too.

## Keep engineering work with the machine

The generated pyrung project begins as a temporary workspace. That is convenient for quick checks and experiments. When you want tests, notes, and other engineering work to accumulate with the machine, create or select a persistent workspace folder from ClickNick.

In a workspace, you can:

- Read the ladder as ordinary, structured Python source with PLC scan semantics.
- Add automated tests alongside the ladder program.
- Keep notes, test fixtures, source history, and other project-specific files.
- Use normal software tools such as diffs, Git, editors, and coding agents.
- Edit generated ladder source and use **Review Changes** to review the proposed CLICK rungs, take or skip each difference, and paste the ones you take into CLICK step by step.
- Use **Reload from CLICK** to discard workspace changes and return to the saved CLICK program.

![Review Changes showing a timer preset changed from 2 to 2.5 seconds in the workspace, compared with CLICK's last save](https://pyrung.com/clicknick/assets/review-changes.png)

ClickNick preserves a recovery snapshot before regeneration replaces generated source. Files outside ClickNick's generated areas - such as your tests, notes, and editor configuration - remain yours.

## How pyrung fits in

ClickNick is built on [pyrung](https://pyrung.com/pyrung/), the engine that runs your ladder as Python. That's what makes Check Program, the Console, and `why` / `how` possible, and it's what lets you run pytest, a diff, or a coding agent against the workspace. Edits go back the other way: Review Changes shows the rung diff and puts the rungs you take on the clipboard, you paste and save in CLICK. [How it fits.](https://pyrung.com/overview/)

## Feature details

- [Nickname autocomplete](https://pyrung.com/clicknick/tour/autocomplete/): matching, filters and what the list offers.
- [Address Editor, Tag Browser and Data Views](https://pyrung.com/clicknick/editing/): bulk edits, search and replace, blocks, the nickname outline, and Data Views built by name.
- [Simulator](https://pyrung.com/clicknick/help/#simulator), [Review Changes](https://pyrung.com/clicknick/help/#review-changes) and [connection help](https://pyrung.com/clicknick/help/): how each works, step by step.

![Address Editor demo](https://github.com/user-attachments/assets/ee7b1914-2f18-483a-ace1-84c2aa8eea98)

![Tag Browser screenshot](https://github.com/user-attachments/assets/07928355-180e-4b00-b0bb-07ad2bdbe831)

## Project links

- [Report a bug or request a feature](https://github.com/ssweber/clicknick/issues)
- [Ask a question or share an idea](https://github.com/ssweber/clicknick/discussions)
- [View the source](https://github.com/ssweber/clicknick)
- [Read the changelog](CHANGELOG.md)
- [Read the license](LICENSE)

ClickNick is beta software. Review Address Editor, Data View, and ladder changes before saving them in CLICK.
