Skip to main content

Python binding for the LibrEDA database.

Project description

libreda-python

Work-in-progress

Python binding for libreda-db.

Install

Create a Python virtual environment:

python -m venv myPythonEnv
source myPythonEnv/bin/activate

# Install maturin (build tool for Rust-based Python packages)
pip install maturin

Download and install libreda-python:

# LibrEDA consists of many Rust libraries. The workspace bundles them together.
git clone --recursive https://codeberg.org/LibrEDA/libreda-rs-workspace libreda
cd libreda/libreda-python

# Install in development mode.
maturin develop

Run a Python shell and import libreda:

python
import libreda as db

chip = db.Chip()
my_cell = chip.create_cell("A")

# Write verilog.
writer = db.io.VerilogWriter()
writer.write_netlist(chip, "output.v")

# Read verilog.
reader = db.io.VerilogReader()
netlist = reader.read_netlist("output.v")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

libreda-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl (992.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

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