Python library for converting SCT Netlist text files to DataFrames
Project description
sct2df
Schematic Checking Tool Netlist to DataFrame library
from pathlib import Path
from sct2df.parse import (
to_record_list
)
import pandas as pd
#import polars as pl
# where ever your file is
sct_netlist_txt_file = Path("data") / "Example_SCT_Netlist.txt"
# returns records to not enforce pandas version without reason to
record_list = to_record_list(path=sct_netlist_txt_file, symbols=["U1", "U3", "J1"])
# actually make the dataframe
dataframe = pd.DataFrame.from_records(df_record_list)
# Save it to CSV file
dataframe_path = Path("data") / "Example_SCT_Netlist.csv"
dataframe.to_csv(dataframe_path, index=False)
# Print out information (or further analysis)
print(df)
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
sct2df-0.1.0.tar.gz
(3.8 kB
view details)
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 sct2df-0.1.0.tar.gz.
File metadata
- Download URL: sct2df-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f005098e86ef56c5571f70cc6c1e52c0aa3c36424881f75eafd0d5d307ea36c
|
|
| MD5 |
67c8cb5db70bb7a3cdfef731e7cfaf7a
|
|
| BLAKE2b-256 |
880121efab39edad282c3f276d913f74aed62e6d3955860036acea97cd8a3361
|
File details
Details for the file sct2df-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sct2df-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c3a84f1a4bc0daaa92e6fb9dfe057c1216a9f56243c0a3dbd9f3d1fb2cc44c
|
|
| MD5 |
a889389ec4dbb7645e18bfd52857ce58
|
|
| BLAKE2b-256 |
0fc017a7e432a58421d22462b61ca6219a149f85410bbc6198c4a923bdc0a6f6
|