JLC2KiCadLib 1.0.31__py3-none-any.whl → 1.0.33__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.
Potentially problematic release.
This version of JLC2KiCadLib might be problematic. Click here for more details.
- JLC2KiCadLib/__version__.py +1 -1
- JLC2KiCadLib/footprint/model3d.py +6 -10
- JLC2KiCadLib/symbol/symbol.py +8 -3
- JLC2KiCadLib/symbol/symbol_handlers.py +4 -4
- {JLC2KiCadLib-1.0.31.dist-info → JLC2KiCadLib-1.0.33.dist-info}/METADATA +11 -2
- JLC2KiCadLib-1.0.33.dist-info/RECORD +17 -0
- {JLC2KiCadLib-1.0.31.dist-info → JLC2KiCadLib-1.0.33.dist-info}/WHEEL +1 -1
- JLC2KiCadLib-1.0.31.dist-info/RECORD +0 -17
- {JLC2KiCadLib-1.0.31.dist-info → JLC2KiCadLib-1.0.33.dist-info}/LICENSE +0 -0
- {JLC2KiCadLib-1.0.31.dist-info → JLC2KiCadLib-1.0.33.dist-info}/entry_points.txt +0 -0
- {JLC2KiCadLib-1.0.31.dist-info → JLC2KiCadLib-1.0.33.dist-info}/top_level.txt +0 -0
JLC2KiCadLib/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.0.
|
|
1
|
+
__version__ = "1.0.33"
|
|
@@ -46,11 +46,11 @@ def get_StepModel(
|
|
|
46
46
|
|
|
47
47
|
if footprint_info.model_base_variable:
|
|
48
48
|
if footprint_info.model_base_variable.startswith("$"):
|
|
49
|
-
path_name = f'"{footprint_info.model_base_variable}/{footprint_info.footprint_name}.step"'
|
|
49
|
+
path_name = f'"{footprint_info.model_base_variable}/{footprint_info.model_dir}/{footprint_info.footprint_name}.step"'
|
|
50
50
|
else:
|
|
51
|
-
path_name = f'"$({footprint_info.model_base_variable})/{footprint_info.footprint_name}.step"'
|
|
51
|
+
path_name = f'"$({footprint_info.model_base_variable})/{footprint_info.model_dir}/{footprint_info.footprint_name}.step"'
|
|
52
52
|
else:
|
|
53
|
-
path_name =
|
|
53
|
+
path_name = f"{footprint_info.model_dir}/{footprint_info.footprint_name}.step"
|
|
54
54
|
|
|
55
55
|
translationX = (translationX - footprint_info.origin[0]) / 100
|
|
56
56
|
translationY = -(translationY - footprint_info.origin[1]) / 100
|
|
@@ -182,15 +182,11 @@ Shape{{
|
|
|
182
182
|
|
|
183
183
|
if footprint_info.model_base_variable:
|
|
184
184
|
if footprint_info.model_base_variable.startswith("$"):
|
|
185
|
-
path_name = f'"{footprint_info.model_base_variable}/{footprint_info.footprint_name}.wrl"'
|
|
185
|
+
path_name = f'"{footprint_info.model_base_variable}/{footprint_info.model_dir}/{footprint_info.footprint_name}.wrl"'
|
|
186
186
|
else:
|
|
187
|
-
path_name = f'"$({footprint_info.model_base_variable})/{footprint_info.footprint_name}.wrl"'
|
|
187
|
+
path_name = f'"$({footprint_info.model_base_variable})/{footprint_info.model_dir}/{footprint_info.footprint_name}.wrl"'
|
|
188
188
|
else:
|
|
189
|
-
|
|
190
|
-
if os.path.isabs(filename):
|
|
191
|
-
path_name = filename
|
|
192
|
-
else:
|
|
193
|
-
path_name = f"{dirname}/{filename}"
|
|
189
|
+
path_name = f"{footprint_info.model_dir}/{footprint_info.footprint_name}.wrl"
|
|
194
190
|
|
|
195
191
|
translationX = (translationX - footprint_info.origin[0]) / 100
|
|
196
192
|
translationY = -(translationY - footprint_info.origin[1]) / 100
|
JLC2KiCadLib/symbol/symbol.py
CHANGED
|
@@ -34,8 +34,8 @@ def create_symbol(
|
|
|
34
34
|
):
|
|
35
35
|
class kicad_symbol:
|
|
36
36
|
drawing = ""
|
|
37
|
-
pinNamesHide =
|
|
38
|
-
pinNumbersHide =
|
|
37
|
+
pinNamesHide = "(pin_names hide)"
|
|
38
|
+
pinNumbersHide = "(pin_numbers hide)"
|
|
39
39
|
|
|
40
40
|
kicad_symbol = kicad_symbol()
|
|
41
41
|
|
|
@@ -56,9 +56,14 @@ def create_symbol(
|
|
|
56
56
|
].replace("?", "")
|
|
57
57
|
component_title = (
|
|
58
58
|
data["result"]["title"]
|
|
59
|
-
.replace("/", "_")
|
|
60
59
|
.replace(" ", "_")
|
|
61
60
|
.replace(".", "_")
|
|
61
|
+
.replace("/", "{slash}")
|
|
62
|
+
.replace("\\", "{backslash}")
|
|
63
|
+
.replace("<", "{lt}")
|
|
64
|
+
.replace(">", "{gt}")
|
|
65
|
+
.replace(":", "{colon}")
|
|
66
|
+
.replace('"', "{dblquote}")
|
|
62
67
|
)
|
|
63
68
|
|
|
64
69
|
component_types_values = []
|
|
@@ -116,11 +116,11 @@ def h_P(data, translation, kicad_symbol):
|
|
|
116
116
|
kicad_symbol.pinNamesHide = ""
|
|
117
117
|
if data[17].split("^^")[1] != "0":
|
|
118
118
|
kicad_symbol.pinNumbersHide = ""
|
|
119
|
-
except Exception
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
except Exception:
|
|
120
|
+
kicad_symbol.pinNamesHide = ""
|
|
121
|
+
kicad_symbol.pinNumbersHide = ""
|
|
122
122
|
|
|
123
|
-
try
|
|
123
|
+
try:
|
|
124
124
|
nameSize = mil2mm(float(data[16].replace("pt", "")))
|
|
125
125
|
numberSize = mil2mm(float(data[24].replace("pt", "")))
|
|
126
126
|
except Exception:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: JLC2KiCadLib
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.33
|
|
4
4
|
Summary: JLC2KiCad_lib is a python script that generate a component library (symbol, footprint and 3D model) for KiCad from the JLCPCB/easyEDA library.
|
|
5
5
|
Home-page: https://github.com/TousstNicolas/JLC2KiCad_lib
|
|
6
6
|
Author: TousstNicolas
|
|
@@ -14,6 +14,15 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: KicadModTree
|
|
16
16
|
Requires-Dist: requests
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: description-content-type
|
|
21
|
+
Dynamic: home-page
|
|
22
|
+
Dynamic: license
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: requires-python
|
|
25
|
+
Dynamic: summary
|
|
17
26
|
|
|
18
27
|
# JLC2KiCadLib
|
|
19
28
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
JLC2KiCadLib/JLC2KiCadLib.py,sha256=BJbOo8U58wzEqbohHTtcbFyhL17NyPzX3NQVKly6RMM,5940
|
|
2
|
+
JLC2KiCadLib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
JLC2KiCadLib/__version__.py,sha256=BztMtHpf3FDSepSswtfBMxHTaSn0il7Z9a6IeW7UnGc,23
|
|
4
|
+
JLC2KiCadLib/helper.py,sha256=OWRXLBovsgD0bUWTCNBDV0_XsIY0NOIlvN7mUH8bXCo,573
|
|
5
|
+
JLC2KiCadLib/footprint/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
JLC2KiCadLib/footprint/footprint.py,sha256=Mmx7GshuxTv7Mk3BPkGFwbH6zabPgKzco5BfI5s91SM,5847
|
|
7
|
+
JLC2KiCadLib/footprint/footprint_handlers.py,sha256=sdXisssOqjMe04N21Ee5icjSjbtYJK6nCM3ztD4YLz8,13726
|
|
8
|
+
JLC2KiCadLib/footprint/model3d.py,sha256=xKWwDj0hwk85Xio5V3mZofADcjlJzzeMllgQcfMWLwU,7395
|
|
9
|
+
JLC2KiCadLib/symbol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
+
JLC2KiCadLib/symbol/symbol.py,sha256=KBx67-qKv2RKX6mr69iCYQSDocXlEUqelUoYVoe6H8Y,7339
|
|
11
|
+
JLC2KiCadLib/symbol/symbol_handlers.py,sha256=q3Ltv-h4nscomofZ00GNOosJwRw20_3v8uxcxhhoqEs,9661
|
|
12
|
+
JLC2KiCadLib-1.0.33.dist-info/LICENSE,sha256=tyXpHLah0G-ROQan655i3SKSrKXSD9ccfDnwVQa8q8U,1089
|
|
13
|
+
JLC2KiCadLib-1.0.33.dist-info/METADATA,sha256=oWGbAys_j39GcBI3wqaxAsewtI8SzwTJlknKjXdPr-0,7064
|
|
14
|
+
JLC2KiCadLib-1.0.33.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
15
|
+
JLC2KiCadLib-1.0.33.dist-info/entry_points.txt,sha256=WF-HbrktGM05drU8Vtkl4hXIQugiO65a96LOCTip19s,64
|
|
16
|
+
JLC2KiCadLib-1.0.33.dist-info/top_level.txt,sha256=wLbJ381HZrM-GLIGgVe-YbUEFpUcOdDYhqwt3atu3OA,13
|
|
17
|
+
JLC2KiCadLib-1.0.33.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
JLC2KiCadLib/JLC2KiCadLib.py,sha256=BJbOo8U58wzEqbohHTtcbFyhL17NyPzX3NQVKly6RMM,5940
|
|
2
|
-
JLC2KiCadLib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
JLC2KiCadLib/__version__.py,sha256=Tbq-eO9L8KG-7azHnPf7clIsB-9jtmAUx7mxAZKeRBs,23
|
|
4
|
-
JLC2KiCadLib/helper.py,sha256=OWRXLBovsgD0bUWTCNBDV0_XsIY0NOIlvN7mUH8bXCo,573
|
|
5
|
-
JLC2KiCadLib/footprint/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
JLC2KiCadLib/footprint/footprint.py,sha256=Mmx7GshuxTv7Mk3BPkGFwbH6zabPgKzco5BfI5s91SM,5847
|
|
7
|
-
JLC2KiCadLib/footprint/footprint_handlers.py,sha256=sdXisssOqjMe04N21Ee5icjSjbtYJK6nCM3ztD4YLz8,13726
|
|
8
|
-
JLC2KiCadLib/footprint/model3d.py,sha256=ux1_E98JIGdexdG3F4kSwwEiK-T_kKABxwJ6jImmV9Y,7349
|
|
9
|
-
JLC2KiCadLib/symbol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
JLC2KiCadLib/symbol/symbol.py,sha256=CncTZk_NS2Dv5f_zoxMRZ7KqHX7y0ol8WH62yzwtfnM,7148
|
|
11
|
-
JLC2KiCadLib/symbol/symbol_handlers.py,sha256=25Wiisae942kUhaX1Xeib2cHqeCC5gSW6aYULNpxZ9M,9671
|
|
12
|
-
JLC2KiCadLib-1.0.31.dist-info/LICENSE,sha256=tyXpHLah0G-ROQan655i3SKSrKXSD9ccfDnwVQa8q8U,1089
|
|
13
|
-
JLC2KiCadLib-1.0.31.dist-info/METADATA,sha256=zS7s1EFMgT4gCh6QDBYHqUz8e-RnaOmBAcL9DpRIwN4,6872
|
|
14
|
-
JLC2KiCadLib-1.0.31.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
15
|
-
JLC2KiCadLib-1.0.31.dist-info/entry_points.txt,sha256=WF-HbrktGM05drU8Vtkl4hXIQugiO65a96LOCTip19s,64
|
|
16
|
-
JLC2KiCadLib-1.0.31.dist-info/top_level.txt,sha256=wLbJ381HZrM-GLIGgVe-YbUEFpUcOdDYhqwt3atu3OA,13
|
|
17
|
-
JLC2KiCadLib-1.0.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|