tryx 0.3.0__cp313-cp313-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.
- tryx/__init__.pyi +3 -0
- tryx/_tryx.cp313-win_amd64.pyd +0 -0
- tryx/backend.py +8 -0
- tryx/backend.pyi +18 -0
- tryx/client.py +8 -0
- tryx/client.pyi +820 -0
- tryx/events.py +8 -0
- tryx/events.pyi +610 -0
- tryx/exceptions.py +27 -0
- tryx/exceptions.pyi +29 -0
- tryx/helpers.py +8 -0
- tryx/helpers.pyi +105 -0
- tryx/py.typed +0 -0
- tryx/tryx.pyi +3 -0
- tryx/types.py +25 -0
- tryx/types.pyi +129 -0
- tryx/wacore.py +8 -0
- tryx/wacore.pyi +113 -0
- tryx/waproto/whatsapp_pb2.py +1846 -0
- tryx/waproto/whatsapp_pb2.pyi +31151 -0
- tryx-0.3.0.dist-info/METADATA +585 -0
- tryx-0.3.0.dist-info/RECORD +25 -0
- tryx-0.3.0.dist-info/WHEEL +4 -0
- tryx-0.3.0.dist-info/licenses/LICENSE +21 -0
- tryx-0.3.0.dist-info/sboms/tryx.cyclonedx.json +9636 -0
tryx/__init__.pyi
ADDED
|
Binary file
|
tryx/backend.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from ._tryx import backend # type: ignore
|
|
2
|
+
|
|
3
|
+
for name in dir(backend): # type: ignore
|
|
4
|
+
obj = getattr(backend, name) # type: ignore
|
|
5
|
+
if isinstance(obj, type):
|
|
6
|
+
globals()[name] = obj
|
|
7
|
+
|
|
8
|
+
__all__ = [name for name in dir(backend) if isinstance(getattr(backend, name), type)] # type: ignore
|
tryx/backend.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Backend interfaces for Tryx runtime state storage."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC
|
|
4
|
+
|
|
5
|
+
class BackendBase(ABC):
|
|
6
|
+
"""Base class for all backend implementations used by Tryx."""
|
|
7
|
+
|
|
8
|
+
class SqliteBackend(BackendBase):
|
|
9
|
+
"""SQLite-backed backend implementation.
|
|
10
|
+
|
|
11
|
+
Use this backend to persist session and app-state data in a local file.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
path: str
|
|
15
|
+
|
|
16
|
+
def __init__(self, path: str) -> None:
|
|
17
|
+
"""Create a SQLite backend bound to a database file path."""
|
|
18
|
+
...
|
tryx/client.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
from ._tryx import client # type: ignore
|
|
2
|
+
|
|
3
|
+
for name in dir(client): # type: ignore
|
|
4
|
+
obj = getattr(client, name) # type: ignore
|
|
5
|
+
if isinstance(obj, type):
|
|
6
|
+
globals()[name] = obj
|
|
7
|
+
|
|
8
|
+
__all__ = [name for name in dir(client) if isinstance(getattr(client, name), type)] # type: ignore
|