Metadata-Version: 2.4
Name: sct2df
Version: 0.1.1
Summary: Python library for converting SCT Netlist text files to DataFrames
Maintainer-email: Ian Cleary <python@iancleary.me>
License-Expression: MIT
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: full
Requires-Dist: pandas; extra == "full"
Provides-Extra: pandas
Requires-Dist: pandas; extra == "pandas"
Provides-Extra: polars
Requires-Dist: polars; extra == "polars"
Dynamic: license-file

# sct2df

Schematic Checking Tool Netlist to DataFrame library

```py
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)
```
