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
Release history Release notifications | RSS feed
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
File details
Details for the file libreda-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: libreda-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 992.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.3.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebc55e22fcf225dcf99fef23a4b9738e1b7c58c67b72a0619e0c861c50466a9 |
|
MD5 | dd8012d27c4f875348589776dcb427ab |
|
BLAKE2b-256 | 631354cf31d266ca0e6ddff15d78718171fcbeceee39f9c666e981b45fee6ae5 |