Skip to main content

Python runner for an interactive litex terminal session.

Project description

litexpy

Python runner for an interactive litex terminal session.

Links

Prerequisites

litexpy requires the litex command to be available in your terminal.

To install litex locally, see the Litex setup guide: https://litexlang.com/doc/Setup

Usage

import litexpy

runner = litexpy.Runner()

results = runner.run("1 = 1\n0 = 0")
clear_result = runner.clear()
runner.quit()

litexpy.Runner() starts the litex command in an interactive terminal process. run(script) sends script to that process and returns the JSON results as a list of Python dict objects, clear() is equivalent to run("clear"), and quit() closes the running litex process.

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

litexpy-0.0.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

litexpy-0.0.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file litexpy-0.0.4.tar.gz.

File metadata

  • Download URL: litexpy-0.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for litexpy-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d4961f6a71b8354aed7bc0cf6346f7e546f734924ede184f024616439177ef0f
MD5 6a93d316b38563767078dffc80462709
BLAKE2b-256 f53fb5fd3a0a501a6bc03ef7ef2eb15c29e6e30e014b4deb8f49c9a346826f67

See more details on using hashes here.

File details

Details for the file litexpy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: litexpy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for litexpy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 add35bc587e5e4410255ed55e21356a8fdee8db9e66742fdbce4e292768fbf9a
MD5 8fc0871491cbeb9cfc2886349a0f46e1
BLAKE2b-256 4c756968e0218a7b5cd78d32ca83fa6a8e397ff690090db76a6f4ace6280829d

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