Replace Tcl scripting with Python
Project description
Many tools, especially in VLSI / 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 the context, in which the tools are used.
With the NoTcl library, Tcl-based tools can be automated using Python. This makes it possible to use Tcl-based tools without Tcl-based scripting.
You can install NoTcl using pip: pip3 install notcl
Minimal example:
from notcl import TclTool
class Tclsh(TclTool):
def cmdline(self):
return ["tclsh", self.script_name()]
with Tclsh() as t:
v = t("expr 3 * 5")
print(v)
Full documentation is found at https://notcl.readthedocs.io or in the docs/ folder.
License
Copyright 2022 - 2024 Tobias Kaiser
SPDX-License-Identifier: Apache-2.0
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 notcl-0.3.6.tar.gz.
File metadata
- Download URL: notcl-0.3.6.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c70ea41b9bcc4d52695a575129a8453084d6e4957aff1e7447937b6ceea800e
|
|
| MD5 |
3f7e719dbe106ccf9f96c55c9bd3d9af
|
|
| BLAKE2b-256 |
b3cbbc62dbfd3b0a37038328524d707e7abf206650b1f86846987acc02f3301f
|
File details
Details for the file notcl-0.3.6-py3-none-any.whl.
File metadata
- Download URL: notcl-0.3.6-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be0a1a64188d40d37f9af7716a27f7b5acbe991d0c0631f4db28c1fa207fefcc
|
|
| MD5 |
54079533646e08c4f316098c28c92e63
|
|
| BLAKE2b-256 |
623500e46e3ad25a2d3768894edeabccd4bee4af3b45d2fc0fe4f6a6aba10ac4
|