JLC2KiCadLib 1.0.31__tar.gz → 1.0.33__tar.gz

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.

Files changed (23) hide show
  1. jlc2kicadlib-1.0.33/JLC2KiCadLib/__version__.py +1 -0
  2. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/footprint/model3d.py +6 -10
  3. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/symbol/symbol.py +8 -3
  4. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/symbol/symbol_handlers.py +4 -4
  5. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/PKG-INFO +11 -2
  6. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/PKG-INFO +11 -2
  7. JLC2KiCadLib-1.0.31/JLC2KiCadLib/__version__.py +0 -1
  8. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/JLC2KiCadLib.py +0 -0
  9. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/__init__.py +0 -0
  10. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/footprint/__init__.py +0 -0
  11. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/footprint/footprint.py +0 -0
  12. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/footprint/footprint_handlers.py +0 -0
  13. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/helper.py +0 -0
  14. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib/symbol/__init__.py +0 -0
  15. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/SOURCES.txt +0 -0
  16. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/dependency_links.txt +0 -0
  17. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/entry_points.txt +0 -0
  18. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/requires.txt +0 -0
  19. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/JLC2KiCadLib.egg-info/top_level.txt +0 -0
  20. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/LICENSE +0 -0
  21. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/README.md +0 -0
  22. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/setup.cfg +0 -0
  23. {JLC2KiCadLib-1.0.31 → jlc2kicadlib-1.0.33}/setup.py +0 -0
@@ -0,0 +1 @@
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 = filename
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
- dirname = os.getcwd().replace("\\", "/").replace("/footprint", "")
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
@@ -34,8 +34,8 @@ def create_symbol(
34
34
  ):
35
35
  class kicad_symbol:
36
36
  drawing = ""
37
- pinNamesHide = "(pin_names hide)"
38
- pinNumbersHide = "(pin_numbers hide)"
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
- kicad_symbol.pinNamesHide = ""
121
- kicad_symbol.pinNumbersHide = ""
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
1
+ Metadata-Version: 2.2
2
2
  Name: JLC2KiCadLib
3
- Version: 1.0.31
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
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: JLC2KiCadLib
3
- Version: 1.0.31
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
 
@@ -1 +0,0 @@
1
- __version__ = "1.0.31"
File without changes
File without changes
File without changes
File without changes