swauto 0.0.1__py3-none-any.whl → 0.0.6__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.
- swauto/__init__.py +3 -2
- swauto/_dotnet/SWAutomation.Core.dll +0 -0
- swauto/sw.py +18 -0
- {swauto-0.0.1.dist-info → swauto-0.0.6.dist-info}/METADATA +4 -5
- swauto-0.0.6.dist-info/RECORD +7 -0
- swauto-0.0.1.dist-info/RECORD +0 -5
- {swauto-0.0.1.dist-info → swauto-0.0.6.dist-info}/WHEEL +0 -0
- {swauto-0.0.1.dist-info → swauto-0.0.6.dist-info}/top_level.txt +0 -0
swauto/__init__.py
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
from .sw import attach_or_launch
|
|
2
|
+
|
|
3
|
+
__all__ = ["attach_or_launch"]
|
|
Binary file
|
swauto/sw.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
import os
|
|
3
|
+
import clr # pythonnet
|
|
4
|
+
|
|
5
|
+
_DLL_DIR = os.path.join(os.path.dirname(__file__), "_dotnet")
|
|
6
|
+
_DLL_PATH = os.path.join(_DLL_DIR, "SWAutomation.Core.dll")
|
|
7
|
+
|
|
8
|
+
os.environ["PATH"] = _DLL_DIR + os.pathsep + os.environ.get("PATH", "")
|
|
9
|
+
|
|
10
|
+
clr.AddReference(_DLL_PATH)
|
|
11
|
+
|
|
12
|
+
from SWAutomation.Core import SWConnect
|
|
13
|
+
|
|
14
|
+
def attach_or_launch(visible: bool = True):
|
|
15
|
+
"""
|
|
16
|
+
Returns a SolidWorks SldWorks COM object (via C#)
|
|
17
|
+
"""
|
|
18
|
+
return SWConnect.AttachOrLaunch(visible)
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swauto
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Python interface for SolidWorks automation
|
|
5
|
-
Author:
|
|
5
|
+
Author: Malacai Hiebert
|
|
6
6
|
License: MIT
|
|
7
|
-
Requires-Python:
|
|
7
|
+
Requires-Python: <3.14,>=3.12
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
|
-
|
|
10
|
-
# swauto
|
|
9
|
+
Requires-Dist: pythonnet==3.0.5
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
swauto/__init__.py,sha256=JA-eRqeFQHhRRbdLwiVgE2Nv43ZABEcoz6vl6U1EK5E,66
|
|
2
|
+
swauto/sw.py,sha256=Fa0qzetRAWkH6fQiPa_fbi3YYUOg28gpihvs2JDIFVs,502
|
|
3
|
+
swauto/_dotnet/SWAutomation.Core.dll,sha256=QP59TeuZnNjfNSym-tmGZrDpvIC77j3e3jxBiSDM1Nc,5632
|
|
4
|
+
swauto-0.0.6.dist-info/METADATA,sha256=gZw2QCF-BtAXsX6SqecmtcSNYxtDcniTEbGXmN6R6RI,250
|
|
5
|
+
swauto-0.0.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
6
|
+
swauto-0.0.6.dist-info/top_level.txt,sha256=fGWID9bMdcakPh6Jlz3AWNrlHRt0s7g7Z2b1R3tWAsY,7
|
|
7
|
+
swauto-0.0.6.dist-info/RECORD,,
|
swauto-0.0.1.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
swauto/__init__.py,sha256=k1FewXBKA2-5jkZHwziUT1sFiEZTnMq3gD_vcSZ17r8,45
|
|
2
|
-
swauto-0.0.1.dist-info/METADATA,sha256=qq-c1kBlUXe2o4KhkZz7E3BHu6w_vVb-_xL7g3BbKcI,216
|
|
3
|
-
swauto-0.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
4
|
-
swauto-0.0.1.dist-info/top_level.txt,sha256=fGWID9bMdcakPh6Jlz3AWNrlHRt0s7g7Z2b1R3tWAsY,7
|
|
5
|
-
swauto-0.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|