basic-memory 0.0.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.
Potentially problematic release.
This version of basic-memory might be problematic. Click here for more details.
- basic_memory/__init__.py +3 -0
- basic_memory/api/__init__.py +4 -0
- basic_memory/api/app.py +42 -0
- basic_memory/api/routers/__init__.py +8 -0
- basic_memory/api/routers/knowledge_router.py +168 -0
- basic_memory/api/routers/memory_router.py +123 -0
- basic_memory/api/routers/resource_router.py +34 -0
- basic_memory/api/routers/search_router.py +34 -0
- basic_memory/cli/__init__.py +1 -0
- basic_memory/cli/app.py +4 -0
- basic_memory/cli/commands/__init__.py +9 -0
- basic_memory/cli/commands/init.py +38 -0
- basic_memory/cli/commands/status.py +152 -0
- basic_memory/cli/commands/sync.py +254 -0
- basic_memory/cli/main.py +48 -0
- basic_memory/config.py +53 -0
- basic_memory/db.py +135 -0
- basic_memory/deps.py +182 -0
- basic_memory/file_utils.py +248 -0
- basic_memory/markdown/__init__.py +19 -0
- basic_memory/markdown/entity_parser.py +137 -0
- basic_memory/markdown/markdown_processor.py +153 -0
- basic_memory/markdown/plugins.py +236 -0
- basic_memory/markdown/schemas.py +73 -0
- basic_memory/markdown/utils.py +144 -0
- basic_memory/mcp/__init__.py +1 -0
- basic_memory/mcp/async_client.py +10 -0
- basic_memory/mcp/main.py +21 -0
- basic_memory/mcp/server.py +39 -0
- basic_memory/mcp/tools/__init__.py +34 -0
- basic_memory/mcp/tools/ai_edit.py +84 -0
- basic_memory/mcp/tools/knowledge.py +56 -0
- basic_memory/mcp/tools/memory.py +142 -0
- basic_memory/mcp/tools/notes.py +122 -0
- basic_memory/mcp/tools/search.py +28 -0
- basic_memory/mcp/tools/utils.py +154 -0
- basic_memory/models/__init__.py +12 -0
- basic_memory/models/base.py +9 -0
- basic_memory/models/knowledge.py +204 -0
- basic_memory/models/search.py +34 -0
- basic_memory/repository/__init__.py +7 -0
- basic_memory/repository/entity_repository.py +156 -0
- basic_memory/repository/observation_repository.py +40 -0
- basic_memory/repository/relation_repository.py +78 -0
- basic_memory/repository/repository.py +303 -0
- basic_memory/repository/search_repository.py +259 -0
- basic_memory/schemas/__init__.py +73 -0
- basic_memory/schemas/base.py +216 -0
- basic_memory/schemas/delete.py +38 -0
- basic_memory/schemas/discovery.py +25 -0
- basic_memory/schemas/memory.py +111 -0
- basic_memory/schemas/request.py +77 -0
- basic_memory/schemas/response.py +220 -0
- basic_memory/schemas/search.py +117 -0
- basic_memory/services/__init__.py +11 -0
- basic_memory/services/context_service.py +274 -0
- basic_memory/services/entity_service.py +281 -0
- basic_memory/services/exceptions.py +15 -0
- basic_memory/services/file_service.py +213 -0
- basic_memory/services/link_resolver.py +126 -0
- basic_memory/services/search_service.py +218 -0
- basic_memory/services/service.py +36 -0
- basic_memory/sync/__init__.py +5 -0
- basic_memory/sync/file_change_scanner.py +162 -0
- basic_memory/sync/sync_service.py +140 -0
- basic_memory/sync/utils.py +66 -0
- basic_memory/sync/watch_service.py +197 -0
- basic_memory/utils.py +78 -0
- basic_memory-0.0.0.dist-info/METADATA +71 -0
- basic_memory-0.0.0.dist-info/RECORD +73 -0
- basic_memory-0.0.0.dist-info/WHEEL +4 -0
- basic_memory-0.0.0.dist-info/entry_points.txt +2 -0
- basic_memory-0.0.0.dist-info/licenses/LICENSE +661 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: basic-memory
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: Local-first knowledge management combining Zettelkasten with knowledge graphs
|
|
5
|
+
Project-URL: Homepage, https://github.com/basicmachines-co/basic-memory
|
|
6
|
+
Project-URL: Repository, https://github.com/basicmachines-co/basic-memory
|
|
7
|
+
Project-URL: Documentation, https://github.com/basicmachines-co/basic-memory#readme
|
|
8
|
+
Author-email: Basic Machines <hello@basic-machines.co>
|
|
9
|
+
License: AGPL-3.0-or-later
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Python: >=3.12.1
|
|
12
|
+
Requires-Dist: aiosqlite>=0.20.0
|
|
13
|
+
Requires-Dist: basic-foundation
|
|
14
|
+
Requires-Dist: dateparser>=1.2.0
|
|
15
|
+
Requires-Dist: greenlet>=3.1.1
|
|
16
|
+
Requires-Dist: icecream>=2.1.3
|
|
17
|
+
Requires-Dist: loguru>=0.7.3
|
|
18
|
+
Requires-Dist: markdown-it-py>=3.0.0
|
|
19
|
+
Requires-Dist: mcp>=1.2.0
|
|
20
|
+
Requires-Dist: pydantic-settings>=2.6.1
|
|
21
|
+
Requires-Dist: pydantic[email,timezone]>=2.10.3
|
|
22
|
+
Requires-Dist: pyright>=1.1.390
|
|
23
|
+
Requires-Dist: python-frontmatter>=1.1.0
|
|
24
|
+
Requires-Dist: pyyaml>=6.0.1
|
|
25
|
+
Requires-Dist: rich>=13.9.4
|
|
26
|
+
Requires-Dist: sqlalchemy>=2.0.0
|
|
27
|
+
Requires-Dist: typer>=0.9.0
|
|
28
|
+
Requires-Dist: unidecode>=1.3.8
|
|
29
|
+
Requires-Dist: watchfiles>=1.0.4
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest-mock>=3.12.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest>=8.3.4; extra == 'dev'
|
|
35
|
+
Requires-Dist: ruff>=0.1.6; extra == 'dev'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
# Basic Memory
|
|
39
|
+
|
|
40
|
+
> Local-first knowledge management combining Zettelkasten with knowledge graphs.
|
|
41
|
+
|
|
42
|
+
Basic Memory helps you capture and explore information the way your brain naturally works - across multiple dimensions and perspectives. Built on open standards and powered by proven technology, it's ready for the future of human-AI collaboration.
|
|
43
|
+
|
|
44
|
+
## Features
|
|
45
|
+
|
|
46
|
+
- Local-first design - your files stay yours
|
|
47
|
+
- Knowledge graph with natural relations
|
|
48
|
+
- Markdown files with automatic parsing
|
|
49
|
+
- Rich context building and search
|
|
50
|
+
- Native AI integration via MCP protocol
|
|
51
|
+
|
|
52
|
+
## Quick Start
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pip install basic-memory
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Initialize a new knowledge base:
|
|
59
|
+
```bash
|
|
60
|
+
basic-memory init my-knowledge
|
|
61
|
+
cd my-knowledge
|
|
62
|
+
basic-memory status
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Contributing
|
|
66
|
+
|
|
67
|
+
Basic Memory is open source (AGPL-3.0) and welcomes contributions. See our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
AGPL-3.0 - See [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
basic_memory/__init__.py,sha256=5AdJrNglWu8gvlZPWZDKmrYbpOaJJ7KcdBfSQxBl3A8,121
|
|
2
|
+
basic_memory/config.py,sha256=_faKNgRMHyWU6oSUnE_grVCrRT4uRRBjAy_zRSDAxfg,1492
|
|
3
|
+
basic_memory/db.py,sha256=NDpOTPxlVcjWEOeNxZGXqxEBoW-kdhjdsgQP9BTv29c,4092
|
|
4
|
+
basic_memory/deps.py,sha256=YeDwqEmqUTPOc-JdItE1NEj3iunB2j6thYotweHXq98,5316
|
|
5
|
+
basic_memory/file_utils.py,sha256=_7DHpWpsPcaeuft4NXTzYYQSJ79ISF8NlTSUBUapLB8,6722
|
|
6
|
+
basic_memory/utils.py,sha256=FCXR_jQxr8qBtHSHkWoESEvSVwPiWjn5xfAPmyqYW0g,2321
|
|
7
|
+
basic_memory/api/__init__.py,sha256=2y71HVPvGBIjx2tTd6nsSGeAFuFEyNn2MZ9IcqIs1hY,70
|
|
8
|
+
basic_memory/api/app.py,sha256=fCPqcf614PyvIhtv0cfDpJ63nEBe1-gnA7Crel56ZRU,1192
|
|
9
|
+
basic_memory/api/routers/__init__.py,sha256=iviQ1QVYobC8huUuyRhEjcA0BDjrOUm1lXHXhJkxP9A,239
|
|
10
|
+
basic_memory/api/routers/knowledge_router.py,sha256=9t-ogIL8HVtGi6_eM-OAM8yY5VZZK-goSKSqbG9GLvI,5756
|
|
11
|
+
basic_memory/api/routers/memory_router.py,sha256=HksfZpXlvNQtzFsBmbICZj-xbo_viSdTMBiGCWHqV2g,4222
|
|
12
|
+
basic_memory/api/routers/resource_router.py,sha256=_Gp5HSJr-L-GUkQKbEP2bAZvCY8Smd-sBNWpGyqXS4c,1056
|
|
13
|
+
basic_memory/api/routers/search_router.py,sha256=eKUibpJGuniLgTxXI_C28CjMrSNoXIrEwrlTBTkf1y4,1168
|
|
14
|
+
basic_memory/cli/__init__.py,sha256=Hs6p69LnxlgO41EYFY0zMDCsbB3QxvPH9duNZz0hROs,32
|
|
15
|
+
basic_memory/cli/app.py,sha256=gevKtdiAIlsJCbvegd1Pt7NID96Bq7yM1Hv2irHS0tY,35
|
|
16
|
+
basic_memory/cli/main.py,sha256=u6AYeI17mEZJKTfTwGG_0FG52usQ9A9Uhh8o2wcTjmA,1140
|
|
17
|
+
basic_memory/cli/commands/__init__.py,sha256=s_Ye8jpeq-yDxwCTsbxygvqi2eI-wybJVcHE0fOjJGY,98
|
|
18
|
+
basic_memory/cli/commands/init.py,sha256=5UmOasPd_65Evcw8QYWNZcrViBhWhrlFWCXOHtlrA1E,1189
|
|
19
|
+
basic_memory/cli/commands/status.py,sha256=Dqp8mGR7vFpB-bVkIBRKvWeIkfDN7KyYaAKdtoAEYY4,5691
|
|
20
|
+
basic_memory/cli/commands/sync.py,sha256=ycyD9yuZdKrtSd6L6sPQU1N3ang9FDIt5w-BHpqoD-c,8482
|
|
21
|
+
basic_memory/markdown/__init__.py,sha256=JQlB99HSNSwhZgYmDgBJantvMXDjsKHvd_qRkyRkkzY,405
|
|
22
|
+
basic_memory/markdown/entity_parser.py,sha256=M39vRYxqYSLWe_0yhrGeqtmDDM6LCdvbKxmPUQfg1XQ,4434
|
|
23
|
+
basic_memory/markdown/markdown_processor.py,sha256=dUhp1pv1yfJCbX7Rx2MCtw0kinfn1zr5tyEjXiKe3IM,5633
|
|
24
|
+
basic_memory/markdown/plugins.py,sha256=mQ80nrnjucSgVqaza7hALf7k9xE19TYyR5aO5CZ1HBg,7625
|
|
25
|
+
basic_memory/markdown/schemas.py,sha256=IKLmOvyySjE9LuVQvg_hTKL3PdpE3rHgwSQAqsNB0Xg,1940
|
|
26
|
+
basic_memory/markdown/utils.py,sha256=jNSjpeDD2mBccbV3w5WXv6fzuiAKurU2jvT_vFOYbys,5234
|
|
27
|
+
basic_memory/mcp/__init__.py,sha256=UioEZETQ-1lEfbqi1XirraBaiHdMHDX6JBpRZbAXTYY,34
|
|
28
|
+
basic_memory/mcp/async_client.py,sha256=J4eSKs4VMef1AoWBHOwvzjS6kzfNntjg6cPxPpw56RQ,238
|
|
29
|
+
basic_memory/mcp/main.py,sha256=X27Y4DvoLDkhnIy6wixdrtM_Jo0ShPqhMEBpmnTxPmM,503
|
|
30
|
+
basic_memory/mcp/server.py,sha256=nSCgu7SCTMviZDi02FOD6PEsZumg1ZtTwvmpwIuxeXg,926
|
|
31
|
+
basic_memory/mcp/tools/__init__.py,sha256=j3XpNTu-f0IeOFfo6ZNNtl728fzNwsN4w_kZQiMIE4U,820
|
|
32
|
+
basic_memory/mcp/tools/ai_edit.py,sha256=0a6GTqJZdDyYhfecT23pP1VPPvk5bfPRX8bCFN_SKoE,2531
|
|
33
|
+
basic_memory/mcp/tools/knowledge.py,sha256=OX-4Sz7Ox1so4USwuhf1iAL-I6bzzPgE5U0hajs-5Cc,2010
|
|
34
|
+
basic_memory/mcp/tools/memory.py,sha256=0Z8_zNHiuxg7fdkmSw1wNOx1Wh8P7nBI4ZZQwvt3LQE,5096
|
|
35
|
+
basic_memory/mcp/tools/notes.py,sha256=4GKnhDK53UkeZtpZENQ9id9XdemKxLzGwMQJeuX-Kok,3772
|
|
36
|
+
basic_memory/mcp/tools/search.py,sha256=ViYLp-yGTxOEJli3PyE_JiBP3JXQ0fs-XLS09Sl7hoc,1103
|
|
37
|
+
basic_memory/mcp/tools/utils.py,sha256=9sOE_zW-kr7zbwRRlLAhR5cCmcGfuewNsUtiInXULnk,4857
|
|
38
|
+
basic_memory/models/__init__.py,sha256=ZxS_KMKfeuAfzJo1C3LLmIGHBPd77o1I5qyx9zTqf9A,278
|
|
39
|
+
basic_memory/models/base.py,sha256=UGG9aKXfg8Eon9oGzAbvXFgM6uQp21-Fs1fIJNy4U_0,223
|
|
40
|
+
basic_memory/models/knowledge.py,sha256=F2vfKalqfqumUlASN22QnPzaOym5MahzZ3sAACE3y9Y,6792
|
|
41
|
+
basic_memory/models/search.py,sha256=iO1sgBiS1aVCts2EGfjys0i09-1_snxXs2pZNfK6Ojw,1163
|
|
42
|
+
basic_memory/repository/__init__.py,sha256=Q1T0Qn1AcyUWLpPrFcfdEa3A1xUkAzt63tgv5U59DpI,241
|
|
43
|
+
basic_memory/repository/entity_repository.py,sha256=Nn_ZS4K2cakMD_LVGJfGqQ-0SZ2W-dI_W8wfj-LM-ZQ,6008
|
|
44
|
+
basic_memory/repository/observation_repository.py,sha256=BOcy4wARqCXu-thYyt7mPxt2A2C8TW0le3s_X9wrK6I,1701
|
|
45
|
+
basic_memory/repository/relation_repository.py,sha256=mHZj3Uhapm9OG7NyTldIspJ7BdNKXKKjJD1lextQKGk,3234
|
|
46
|
+
basic_memory/repository/repository.py,sha256=UCMy7VXjtkxkKCI3ZuQm4_RFRKJT0NBDhEvt_ueqjzc,12945
|
|
47
|
+
basic_memory/repository/search_repository.py,sha256=b4mV0MA1EgCzfO0Q4PI2-kh-POW32O0QG2ReYgNkShQ,9190
|
|
48
|
+
basic_memory/schemas/__init__.py,sha256=m1Pou5ue1BNmHBm13WPBf3BJKKPsLaIYVnnGmgs2iwo,1618
|
|
49
|
+
basic_memory/schemas/base.py,sha256=9--f_lOqi5XGyzWOAi3wlPRwIh-RyYVIASQXqTsS0Ps,6611
|
|
50
|
+
basic_memory/schemas/delete.py,sha256=_tSyTHAujVxkSUy5Cu3s6yHw-n3JmokjeMR6gZqJhG4,1198
|
|
51
|
+
basic_memory/schemas/discovery.py,sha256=KtumdsujakYrl2rpX3bgIN-sK3826Cy_58nhq3vnl78,872
|
|
52
|
+
basic_memory/schemas/memory.py,sha256=y8oNys2e2NiiXmczqY21fSGEd3MOFBCSY3uiFxtaObQ,2818
|
|
53
|
+
basic_memory/schemas/request.py,sha256=Cpz0cR5P-QdR9PAUapGfAxXhdooeVCH6X2G7MoOWMvw,2006
|
|
54
|
+
basic_memory/schemas/response.py,sha256=7oWk3GDS626pdgN2MF__tp9c7WU-_9K7hs1F2quB65Y,6226
|
|
55
|
+
basic_memory/schemas/search.py,sha256=7xlUc0HE13-v7iKy3eFs0IKasGbXVxCaq8GZ8qiUBTQ,3395
|
|
56
|
+
basic_memory/services/__init__.py,sha256=zEhDyV6-hCbx3Y3axmbnD0iYk-l0sbQMVV9f-3wQ8is,212
|
|
57
|
+
basic_memory/services/context_service.py,sha256=CXoQEFTHP6ftRauiIsNB300dDGeuGAJmxwBwUw3D4gs,8077
|
|
58
|
+
basic_memory/services/entity_service.py,sha256=zOU7fWBAOd8Yi0S_7FONDLK3natIRxnoswi6axivsJo,10642
|
|
59
|
+
basic_memory/services/exceptions.py,sha256=Z9cizi05f7QBY4HX6c0ywfzKk0_sie3283CP7gzy-dY,287
|
|
60
|
+
basic_memory/services/file_service.py,sha256=8iMjEGNdKDiFgJB-Eo5wzTfcnCJ5-plO4ZSVecHYcI0,7191
|
|
61
|
+
basic_memory/services/link_resolver.py,sha256=0OiWN8_m2niVBi5oUNss5nRFqIUTa1Qe1LmH8-oY64Y,4492
|
|
62
|
+
basic_memory/services/search_service.py,sha256=yLXYs-PNimELM_5E44O25-fbD4PDzISsAwCm2dNPyQI,7842
|
|
63
|
+
basic_memory/services/service.py,sha256=oHsHKMTC2ojRsxeNdnC4nA5YdTL72VYjDzWI_dbmzyA,1134
|
|
64
|
+
basic_memory/sync/__init__.py,sha256=5BzfbvY-DKi-gswcjNzVqtNj4I0yXZ82CaupFiPihws,138
|
|
65
|
+
basic_memory/sync/file_change_scanner.py,sha256=x2xFaxCzPy5seNLqK-TcN106U2--UKvAR7qoBeq8M84,5919
|
|
66
|
+
basic_memory/sync/sync_service.py,sha256=ay8IbUOM_40QbUNJ6Ar5uIZCQbUmyqCXE2ThGVhqrtY,6010
|
|
67
|
+
basic_memory/sync/utils.py,sha256=6P5-dvR5X-lA-BE3IZOzoC54uyiq9c_p9figRKaPq5E,2453
|
|
68
|
+
basic_memory/sync/watch_service.py,sha256=HIronKujbBTbbosz0HAqLBLkP5IK3zH6gQKoTCrrA9o,6744
|
|
69
|
+
basic_memory-0.0.0.dist-info/METADATA,sha256=SUgx7QVHSq0yGhFEPtvBhEXyuLGX9gWNmxFJaT8Cv60,2335
|
|
70
|
+
basic_memory-0.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
71
|
+
basic_memory-0.0.0.dist-info/entry_points.txt,sha256=IDQa_VmVTzmvMrpnjhEfM0S3F--XsVGEj3MpdJfuo-Q,59
|
|
72
|
+
basic_memory-0.0.0.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
73
|
+
basic_memory-0.0.0.dist-info/RECORD,,
|