Skip to content

litexlang/litexpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages