solidworks_mcp.selftest.environment¶
solidworks_mcp.selftest.environment ¶
The report's environment section: SolidWorks, Python and this package.
Attributes¶
Functions:¶
_package_version ¶
An installed distribution's version, or None when it isn't installed.
read_environment
async
¶
read_environment(adapter: Any, year: int | None, toolsets: tuple[str, ...] = ('all',), mode: str = 'list') -> dict[str, Any]
Describe the setup the selftest ran on.
A value that can't be read is None; nothing here stops the run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
adapter
|
Any
|
The connected adapter. |
required |
year
|
int | None
|
The SolidWorks year the server was started with. |
required |
toolsets
|
tuple[str, ...]
|
The toolsets the user's settings show. |
('all',)
|
mode
|
str
|
The user's tool mode. |
'list'
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
dict[str, Any]: |
dict[str, Any]
|
|
dict[str, Any]
|
many tools those settings list), |
dict[str, Any]
|
|