memwal 0.1.0__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.
memwal/__init__.py ADDED
@@ -0,0 +1,113 @@
1
+ """
2
+ memwal — Privacy-first AI memory SDK
3
+
4
+ Ed25519 delegate key auth + server-side TEE processing.
5
+
6
+ Quick start::
7
+
8
+ from memwal import MemWal
9
+
10
+ memwal = MemWal.create(
11
+ key="your-ed25519-private-key-hex",
12
+ account_id="0x-your-account-id",
13
+ )
14
+
15
+ # Async
16
+ result = await memwal.remember("I love coffee")
17
+ matches = await memwal.recall("beverage preferences")
18
+
19
+ # Sync wrapper
20
+ from memwal import MemWalSync
21
+ client = MemWalSync.create(key="...", account_id="0x...")
22
+ result = client.remember("I love coffee")
23
+ """
24
+
25
+ from .client import (
26
+ MemWal,
27
+ MemWalError,
28
+ MemWalRememberJobFailed,
29
+ MemWalRememberJobNotFound,
30
+ MemWalRememberJobTimeout,
31
+ MemWalSync,
32
+ )
33
+ from .middleware import with_memwal_langchain, with_memwal_openai
34
+ from .utils import delegate_key_to_sui_address, delegate_key_to_public_key
35
+ from .types import (
36
+ ENV_PRESETS,
37
+ AnalyzedFact,
38
+ AnalyzeResult,
39
+ AnalyzeWaitResult,
40
+ AskMemory,
41
+ AskResult,
42
+ EmbedResult,
43
+ HealthResult,
44
+ MemWalConfig,
45
+ RecallManualHit,
46
+ RecallManualOptions,
47
+ RecallManualResult,
48
+ RecallMemory,
49
+ RecallResult,
50
+ RememberAcceptedResult,
51
+ RememberBulkAcceptedResult,
52
+ RememberBulkItem,
53
+ RememberBulkItemResult,
54
+ RememberBulkOptions,
55
+ RememberBulkResult,
56
+ RememberBulkStatusItem,
57
+ RememberBulkStatusResult,
58
+ RememberJobStatus,
59
+ RememberManualOptions,
60
+ RememberManualResult,
61
+ RememberResult,
62
+ RestoreResult,
63
+ )
64
+
65
+ # JS-style alias for developers coming from the TypeScript SDK
66
+ withMemWal = with_memwal_langchain
67
+
68
+ __all__ = [
69
+ # Core client
70
+ "MemWal",
71
+ "MemWalSync",
72
+ "MemWalError",
73
+ "MemWalRememberJobFailed",
74
+ "MemWalRememberJobNotFound",
75
+ "MemWalRememberJobTimeout",
76
+ # Delegate key utilities
77
+ "delegate_key_to_sui_address",
78
+ "delegate_key_to_public_key",
79
+ # Middleware
80
+ "with_memwal_langchain",
81
+ "with_memwal_openai",
82
+ "withMemWal",
83
+ # Types
84
+ "MemWalConfig",
85
+ "ENV_PRESETS",
86
+ "AskMemory",
87
+ "AskResult",
88
+ "RememberResult",
89
+ "RememberAcceptedResult",
90
+ "RememberJobStatus",
91
+ "RememberBulkItem",
92
+ "RememberBulkOptions",
93
+ "RememberBulkAcceptedResult",
94
+ "RememberBulkStatusItem",
95
+ "RememberBulkStatusResult",
96
+ "RememberBulkItemResult",
97
+ "RememberBulkResult",
98
+ "RecallResult",
99
+ "RecallMemory",
100
+ "EmbedResult",
101
+ "AnalyzeResult",
102
+ "AnalyzeWaitResult",
103
+ "AnalyzedFact",
104
+ "HealthResult",
105
+ "RestoreResult",
106
+ "RememberManualOptions",
107
+ "RememberManualResult",
108
+ "RecallManualOptions",
109
+ "RecallManualHit",
110
+ "RecallManualResult",
111
+ ]
112
+
113
+ __version__ = "0.1.0"