ryucad 0.9.2rc4__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.
- ryucad/__init__.py +76 -0
- ryucad/_codes.py +756 -0
- ryucad/_errors.py +165 -0
- ryucad/_find.py +66 -0
- ryucad/_meta.py +9 -0
- ryucad/_session.py +391 -0
- ryucad/py.typed +0 -0
- ryucad-0.9.2rc4.dist-info/METADATA +121 -0
- ryucad-0.9.2rc4.dist-info/RECORD +12 -0
- ryucad-0.9.2rc4.dist-info/WHEEL +4 -0
- ryucad-0.9.2rc4.dist-info/licenses/LICENSE +201 -0
- ryucad-0.9.2rc4.dist-info/licenses/NOTICE +25 -0
ryucad/__init__.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""The official Python client for ryucad: one ``ryucad session --stdio``
|
|
2
|
+
per :func:`connect`, ryucad's requests by name, typed errors.
|
|
3
|
+
|
|
4
|
+
import ryucad
|
|
5
|
+
|
|
6
|
+
with ryucad.connect("~/work/gearbox") as cad:
|
|
7
|
+
cad.batch([ryucad.op("part.ensure", part="shaft", features=[...])], prune=True)
|
|
8
|
+
|
|
9
|
+
Methods, params and answers are the protocol's, as ``ryucad <command>
|
|
10
|
+
--help`` and docs/claude/ryucad-scripting.md name them.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from ._codes import EXIT, Code
|
|
14
|
+
from ._errors import (
|
|
15
|
+
AssemblyOverconstrained,
|
|
16
|
+
Cancelled,
|
|
17
|
+
Conflict,
|
|
18
|
+
DaemonError,
|
|
19
|
+
Error,
|
|
20
|
+
ExternalError,
|
|
21
|
+
FixableError,
|
|
22
|
+
HasDependents,
|
|
23
|
+
Incompatible,
|
|
24
|
+
NotFound,
|
|
25
|
+
NotInstalled,
|
|
26
|
+
ProjectError,
|
|
27
|
+
ProtocolError,
|
|
28
|
+
RebuildFailed,
|
|
29
|
+
RyucadError,
|
|
30
|
+
SessionClosed,
|
|
31
|
+
UsageError,
|
|
32
|
+
)
|
|
33
|
+
from ._find import find
|
|
34
|
+
from ._meta import VERSION as __version__
|
|
35
|
+
from ._session import (
|
|
36
|
+
Answer,
|
|
37
|
+
BatchAnswer,
|
|
38
|
+
EnsureAnswer,
|
|
39
|
+
PartStatus,
|
|
40
|
+
Session,
|
|
41
|
+
Status,
|
|
42
|
+
connect,
|
|
43
|
+
op,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
"Answer",
|
|
48
|
+
"BatchAnswer",
|
|
49
|
+
"EnsureAnswer",
|
|
50
|
+
"PartStatus",
|
|
51
|
+
"Status",
|
|
52
|
+
"op",
|
|
53
|
+
"Session",
|
|
54
|
+
"connect",
|
|
55
|
+
"Code",
|
|
56
|
+
"EXIT",
|
|
57
|
+
"AssemblyOverconstrained",
|
|
58
|
+
"Cancelled",
|
|
59
|
+
"Conflict",
|
|
60
|
+
"DaemonError",
|
|
61
|
+
"Error",
|
|
62
|
+
"ExternalError",
|
|
63
|
+
"FixableError",
|
|
64
|
+
"HasDependents",
|
|
65
|
+
"Incompatible",
|
|
66
|
+
"NotFound",
|
|
67
|
+
"NotInstalled",
|
|
68
|
+
"ProjectError",
|
|
69
|
+
"ProtocolError",
|
|
70
|
+
"RebuildFailed",
|
|
71
|
+
"RyucadError",
|
|
72
|
+
"SessionClosed",
|
|
73
|
+
"UsageError",
|
|
74
|
+
"__version__",
|
|
75
|
+
"find",
|
|
76
|
+
]
|