Metadata-Version: 2.4
Name: notcl
Version: 0.3.6
Summary: Replace Tcl scripting with Python
Maintainer-email: Tobias Kaiser <mail@tb-kaiser.de>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/TobiasKaiser/notcl
Project-URL: Documentation, https://notcl.readthedocs.io
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Tcl
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Dynamic: license-file

NoTcl: Replace Tcl scripting with Python
========================================

.. image:: https://readthedocs.org/projects/notcl/badge/?version=latest
    :target: https://notcl.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

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: :code:`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
