{"id":21804,"library":"pysv","title":"PySV","description":"PySV is a Python library for reading, writing, and converting SystemVerilog files. Version 0.3.1, released periodically on GitHub.","status":"active","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/Kuree/pysv","tags":["systemverilog","parse","verilog","hdl"],"install":[{"cmd":"pip install pysv","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Incorrect submodule path","wrong":"from pysv.parser import SystemVerilogParser","symbol":"SystemVerilogParser","correct":"from pysv import SystemVerilogParser"}],"quickstart":{"code":"from pysv import SystemVerilogParser\n\nparser = SystemVerilogParser()\ndesign = parser.parse_file('example.sv')\nprint(design.get_module_names())","lang":"python","description":"Parse a SystemVerilog file and list module names."},"warnings":[{"fix":"Pin exact version in requirements.txt and test upgrades.","message":"PySV is still in early development (pre-1.0). API may change without deprecation.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Check documentation for supported features; use alternative for advanced SV.","message":"Parser requires SystemVerilog-2005 or earlier; does not fully support newer constructs (e.g., interfaces, assertions).","severity":"gotcha","affected_versions":"all"},{"fix":"Use os.path.abspath() or set working directory accordingly.","message":"File path in parse_file must be absolute or relative to CWD; no automatic resolution.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install pysv` and verify with `pip list | grep pysv`.","cause":"Library not installed or installed in wrong environment.","error":"ModuleNotFoundError: No module named 'pysv'"},{"fix":"Use `from pysv import SystemVerilogParser`. Upgrade pysv: `pip install --upgrade pysv`.","cause":"Incorrect import path; older library version.","error":"AttributeError: module 'pysv' has no attribute 'SystemVerilogParser'"},{"fix":"Provide absolute path or ensure file exists in current working directory.","cause":"File not found at given path.","error":"FileNotFoundError: [Errno 2] No such file or directory: 'example.sv'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}