forked from MemTensor/MemOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
238 lines (204 loc) · 7.15 KB
/
pyproject.toml
File metadata and controls
238 lines (204 loc) · 7.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
[project]
##############################################################################
# Here define the project metadata and dependencies for the MemoryOS package.
##############################################################################
name = "MemoryOS"
version = "2.0.4"
description = "Intelligence Begins with Memory"
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "MemTensor", email = "MemTensor@memtensor.cn"}
]
keywords = [
"memory",
"llm",
"language model",
"memoryOS",
"agent",
"kv cache",
"lora",
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Natural Language :: Chinese (Simplified)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"openai (>=1.77.0,<2.0.0)",
"ollama (>=0.5.0,<0.5.1)",
"transformers (>=4.51.3,<5.0.0)",
"tenacity (>=9.1.2,<10.0.0)", # Error handling and retrying library
"fastapi[all] (>=0.115.12,<0.116.0)", # Web framework for building APIs
"sqlalchemy (>=2.0.41,<3.0.0)", # SQL toolkit
"pymysql (>=1.1.0,<2.0.0)", # MySQL Python driver
"scikit-learn (>=1.7.0,<2.0.0)", # Machine learning
"fastmcp (>=2.10.5,<3.0.0)",
"python-dateutil (>=2.9.0.post0,<3.0.0)",
"prometheus-client (>=0.23.1,<0.24.0)",
"concurrent-log-handler (>=0.9.28,<1.0.0)", # Process-safe rotating file handler
]
[project.urls]
homepage = "https://memos.openmem.net/"
repository = "https://github.com/MemTensor/MemOS"
download = "https://pypi.org/project/MemoryOS/#files"
changelog = "https://github.com/MemTensor/MemOS/releases"
releasenotes = "https://github.com/MemTensor/MemOS/releases"
documentation = "https://memos-docs.openmem.net/home/overview/"
issues = "https://github.com/MemTensor/MemOS/issues"
[project.scripts]
memos = "memos.cli:main"
[project.optional-dependencies]
# These are optional dependencies for various features of MemoryOS.
# Developers install: `poetry install --extras <feature>`. e.g., `poetry install --extras general-mem`
# Users install: `pip install MemoryOS[<feature>]`. e.g., `pip install MemoryOS[general-mem]`
# TreeTextualMemory
tree-mem = [
"neo4j (>=5.28.1,<6.0.0)", # Graph database
"schedule (>=1.2.2,<2.0.0)", # Task scheduling
]
# MemScheduler
mem-scheduler = [
"redis (>=6.2.0,<7.0.0)", # Key-value store
"pika (>=1.3.2,<2.0.0)", # RabbitMQ client
]
# MemUser (MySQL support)
mem-user = [
"pymysql (>=1.1.0,<2.0.0)", # MySQL client for SQLAlchemy
]
# MemReader
mem-reader = [
"chonkie (>=1.0.7,<2.0.0)", # Sentence chunking library
"markitdown[docx,pdf,pptx,xls,xlsx] (>=0.1.1,<0.2.0)", # Markdown parser for various file formats
"langchain-text-splitters (>=1.0.0,<2.0.0)", # markdown chunk for langchain
]
# PreferenceTextMemory
pref-mem = [
"pymilvus (>=2.5.12,<3.0.0)", # Milvus Vector DB
"datasketch (>=1.6.5,<2.0.0)", # MinHash library
]
# SkillMemory
skill-mem = [
"alibabacloud-oss-v2 (>=1.2.2,<1.2.3)",
]
# All optional dependencies
# Allow users to install with `pip install MemoryOS[all]`
all = [
# Exist in the above optional groups
"neo4j (>=5.28.1,<6.0.0)",
"schedule (>=1.2.2,<2.0.0)",
"redis (>=6.2.0,<7.0.0)",
"pika (>=1.3.2,<2.0.0)",
"pymysql (>=1.1.0,<2.0.0)",
"chonkie (>=1.0.7,<2.0.0)",
"langchain-text-splitters (>=1.0.0,<2.0.0)",
"markitdown[docx,pdf,pptx,xls,xlsx] (>=0.1.1,<0.2.0)",
"pymilvus (>=2.6.1,<3.0.0)",
"datasketch (>=1.6.5,<2.0.0)",
"jieba (>=0.38.1,<0.42.1)",
"rank-bm25 (>=0.2.2)",
"cachetools (>=6.0.0)",
# NOT exist in the above optional groups
# Because they are either huge-size dependencies or infrequently used dependencies.
# We kindof don't want users to install them.
"torch (>=2.7.1,<3.0.0)",
"sentence-transformers (>=4.1.0,<5.0.0)",
"qdrant-client (>=1.16.0,<2.0.0)",
"volcengine-python-sdk (>=4.0.4,<5.0.0)",
"nltk (>=3.9.1,<4.0.0)",
"rake-nltk (>=1.0.6,<1.1.0)",
"alibabacloud-oss-v2 (>=1.2.2,<1.2.3)",
# Uncategorized dependencies
]
[build-system]
##############################################################################
# Python package build system requirements.
##############################################################################
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
##############################################################################
# Here mainly define dependencies for development, testing, and evaluation.
# These dependencies will NOT be included in the MemoryOS package itself.
# They will be installed when you run `poetry install --with dev,test,eval`.
#
# More about version specifiers (e.g. "^0.1.0" or ">=0.1.0,<0.2.0"):
# https://python-poetry.org/docs/dependency-specification#caret-requirements
##############################################################################
packages = [{include = "memos", from = "src"}]
requires-poetry = ">=2.0"
dependencies = { "python" = ">=3.10,<4.0" }
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.2.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.3.5"
pytest-asyncio = "^0.23.5"
ruff = "^0.11.8"
[tool.poetry.group.eval]
optional = true
[tool.poetry.group.eval.dependencies]
dotenv = "^0.9.9"
mem0ai = "^0.1.109"
zep-cloud = "^2.15.0"
rouge-score = "^0.1.2"
nltk = "^3.9.1"
bert-score = "^0.3.13"
scipy = "^1.10.1"
python-dotenv = "^1.1.1"
langgraph = "^0.5.1"
[tool.poetry.group.mem-user.dependencies]
pymysql = "^1.1.2"
[[tool.poetry.source]]
name = "mirrors"
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
priority = "supplemental"
[tool.pytest.ini_options]
##############################################################################
# PyTest settings for running tests/
##############################################################################
asyncio_mode = "auto"
pythonpath = "src"
filterwarnings = [
"ignore::DeprecationWarning:qdrant_client.*",
]
[tool.ruff]
##############################################################################
# Ruff is a fast Python linter and formatter.
##############################################################################
fix = true
line-length = 100
target-version = "py310"
lint.extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
lint.ignore = [
"RUF001", # ambiguous-unicode-character-string
"PGH003", # blanket-type-ignore
]
lint.isort.lines-between-types = 1
lint.isort.lines-after-imports = 2