NoTcl: Replace Tcl scripting with Python
Many tools, especially in VLSI and digital circuit design, expose their functionality through a custom Tcl interpreter. In order to automate those programs, users are expected to write Tcl scripts. With growing complexity, such Tcl scripts become difficult to maintain and often do not integrate seamlessly into larger software systems.
NoTcl allows Tcl-based tools to be automated using Python instead of Tcl. It wraps each tool in a Python interface, turning it into a library that can be imported, tested, and integrated like any other Python package. Python's module system, testing frameworks, and rich ecosystem make it better suited for complex automation than Tcl scripts. NoTcl handles subprocess management and communication via named pipes, exposing a Python API for calling Tcl commands.
Installation
pip3 install notcl
Quick Start
Define a custom tool by subclassing TclTool:
from notcl import TclTool
class Tclsh(TclTool):
def cmdline(self):
return ["tclsh", self.script_name()]
with Tclsh() as t:
result = t.expr(3, "*", 5) # Call Tcl commands as Python methods
print(result) # 15
items = t.lreverse([1, 2, 3]) # Automatic type conversion
To dive in deeper, please have a look at the documentation.
Related Tools
- pydesignflow — A technology- and tool-agnostic micro-framework for constructing FPGA and VLSI design flows in Python. Uses NoTcl to automate Tcl-based EDA tools like Yosys and OpenROAD.
Example Projects
- RISC-V Lab: An FPGA-based RISC-V design platform and flow for teaching SoC development, using PyDesignFlow to manage hardware synthesis, simulation, and software builds..
License
Copyright 2022 - 2026 Tobias Kaiser
SPDX-License-Identifier: Apache-2.0
Metadata
Release files for notcl 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| notcl-0.5.1.tar.gz | 41.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notcl-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.3 kB
Release files / notcl-0.5.1.tar.gz
| Download URL | notcl-0.5.1.tar.gz |
|---|---|
| Size | 41.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eee6ddf4a2f3502a9dab30261167c42b2b4ab266cadf9172b58b99ad1026378d
|
|
BLAKE2b-256 checksum How to use checksums |
f78d14631462434f38f04313e89a1d5ab072099be2cfa454f8f0c7293df73959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / notcl-0.5.1-py3-none-any.whl
| Download URL | notcl-0.5.1-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0df92aa901ac95f31e1ee562c86d9a9edf76e7a23230c0dce93a08a0dfc30df4
|
|
BLAKE2b-256 checksum How to use checksums |
f20eca065b23506ea62a0a6d741f28fb32e6363b0b2ed61fe4b7ebe362004ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|