theta-py 0.0.2__py3-none-win_amd64.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.
- theta_py/__init__.py +42 -0
- theta_py/_codegen.py +668 -0
- theta_py/_generated/__init__.py +6 -0
- theta_py/_generated/outcomes.py +155 -0
- theta_py/_generated/verbs.py +990 -0
- theta_py/_version.py +6 -0
- theta_py/errors.py +49 -0
- theta_py/install.py +57 -0
- theta_py/runner.py +152 -0
- theta_py-0.0.2.data/scripts/theta.exe +0 -0
- theta_py-0.0.2.dist-info/METADATA +101 -0
- theta_py-0.0.2.dist-info/RECORD +15 -0
- theta_py-0.0.2.dist-info/WHEEL +4 -0
- theta_py-0.0.2.dist-info/licenses/LICENSE-APACHE +202 -0
- theta_py-0.0.2.dist-info/licenses/LICENSE-MIT +18 -0
theta_py/__init__.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Python bindings for the theta CLI.
|
|
2
|
+
|
|
3
|
+
from theta_py import theta
|
|
4
|
+
theta.cast.to("claude-code")
|
|
5
|
+
theta.init(name="agent")
|
|
6
|
+
|
|
7
|
+
from theta_py import cast_to, init
|
|
8
|
+
cast_to("claude-code")
|
|
9
|
+
init(name="agent")
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from typing import Any
|
|
13
|
+
|
|
14
|
+
from theta_py._version import THETA_VERSION
|
|
15
|
+
from theta_py.errors import (
|
|
16
|
+
ThetaBinaryNotFoundError,
|
|
17
|
+
ThetaCommandError,
|
|
18
|
+
ThetaError,
|
|
19
|
+
ThetaInvocationError,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
__version__ = THETA_VERSION
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def __getattr__(name: str) -> Any:
|
|
26
|
+
from theta_py._generated import verbs
|
|
27
|
+
|
|
28
|
+
if name == "theta":
|
|
29
|
+
return verbs._get_theta()
|
|
30
|
+
if hasattr(verbs, name):
|
|
31
|
+
return getattr(verbs, name)
|
|
32
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
__all__ = [
|
|
36
|
+
"THETA_VERSION",
|
|
37
|
+
"Theta",
|
|
38
|
+
"ThetaBinaryNotFoundError",
|
|
39
|
+
"ThetaCommandError",
|
|
40
|
+
"ThetaError",
|
|
41
|
+
"ThetaInvocationError",
|
|
42
|
+
]
|