Skip to main content

Python bindings for SystemVerilog parsing.

Project description

py-sv-parser

This is a simple set of bindings for the wonderful sv-parser library. Bindings are written in Rust using PyO3 to provide the Python interface.

Currently it only supports the "standard" parsing function and operations on the tree that function generates. It currently iterates over the provided tree and generates a new tree with all of the data copied out, so it's quite a bit less performant than pure native Rust, but all the functionality is there.

The intent is to support 100% of sv-parser, and eventually map to the native library's Rust iterators directly for better performance.

Installation

pip install .

I have not yet tested on a machine without the Rust toolchain installed, so you may have to install that first if you're getting build errors.

Documentation

The Rust docs aren't particularly helpful, as PyO3 consumes the doc comments and all structure before it gets to rustdoc, so don't bother building those. To get some API documentation, install and use pdoc3. You must have built and installed the py_sv_parser package.

pip install pdoc3
pdoc3 --html py_sv_parser

Project details


Download files

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

Source Distribution

py_sv_parser-0.2.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distributions

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

py_sv_parser-0.2.1-cp39-cp39-manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

py_sv_parser-0.2.1-cp38-cp38-manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

py_sv_parser-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

py_sv_parser-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl (11.1 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file py_sv_parser-0.2.1.tar.gz.

File metadata

  • Download URL: py_sv_parser-0.2.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for py_sv_parser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 81c98cd9087bc1c08c3407466e2b2c5154a091931e5e84b00e793bd086a958ca
MD5 bb5cf279d9a265dc776b084ae0155cc6
BLAKE2b-256 29f9abb87bf98bd954cffa356d120b91dd0e45acffdde2a445bf4f9719ab427e

See more details on using hashes here.

File details

Details for the file py_sv_parser-0.2.1-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: py_sv_parser-0.2.1-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for py_sv_parser-0.2.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 dbe1e819aa8243788fb91d549879863995f063cce63667737a5db2a62be62a77
MD5 6821671b6ae76a5122a49bb85b4faf6d
BLAKE2b-256 98da73b213f0ee48a1cfa8c0c7fc38d4e027d22236c3b24148f985f541ea0449

See more details on using hashes here.

File details

Details for the file py_sv_parser-0.2.1-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: py_sv_parser-0.2.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for py_sv_parser-0.2.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5667048ee2501ca8009d38e3d4f81094bb223734a5556c6aaafaa2be211deb1d
MD5 763b153c6d578368fcc877b2cb20821f
BLAKE2b-256 6e73a65ed49bb4df005a96cbf9031caf373774945b7a534b6e09c51152bd0e8f

See more details on using hashes here.

File details

Details for the file py_sv_parser-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: py_sv_parser-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for py_sv_parser-0.2.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7711bc07faf6eb6f576c064836368dea29b76db5bf7fdde987da2bf9f73a3f46
MD5 6c4be3ff2ae41d8b5565563c445d235b
BLAKE2b-256 fd1b85f390302c43d01658dc60868b94d0b07716ec39a05676ffa05e8b792cb5

See more details on using hashes here.

File details

Details for the file py_sv_parser-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: py_sv_parser-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for py_sv_parser-0.2.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 89c19b8b16a7cfc95a5c113d1c6b167b136aec9504f8cfc670d478124ab7b231
MD5 411b9950725b7af89b7cae60ea701ed1
BLAKE2b-256 ab752df6093abc6d7514036e01a0c807fda74709301dd408b4d50ec05c04ad38

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