electronics-design 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- electronics_design/__init__.py +29 -0
- electronics_design/ltspice.py +45 -0
- electronics_design/ltspice_asc.py +832 -0
- electronics_design/ltspice_asc_to_netlist.py +811 -0
- electronics_design/ltspice_net.py +739 -0
- electronics_design/ltspice_netlist_plot_networkx.py +634 -0
- electronics_design-0.1.0.dist-info/METADATA +420 -0
- electronics_design-0.1.0.dist-info/RECORD +11 -0
- electronics_design-0.1.0.dist-info/WHEEL +5 -0
- electronics_design-0.1.0.dist-info/licenses/LICENSE +674 -0
- electronics_design-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"""Public package exports for the electronics_design library.""" # Describe the package entry point.
|
|
2
|
+
|
|
3
|
+
from .ltspice import is_valid_ltspice_asc_file # Re-export the ASC whole-file validator.
|
|
4
|
+
from .ltspice import is_valid_ltspice_asc_footer # Re-export the ASC footer validator.
|
|
5
|
+
from .ltspice import is_valid_ltspice_asc_header # Re-export the ASC header validator.
|
|
6
|
+
from .ltspice import is_valid_ltspice_asc_spacing # Re-export the ASC spacing validator.
|
|
7
|
+
from .ltspice import ltspice_asc_plot_schemdraw # Re-export the schemdraw schematic plotting helper.
|
|
8
|
+
from .ltspice import ltspice_asc_to_netlist # Re-export the ASC-to-netlist conversion helper.
|
|
9
|
+
from .ltspice import is_ltspice_netlist_structure_connected # Re-export the connectivity validator.
|
|
10
|
+
from .ltspice import is_valid_ltspice_netlist_file # Re-export the whole-file validator.
|
|
11
|
+
from .ltspice import is_valid_ltspice_netlist_footer # Re-export the footer validator.
|
|
12
|
+
from .ltspice import is_valid_ltspice_netlist_format # Re-export the format validator.
|
|
13
|
+
from .ltspice import ltspice_netlist_plot_networkx # Re-export the graph plotting helper.
|
|
14
|
+
from .ltspice import ltspice_netlist_structure_cmp # Re-export the structural comparison helper.
|
|
15
|
+
|
|
16
|
+
__all__ = [ # Define the supported public API surface.
|
|
17
|
+
"is_valid_ltspice_asc_header", # Export the ASC header validator name.
|
|
18
|
+
"is_valid_ltspice_asc_spacing", # Export the ASC spacing validator name.
|
|
19
|
+
"is_valid_ltspice_asc_footer", # Export the ASC footer validator name.
|
|
20
|
+
"is_valid_ltspice_asc_file", # Export the ASC whole-file validator name.
|
|
21
|
+
"ltspice_asc_plot_schemdraw", # Export the schemdraw schematic plotting helper name.
|
|
22
|
+
"ltspice_asc_to_netlist", # Export the ASC-to-netlist conversion helper name.
|
|
23
|
+
"is_valid_ltspice_netlist_format", # Export the format validator name.
|
|
24
|
+
"is_valid_ltspice_netlist_footer", # Export the footer validator name.
|
|
25
|
+
"is_ltspice_netlist_structure_connected", # Export the connectivity validator name.
|
|
26
|
+
"is_valid_ltspice_netlist_file", # Export the whole-file validator name.
|
|
27
|
+
"ltspice_netlist_plot_networkx", # Export the networkx plotting helper name.
|
|
28
|
+
"ltspice_netlist_structure_cmp", # Export the structural comparison helper name.
|
|
29
|
+
] # Finish the public export list.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Compatibility wrapper for the split LTspice validation modules.""" # Preserve the legacy module path used by tests and callers.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations # Keep annotations lazy and consistent with the package code.
|
|
4
|
+
|
|
5
|
+
import os # Re-export the shared os module so existing test patches still apply.
|
|
6
|
+
|
|
7
|
+
from . import ltspice_asc as _asc # Import the ASC-specific implementation module.
|
|
8
|
+
from . import ltspice_asc_to_netlist as _asc_to_netlist # Import the ASC-to-netlist conversion module.
|
|
9
|
+
from . import ltspice_net as _net # Import the netlist-specific implementation module.
|
|
10
|
+
|
|
11
|
+
is_valid_ltspice_asc_header = _asc.is_valid_ltspice_asc_header # Re-export the ASC header validator.
|
|
12
|
+
is_valid_ltspice_asc_spacing = _asc.is_valid_ltspice_asc_spacing # Re-export the ASC spacing validator.
|
|
13
|
+
is_valid_ltspice_asc_footer = _asc.is_valid_ltspice_asc_footer # Re-export the ASC footer validator.
|
|
14
|
+
is_valid_ltspice_asc_file = _asc.is_valid_ltspice_asc_file # Re-export the ASC whole-file validator.
|
|
15
|
+
ltspice_asc_plot_schemdraw = _asc.ltspice_asc_plot_schemdraw # Re-export the schemdraw schematic plotting helper.
|
|
16
|
+
ltspice_asc_to_netlist = _asc_to_netlist.ltspice_asc_to_netlist # Re-export the ASC-to-netlist conversion helper.
|
|
17
|
+
|
|
18
|
+
is_valid_ltspice_netlist_format = _net.is_valid_ltspice_netlist_format # Re-export the netlist format validator.
|
|
19
|
+
is_valid_ltspice_netlist_footer = _net.is_valid_ltspice_netlist_footer # Re-export the netlist footer validator.
|
|
20
|
+
is_ltspice_netlist_structure_connected = _net.is_ltspice_netlist_structure_connected # Re-export the connectivity validator.
|
|
21
|
+
is_valid_ltspice_netlist_file = _net.is_valid_ltspice_netlist_file # Re-export the netlist whole-file validator.
|
|
22
|
+
ltspice_netlist_plot_networkx = _net.ltspice_netlist_plot_networkx # Re-export the network graph plotting helper.
|
|
23
|
+
ltspice_netlist_structure_cmp = _net.ltspice_netlist_structure_cmp # Re-export the structural comparison helper.
|
|
24
|
+
|
|
25
|
+
_classify_asc_line = _asc._classify_asc_line # Re-export the ASC line classifier for focused tests.
|
|
26
|
+
_extract_asc_text_directive = _asc._extract_asc_text_directive # Re-export the ASC directive extractor for focused tests.
|
|
27
|
+
_parse_directive_name = _net._parse_directive_name # Re-export the directive parser for focused tests.
|
|
28
|
+
_strip_semicolon_comment = _net._strip_semicolon_comment # Re-export the inline-comment stripper for focused tests.
|
|
29
|
+
_extract_nodes = _net._extract_nodes # Re-export the node extractor for focused tests.
|
|
30
|
+
_is_exempt_node = _net._is_exempt_node # Re-export the exempt-node helper for focused tests.
|
|
31
|
+
|
|
32
|
+
__all__ = [ # Publish the stable public API surface through the legacy wrapper.
|
|
33
|
+
"is_valid_ltspice_asc_header", # Export the ASC header validator.
|
|
34
|
+
"is_valid_ltspice_asc_spacing", # Export the ASC spacing validator.
|
|
35
|
+
"is_valid_ltspice_asc_footer", # Export the ASC footer validator.
|
|
36
|
+
"is_valid_ltspice_asc_file", # Export the ASC whole-file validator.
|
|
37
|
+
"ltspice_asc_plot_schemdraw", # Export the schemdraw schematic plotting helper.
|
|
38
|
+
"ltspice_asc_to_netlist", # Export the ASC-to-netlist conversion helper.
|
|
39
|
+
"is_valid_ltspice_netlist_format", # Export the netlist format validator.
|
|
40
|
+
"is_valid_ltspice_netlist_footer", # Export the netlist footer validator.
|
|
41
|
+
"is_ltspice_netlist_structure_connected", # Export the connectivity validator.
|
|
42
|
+
"is_valid_ltspice_netlist_file", # Export the netlist whole-file validator.
|
|
43
|
+
"ltspice_netlist_plot_networkx", # Export the network graph plotting helper.
|
|
44
|
+
"ltspice_netlist_structure_cmp", # Export the structural comparison helper.
|
|
45
|
+
] # Finish the public export list.
|