Skip to main content

a Python package for interfacing with Intel Quartus Tcl

Project description


PyPI Travis CI Read the Docs

quartustcl is a Python module to interact with Intel Quartus Tcl shells. It opens a single shell in a subprocess, then helps you with reading and writing data to it, and parsing Tcl lists.


Install via pip:

pip install quartustcl


You can start a demo Python REPL by running the package as a script:

python3 -m quartustcl

The quartustcl subshell is exposed in a variable named quartus.

Basic Use

Instantiate a QuartusTcl object to start a shell. Then, call methods on it.

quartus = quartustcl.QuartusTcl()
three = quartus.expr('1 + 2')
assert three == '3'

If you are expecting a list as a result, use parse to turn Tcl lists into Python lists.

devnames = quartus.parse(quartus.get_device_names(hardware_name="Foo Bar"))

In the Tcl subshell, this runs

get_device_names -hardware_name {Foo Bar}

and parses the result into a Python list.

For more detailed information, please read the documentation.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for quartustcl, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size quartustcl-0.3-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size quartustcl-0.3.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page