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

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

libreda_python-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl (992.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

File details

Details for the file libreda_python-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for libreda_python-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6c694fae2d1d313599b4e3c616d1e267a797ce9496fbd128c07f24f698a08a34
MD5 c2c5755821847204178683a0b5d2ce63
BLAKE2b-256 614b32102b07db0ac09341d2ffe9a10e78f4c8e2d830498842aead89ed2b7e89

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