a Python package for interfacing with Intel Quartus Tcl
Project description
quartustcl
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05b9c329002bf697108e1754ca9ab7968430aa1cc6b29a351a0543ca113037ce
|
|
| MD5 |
93691d7028f119dba1bbf58c32af84e7
|
|
| BLAKE2b-256 |
a90cada5fc39573b3ff95d95d1db1f93f2f3520569bfe9c39f9ff73566904357
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a6614eb277ce77f41f4531fd8485eadcfaef8379087f07f6be82664a7563c2
|
|
| MD5 |
5712f9aa6611c749fa750a9956fdb9b1
|
|
| BLAKE2b-256 |
463e1b252a66efdb9e16560fad01f1b445c0fcd26a523f6d129cbfe94f447a33
|