No project description provided
Project description
vcdparser
A simple VCD parser to access the contents of a VCD file in python.
The goal is to provide an easy to use, lightweight parser for VCD files. The parser also aims to be quite fast (for a python library 😉).
What does it do?
This library contains a simple parser, which reads in VCD files and provides you with the raw data from this file.
How to use
To install the latest version from PyPI use pip install vcdparser.
After that you can import the parser using import vcdparser.parser.
This is a simple script showing you how to parse a file and get the first 10 changes of a signal named "CLK":
import vcdparser.parser
vcd = parser.parse_vcd_file("your_file_path.vcd")
clk_id = vcd.get_id("CLK")
count = 0
for t in vcd.timesteps:
if clk_id in t.variables:
count += 1
print(f"CLK changed to {t.variables[clk_id]}")
if count >= 10:
break
Contributing
We are always happy to receive contributions! Please take a look at the contribution guidelines and the Code of Conduct before making changes.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vcdparser-0.1.0.tar.gz.
File metadata
- Download URL: vcdparser-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de539bcc6917903317d906b62dacf9469a1ed738522e74e727fec05730334fb0
|
|
| MD5 |
7f34d0d60e06e0880517ff33e0413424
|
|
| BLAKE2b-256 |
5a5a025c75392b5e2bdbccd016d0d3f91d6777252fde6593337fb706404bf7f2
|
Provenance
The following attestation bundles were made for vcdparser-0.1.0.tar.gz:
Publisher:
publish.yml on Menkalian/vcdparser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcdparser-0.1.0.tar.gz -
Subject digest:
de539bcc6917903317d906b62dacf9469a1ed738522e74e727fec05730334fb0 - Sigstore transparency entry: 163618647
- Sigstore integration time:
-
Permalink:
Menkalian/vcdparser@6142ce3e320e5f0052343303b6e958a7ea5f561b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Menkalian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6142ce3e320e5f0052343303b6e958a7ea5f561b -
Trigger Event:
push
-
Statement type:
File details
Details for the file vcdparser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vcdparser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39d718a40703d28848131e07490c9b8ec669eaeee8ae674323d0390feac926df
|
|
| MD5 |
c145b1d5760fe1909fdf72d4edead760
|
|
| BLAKE2b-256 |
2d53e62c2f964a9fdf56ac2f7fe417582ce61224127500de739eb479748bd111
|
Provenance
The following attestation bundles were made for vcdparser-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Menkalian/vcdparser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcdparser-0.1.0-py3-none-any.whl -
Subject digest:
39d718a40703d28848131e07490c9b8ec669eaeee8ae674323d0390feac926df - Sigstore transparency entry: 163618650
- Sigstore integration time:
-
Permalink:
Menkalian/vcdparser@6142ce3e320e5f0052343303b6e958a7ea5f561b -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/Menkalian
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6142ce3e320e5f0052343303b6e958a7ea5f561b -
Trigger Event:
push
-
Statement type: