swauto 0.0.1__tar.gz → 0.0.6__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.
- {swauto-0.0.1 → swauto-0.0.6}/PKG-INFO +4 -5
- {swauto-0.0.1 → swauto-0.0.6}/pyproject.toml +8 -4
- swauto-0.0.6/src/swauto/__init__.py +3 -0
- swauto-0.0.6/src/swauto/_dotnet/SWAutomation.Core.dll +0 -0
- swauto-0.0.6/src/swauto/sw.py +18 -0
- {swauto-0.0.1 → swauto-0.0.6}/src/swauto.egg-info/PKG-INFO +4 -5
- {swauto-0.0.1 → swauto-0.0.6}/src/swauto.egg-info/SOURCES.txt +4 -2
- swauto-0.0.6/src/swauto.egg-info/requires.txt +1 -0
- swauto-0.0.1/README.md +0 -1
- swauto-0.0.1/src/swauto/__init__.py +0 -2
- {swauto-0.0.1 → swauto-0.0.6}/setup.cfg +0 -0
- {swauto-0.0.1 → swauto-0.0.6}/src/swauto.egg-info/dependency_links.txt +0 -0
- {swauto-0.0.1 → swauto-0.0.6}/src/swauto.egg-info/top_level.txt +0 -0
|
@@ -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
|
|
@@ -4,15 +4,19 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "swauto"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.6"
|
|
8
8
|
description = "Python interface for SolidWorks automation"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.12,<3.14"
|
|
11
11
|
license = {text = "MIT"}
|
|
12
|
-
authors = [{name = "
|
|
12
|
+
authors = [{name = "Malacai Hiebert"}]
|
|
13
|
+
dependencies = ["pythonnet==3.0.5"]
|
|
13
14
|
|
|
14
15
|
[tool.setuptools]
|
|
15
16
|
package-dir = {"" = "src"}
|
|
16
17
|
|
|
18
|
+
[tool.setuptools.package-data]
|
|
19
|
+
swauto = ["_dotnet/*.dll"]
|
|
20
|
+
|
|
17
21
|
[tool.setuptools.packages.find]
|
|
18
|
-
where = ["src"]
|
|
22
|
+
where = ["src"]
|
|
Binary file
|
|
@@ -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
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
README.md
|
|
2
1
|
pyproject.toml
|
|
3
2
|
src/swauto/__init__.py
|
|
3
|
+
src/swauto/sw.py
|
|
4
4
|
src/swauto.egg-info/PKG-INFO
|
|
5
5
|
src/swauto.egg-info/SOURCES.txt
|
|
6
6
|
src/swauto.egg-info/dependency_links.txt
|
|
7
|
-
src/swauto.egg-info/
|
|
7
|
+
src/swauto.egg-info/requires.txt
|
|
8
|
+
src/swauto.egg-info/top_level.txt
|
|
9
|
+
src/swauto/_dotnet/SWAutomation.Core.dll
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pythonnet==3.0.5
|
swauto-0.0.1/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# swauto
|
|
File without changes
|
|
File without changes
|
|
File without changes
|