Pure Python parser for Cadence PSF
Project description
psf-parser
A pure-Python parser for Cadence's proprietary PSF format. Supports both ASCII and binary variants. No external dependencies.
Features
- ✅ Parses both ASCII and binary PSF files
- ✅ No dependencies (standard library only)
- ✅ Provides structured access to signals, traces, sweeps, and values
Installation
To install the psf-parser package, simply run:
pip install psf_parser
Usage
The psf-parser package provides a straightforward API for parsing and accessing the contents of PSF files. It supports both ASCII and binary formats.
Example Usage
Here’s an example of how to use the PsfFile classes to access PSF file content.
from psf_parser import PsfFile
file = PsfParser("path/to/psf")
print(file.sweeps)
print(file.traces)
print(file.values)
License
This project is licensed under the MIT License – see the LICENSE file for details.
Acknowledgements
This project was made possible thanks to the inspiration and information provided by the following projects:
psf_utils– A well-established PSF parser built with PLY, helpful for understanding the PSF ASCII format.libpsf– The original reverse-engineering project for the binary PSF format, which served as the primary source for this implementation.
Special thanks to the maintainers and contributors of these projects for their open source work.
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 psf_parser-0.1.1.tar.gz.
File metadata
- Download URL: psf_parser-0.1.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41d715a00210efd550209ccd25e5a60304c9e00125999f207c83eb995bad2dc4
|
|
| MD5 |
8eea8ed435594cf4b06789016759270d
|
|
| BLAKE2b-256 |
ce70f9baf5f752e8690ae7822892a5a4099ebea3838387ace77ddce2d52ce2df
|
File details
Details for the file psf_parser-0.1.1-py3-none-any.whl.
File metadata
- Download URL: psf_parser-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.11.2 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
487008ea84065a43347d6cfe3cbba68602e3c4f44939faa9455b621b2c2e39b0
|
|
| MD5 |
f683039075b24bc4ac613b6f08cbaebe
|
|
| BLAKE2b-256 |
30b23617f7c9a3780cb548c753b0e86659e69a1affa6b3c3b8fbdaeae59673d9
|