Skip to main content

a Python package for interfacing with Intel Quartus Tcl

Project description

quartustcl

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.

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.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

quartustcl-0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quartustcl-0.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for quartustcl-0.3.tar.gz
Algorithm Hash digest
SHA256 90f74cf2dc49738b8bf4dfe9ce3595117331974fc60557dbdab0cae3f4ff2437
MD5 4fbcd540020315d9e4f5f8178004f0d6
BLAKE2b-256 f00a78e81dbfd41e90037c875301bef8ea08e9bbe061956fe1e647c09f4f5c13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quartustcl-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for quartustcl-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25db74f46a207b35eb1e1b9a534493fedbcee939fb25ac87bc6985d6f12d4297
MD5 ff4884eb119686b66fc23559b3c7b5cf
BLAKE2b-256 74ed7aff9d85d04260aba01e3c53179444768c2dc646d5fba4d67e185df223c4

See more details on using hashes here.

Supported by

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