Skip to main content

a Python package for interfacing with Intel Quartus Tcl

Project description

quartustcl

PyPI GitHub Actions 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.

Installation

Install via pip:

pip install quartustcl

Demo

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.

Source Distribution

quartustcl-0.4.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quartustcl-0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file quartustcl-0.4.tar.gz.

File metadata

  • Download URL: quartustcl-0.4.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for quartustcl-0.4.tar.gz
Algorithm Hash digest
SHA256 05b9c329002bf697108e1754ca9ab7968430aa1cc6b29a351a0543ca113037ce
MD5 93691d7028f119dba1bbf58c32af84e7
BLAKE2b-256 a90cada5fc39573b3ff95d95d1db1f93f2f3520569bfe9c39f9ff73566904357

See more details on using hashes here.

File details

Details for the file quartustcl-0.4-py3-none-any.whl.

File metadata

  • Download URL: quartustcl-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for quartustcl-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 49a6614eb277ce77f41f4531fd8485eadcfaef8379087f07f6be82664a7563c2
MD5 5712f9aa6611c749fa750a9956fdb9b1
BLAKE2b-256 463e1b252a66efdb9e16560fad01f1b445c0fcd26a523f6d129cbfe94f447a33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page