paddockai 0.0.1__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.
paddockai/__init__.py ADDED
@@ -0,0 +1,40 @@
1
+ """paddock: the Python server SDK (design 009#python-sdk).
2
+
3
+ from paddockai import Paddock
4
+
5
+ client = Paddock() # PADDOCK_API_KEY
6
+ agent = client.agents.create(template="code-maintainer@3")
7
+ session = agent.sessions.create(cwd="repos/web")
8
+ session.send("CI failed on main; fix it.")
9
+ with session.stream(after=0) as events:
10
+ for event in events:
11
+ ...
12
+ """
13
+
14
+ from . import types
15
+ from ._async_client import AsyncAgent, AsyncConnector, AsyncPaddock, AsyncSession
16
+ from ._client import Agent, Connector, Paddock, Session
17
+ from ._errors import ConnectionError, PaddockError, TimeoutError
18
+ from ._pagination import AsyncPage, SyncPage
19
+ from ._stream import AsyncStream, Stream
20
+ from ._version import __version__
21
+
22
+ __all__ = [
23
+ "Agent",
24
+ "AsyncAgent",
25
+ "AsyncConnector",
26
+ "AsyncPage",
27
+ "AsyncPaddock",
28
+ "AsyncSession",
29
+ "AsyncStream",
30
+ "ConnectionError",
31
+ "Connector",
32
+ "Paddock",
33
+ "PaddockError",
34
+ "Session",
35
+ "Stream",
36
+ "SyncPage",
37
+ "TimeoutError",
38
+ "__version__",
39
+ "types",
40
+ ]