Skip to main content

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


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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

sct2df-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file sct2df-0.1.1.tar.gz.

File metadata

  • Download URL: sct2df-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.22

File hashes

Hashes for sct2df-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eace95f5a2e0805ae3db7eeeb9cfe213803044e90e077149a453904c6af78442
MD5 d91eadf88c09a9f19ec767ecb81aba50
BLAKE2b-256 23e2d2cac402beb0575e246f62f269130bc917e7ecae6559e75025c68c022f61

See more details on using hashes here.

File details

Details for the file sct2df-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sct2df-0.1.1-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

Hashes for sct2df-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b199ba5bde745abcf52912c1877e3f399873e09d8ad069146be63164ed4739ab
MD5 2d1ec82e7a4c35f0acbf4335c5ce02b2
BLAKE2b-256 114f6ae169826cbdb197b8d399dbd875cfcb524016cb02aff04d4c7ce85aadb1

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