muninndb 0.1.0__tar.gz
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.
- muninndb-0.1.0/PKG-INFO +76 -0
- muninndb-0.1.0/README.md +49 -0
- muninndb-0.1.0/muninndb/__init__.py +4 -0
- muninndb-0.1.0/pyproject.toml +41 -0
muninndb-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: muninndb
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: muninndb — alias for muninn-python, the Python SDK for MuninnDB.
|
|
5
|
+
Keywords: memory,database,langchain,ai,llm,cognitive,semantic-search,embeddings,vector-database,agent-memory
|
|
6
|
+
Author-email: MuninnDB <hello@muninndb.com>
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Database
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Requires-Dist: muninn-python==0.1.0
|
|
20
|
+
Requires-Dist: muninn-python[langchain]==0.1.0 ; extra == "langchain"
|
|
21
|
+
Project-URL: Bug Tracker, https://github.com/scrypster/muninndb/issues
|
|
22
|
+
Project-URL: Documentation, https://github.com/scrypster/muninndb/blob/main/sdk/python/README.md
|
|
23
|
+
Project-URL: Homepage, https://muninndb.com
|
|
24
|
+
Project-URL: Repository, https://github.com/scrypster/muninndb
|
|
25
|
+
Provides-Extra: langchain
|
|
26
|
+
|
|
27
|
+
# muninndb
|
|
28
|
+
|
|
29
|
+
`muninndb` is a convenience alias for [`muninn-python`](https://pypi.org/p/muninn-python), the official Python SDK for [MuninnDB](https://muninndb.com).
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pip install muninndb # core SDK
|
|
35
|
+
pip install muninndb[langchain] # + LangChain memory integration
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Both are equivalent to installing `muninn-python` directly. Use whichever name feels more natural.
|
|
39
|
+
|
|
40
|
+
## Quick Start
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import asyncio
|
|
44
|
+
from muninn import MuninnClient
|
|
45
|
+
|
|
46
|
+
async def main():
|
|
47
|
+
async with MuninnClient("http://localhost:8475") as client:
|
|
48
|
+
eid = await client.write(
|
|
49
|
+
vault="default",
|
|
50
|
+
concept="neural plasticity",
|
|
51
|
+
content="The brain's ability to reorganize neural connections.",
|
|
52
|
+
)
|
|
53
|
+
results = await client.activate(vault="default", context=["how does learning work?"])
|
|
54
|
+
for item in results.activations:
|
|
55
|
+
print(f"[{item.score:.2f}] {item.concept}")
|
|
56
|
+
|
|
57
|
+
asyncio.run(main())
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## LangChain Integration
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
from muninn.langchain import MuninnDBMemory
|
|
64
|
+
from langchain.chains import ConversationChain
|
|
65
|
+
from langchain_anthropic import ChatAnthropic
|
|
66
|
+
|
|
67
|
+
memory = MuninnDBMemory(vault="my-agent")
|
|
68
|
+
chain = ConversationChain(
|
|
69
|
+
llm=ChatAnthropic(model="claude-haiku-4-5-20251001"),
|
|
70
|
+
memory=memory,
|
|
71
|
+
)
|
|
72
|
+
chain.predict(input="What did we discuss about the payment service?")
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Full documentation: [sdk/python/README.md](https://github.com/scrypster/muninndb/blob/main/sdk/python/README.md)
|
|
76
|
+
|
muninndb-0.1.0/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# muninndb
|
|
2
|
+
|
|
3
|
+
`muninndb` is a convenience alias for [`muninn-python`](https://pypi.org/p/muninn-python), the official Python SDK for [MuninnDB](https://muninndb.com).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install muninndb # core SDK
|
|
9
|
+
pip install muninndb[langchain] # + LangChain memory integration
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Both are equivalent to installing `muninn-python` directly. Use whichever name feels more natural.
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
```python
|
|
17
|
+
import asyncio
|
|
18
|
+
from muninn import MuninnClient
|
|
19
|
+
|
|
20
|
+
async def main():
|
|
21
|
+
async with MuninnClient("http://localhost:8475") as client:
|
|
22
|
+
eid = await client.write(
|
|
23
|
+
vault="default",
|
|
24
|
+
concept="neural plasticity",
|
|
25
|
+
content="The brain's ability to reorganize neural connections.",
|
|
26
|
+
)
|
|
27
|
+
results = await client.activate(vault="default", context=["how does learning work?"])
|
|
28
|
+
for item in results.activations:
|
|
29
|
+
print(f"[{item.score:.2f}] {item.concept}")
|
|
30
|
+
|
|
31
|
+
asyncio.run(main())
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## LangChain Integration
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from muninn.langchain import MuninnDBMemory
|
|
38
|
+
from langchain.chains import ConversationChain
|
|
39
|
+
from langchain_anthropic import ChatAnthropic
|
|
40
|
+
|
|
41
|
+
memory = MuninnDBMemory(vault="my-agent")
|
|
42
|
+
chain = ConversationChain(
|
|
43
|
+
llm=ChatAnthropic(model="claude-haiku-4-5-20251001"),
|
|
44
|
+
memory=memory,
|
|
45
|
+
)
|
|
46
|
+
chain.predict(input="What did we discuss about the payment service?")
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Full documentation: [sdk/python/README.md](https://github.com/scrypster/muninndb/blob/main/sdk/python/README.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["flit_core>=3.2"]
|
|
3
|
+
build-backend = "flit_core.buildapi"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "muninndb"
|
|
7
|
+
dynamic = ["version", "description"]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
license = { text = "Apache-2.0" }
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [{ name = "MuninnDB", email = "hello@muninndb.com" }]
|
|
12
|
+
keywords = [
|
|
13
|
+
"memory", "database", "langchain", "ai", "llm", "cognitive",
|
|
14
|
+
"semantic-search", "embeddings", "vector-database", "agent-memory",
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: Apache Software License",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Topic :: Database",
|
|
26
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"muninn-python==0.1.0",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.optional-dependencies]
|
|
33
|
+
langchain = [
|
|
34
|
+
"muninn-python[langchain]==0.1.0",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.urls]
|
|
38
|
+
Homepage = "https://muninndb.com"
|
|
39
|
+
Repository = "https://github.com/scrypster/muninndb"
|
|
40
|
+
Documentation = "https://github.com/scrypster/muninndb/blob/main/sdk/python/README.md"
|
|
41
|
+
"Bug Tracker" = "https://github.com/scrypster/muninndb/issues"
|