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 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
+ ]