libreda


Namelibreda JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://libreda.org
SummaryPython binding for the LibrEDA database.
upload_time2023-11-21 21:11:13
maintainerNone
docs_urlNone
authorThomas Kramer <code@tkramer.ch>
requires_python
licenseAGPL-3.0-or-later
keywords vlsi python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
SPDX-FileCopyrightText: 2022 Thomas Kramer

SPDX-License-Identifier: CC-BY-SA-4.0
-->

# libreda-python

*Work-in-progress*

Python binding for [libreda-db](https://codeberg.org/LibrEDA/libreda-db).

## Install

Create a Python virtual environment:
```sh
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:

```sh
# 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`:
```sh
python
```

```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")
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://libreda.org",
    "name": "libreda",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": null,
    "keywords": "vlsi,python",
    "author": "Thomas Kramer <code@tkramer.ch>",
    "author_email": "Thomas Kramer <code@tkramer.ch>",
    "download_url": null,
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: 2022 Thomas Kramer\n\nSPDX-License-Identifier: CC-BY-SA-4.0\n-->\n\n# libreda-python\n\n*Work-in-progress*\n\nPython binding for [libreda-db](https://codeberg.org/LibrEDA/libreda-db).\n\n## Install\n\nCreate a Python virtual environment:\n```sh\npython -m venv myPythonEnv\nsource myPythonEnv/bin/activate\n\n# Install maturin (build tool for Rust-based Python packages)\npip install maturin\n```\n\nDownload and install libreda-python:\n\n```sh\n# LibrEDA consists of many Rust libraries. The workspace bundles them together.\ngit clone --recursive https://codeberg.org/LibrEDA/libreda-rs-workspace libreda\ncd libreda/libreda-python\n\n# Install in development mode.\nmaturin develop\n```\n\nRun a Python shell and import `libreda`:\n```sh\npython\n```\n\n```python\nimport libreda as db\n\nchip = db.Chip()\nmy_cell = chip.create_cell(\"A\")\n\n# Write verilog.\nwriter = db.io.VerilogWriter()\nwriter.write_netlist(chip, \"output.v\")\n\n# Read verilog.\nreader = db.io.VerilogReader()\nnetlist = reader.read_netlist(\"output.v\")\n```\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "Python binding for the LibrEDA database.",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://libreda.org",
        "Source Code": "https://codeberg.org/libreda/libreda-python"
    },
    "split_keywords": [
        "vlsi",
        "python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "631354cf31d266ca0e6ddff15d78718171fcbeceee39f9c666e981b45fee6ae5",
                "md5": "dd8012d27c4f875348589776dcb427ab",
                "sha256": "bebc55e22fcf225dcf99fef23a4b9738e1b7c58c67b72a0619e0c861c50466a9"
            },
            "downloads": -1,
            "filename": "libreda-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl",
            "has_sig": false,
            "md5_digest": "dd8012d27c4f875348589776dcb427ab",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 992177,
            "upload_time": "2023-11-21T21:11:13",
            "upload_time_iso_8601": "2023-11-21T21:11:13.164182Z",
            "url": "https://files.pythonhosted.org/packages/63/13/54cf31d266ca0e6ddff15d78718171fcbeceee39f9c666e981b45fee6ae5/libreda-0.0.4-cp311-cp311-manylinux_2_34_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-21 21:11:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "libreda",
    "codeberg_project": "libreda-python",
    "lcname": "libreda"
}
        
Elapsed time: 1.39545s