Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
basic-memory/pyproject.toml at dffc9d58fbc9693e43406f486e3f3a9251462206 · basicmachines-co/basic-memory · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
basicmachines-co
/
basic-memory
Public
Notifications
You must be signed in to change notification settings
Fork
275
Star
3.9k
Code
Issues
62
Pull requests
4
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
dffc9d58fbc9693e43406f486e3f3a9251462206
Breadcrumbs
basic-memory
/
pyproject.toml
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
196 lines (179 loc) · 6.6 KB
dffc9d5
Breadcrumbs
basic-memory
/
pyproject.toml
Copy path
Top
File metadata and controls
Code
Blame
196 lines (179 loc) · 6.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
[
project
]
name
=
"
basic-memory
"
dynamic
= [
"
version
"
]
description
=
"
Local-first knowledge management combining Zettelkasten with knowledge graphs
"
readme
=
"
README.md
"
requires-python
=
"
>=3.12
"
license
= {
text
=
"
AGPL-3.0-or-later
"
}
authors
= [
{
name
=
"
Basic Machines
"
,
email
=
"
hello@basic-machines.co
"
}
]
dependencies
= [
"
sqlalchemy>=2.0.0
"
,
"
pyyaml>=6.0.1
"
,
"
typer>=0.9.0
"
,
"
aiosqlite>=0.20.0
"
,
"
greenlet>=3.1.1
"
,
"
pydantic[email,timezone]>=2.12.0
"
,
"
mcp>=2,<3
"
,
"
pydantic-settings>=2.6.1
"
,
"
loguru>=0.7.3
"
,
"
pyright>=1.1.390
"
,
"
markdown-it-py>=3.0.0
"
,
"
python-frontmatter>=1.1.0
"
,
"
rich>=13.9.4
"
,
"
unidecode>=1.3.8
"
,
"
dateparser>=1.2.0
"
,
"
watchfiles>=1.0.4
"
,
"
fastapi[standard]>=0.136.1
"
,
"
alembic>=1.14.1
"
,
"
pillow>=11.1.0
"
,
"
pybars3>=0.9.7
"
,
"
fastmcp==4.0.0b1
"
,
"
pyjwt>=2.10.1
"
,
"
python-dotenv>=1.1.0
"
,
"
pytest-aio>=1.9.0
"
,
"
aiofiles>=24.1.0
"
,
"
asyncpg>=0.30.0
"
,
"
nest-asyncio>=1.6.0
"
,
#
For Alembic migrations with Postgres
"
pytest-asyncio>=1.2.0
"
,
"
psycopg==3.3.1
"
,
"
mdformat>=0.7.22
"
,
"
mdformat-gfm>=0.3.7
"
,
"
mdformat-frontmatter>=2.0.8
"
,
"
sniffio>=1.3.1
"
,
"
anyio>=4.10.0
"
,
"
httpx>=0.28.0
"
,
"
fastembed>=0.7.4
"
,
"
sqlite-vec>=0.1.6
"
,
"
openai>=1.100.2
"
,
#
LiteLLM 1.92 added a Rust bridge whose PyO3 version rejects Python 3.14.
#
Keep the last universal wheel while Basic Memory supports Python 3.14.
"
litellm>=1.60.0,<1.92.0
"
,
"
logfire>=4.19.0
"
,
"
psutil>=5.9.0
"
,
#
uvloop's C event loop has no self._ready.popleft() codepath, so the
#
asyncpg engine-dispose race ("IndexError: pop from an empty deque") that
#
crashes the Postgres backend cannot fire under it. Not available on Windows.
"
uvloop>=0.21.0; sys_platform != 'win32'
"
,
#
Cross-platform advisory file lock (already resolved transitively via
#
huggingface-hub; declared directly since the hook flush path imports it).
#
Serializes concurrent `bm hook flush` runs so a stale sweep can't overwrite
#
an artifact without a sibling flush's just-retired event.
"
filelock>=3.12
"
,
]
[
project
.
optional-dependencies
]
milvus
= [
"
pymilvus>=3.0.0,<4; sys_platform == 'win32'
"
,
"
pymilvus[milvus-lite]>=3.0.0,<4; sys_platform != 'win32'
"
,
]
redis
= [
"
redis>=8.0.0,<9
"
,
]
[
project
.
urls
]
Homepage
=
"
https://github.com/basicmachines-co/basic-memory
"
Repository
=
"
https://github.com/basicmachines-co/basic-memory
"
Documentation
=
"
https://github.com/basicmachines-co/basic-memory#readme
"
[
project
.
scripts
]
basic-memory
=
"
basic_memory.cli.main:app
"
bm
=
"
basic_memory.cli.main:app
"
[
build-system
]
requires
= [
"
hatchling
"
,
"
uv-dynamic-versioning>=0.7.0
"
]
build-backend
=
"
hatchling.build
"
[
tool
.
pytest
.
ini_options
]
pythonpath
= [
"
src
"
,
"
tests
"
]
addopts
=
"
--cov=basic_memory --cov-report term-missing
"
#
plugins/ carries the co-located uv hook-script tests (one per script).
testpaths
= [
"
tests
"
,
"
test-int
"
,
"
plugins
"
]
asyncio_mode
=
"
strict
"
asyncio_default_fixture_loop_scope
=
"
function
"
#
Any test hanging >120s fails with a stack dump instead of stalling the CI job
#
until the runner times out (the FastMCP/asyncpg cleanup-hang family).
timeout
=
120
timeout_method
=
"
thread
"
filterwarnings
= [
"
ignore:The @wait_container_is_ready decorator is deprecated.*:DeprecationWarning:testcontainers
\\
.core
\\
.waiting_utils
"
,
"
ignore:The default datetime adapter is deprecated as of Python 3
\\
.12.*:DeprecationWarning:aiosqlite
\\
.core
"
,
"
ignore:codecs
\\
.open
\\
(
\\
) is deprecated
\\
. Use open
\\
(
\\
) instead
\\
.:DeprecationWarning:frontmatter
"
,
"
ignore:Parsing dates involving a day of month without a year specified is ambiguous.*:DeprecationWarning:dateparser
\\
.utils
\\
.strptime
"
,
]
markers
= [
"
benchmark: Performance benchmark tests (deselect with '-m
\"
not benchmark
\"
')
"
,
"
slow: Slow-running tests (deselect with '-m
\"
not slow
\"
')
"
,
"
postgres: Tests that run against Postgres backend (deselect with '-m
\"
not postgres
\"
')
"
,
"
redis: Tests that run against a real Redis server
"
,
"
windows: Windows-specific tests (deselect with '-m
\"
not windows
\"
')
"
,
"
smoke: Fast end-to-end smoke tests for MCP flows
"
,
"
semantic: Tests requiring semantic dependencies (fastembed, sqlite-vec, openai)
"
,
"
live: Tests that call external provider APIs and require explicit opt-in
"
,
]
[
tool
.
ruff
]
extend-exclude
= [
"
*.md
"
]
line-length
=
100
target-version
=
"
py312
"
[
tool
.
ruff
.
lint
]
#
Ruff 0.16 expanded its defaults; preserve the repository's established lint baseline.
select
= [
"
E4
"
,
"
E7
"
,
"
E9
"
,
"
F
"
]
[
dependency-groups
]
dev
= [
"
logfire>=4.19.0
"
,
"
gevent>=24.11.1
"
,
"
icecream>=2.1.3
"
,
"
pytest>=8.3.4
"
,
"
pytest-cov>=4.1.0
"
,
"
pytest-mock>=3.12.0
"
,
"
pytest-asyncio>=0.24.0
"
,
"
pytest-xdist>=3.0.0
"
,
"
ruff>=0.16.0
"
,
"
freezegun>=1.5.5
"
,
"
testcontainers[postgres]>=4.0.0
"
,
"
redis>=8.0.0,<9
"
,
"
psycopg>=3.2.0
"
,
"
pyright>=1.1.408
"
,
"
pytest-testmon>=2.2.0
"
,
"
ty>=0.0.64
"
,
"
cst-lsp>=0.1.3
"
,
"
libcst>=1.8.6
"
,
"
pytest-timeout>=2.4.0
"
,
"
pytest-split>=0.11.0
"
,
]
[
tool
.
hatch
.
version
]
source
=
"
uv-dynamic-versioning
"
[
tool
.
uv
]
constraint-dependencies
= [
"
fastmcp-slim==4.0.0b1
"
]
[
tool
.
uv-dynamic-versioning
]
vcs
=
"
git
"
style
=
"
pep440
"
bump
=
true
fallback-version
=
"
0.0.0
"
[
tool
.
ty
.
rules
]
all
=
"
error
"
[
tool
.
coverage
.
run
]
concurrency
= [
"
thread
"
,
"
gevent
"
]
parallel
=
true
source
= [
"
basic_memory
"
]
[
tool
.
coverage
.
report
]
exclude_lines
= [
"
pragma: no cover
"
,
"
def __repr__
"
,
"
if self.debug:
"
,
"
if settings.DEBUG
"
,
"
raise AssertionError
"
,
"
raise NotImplementedError
"
,
"
if 0:
"
,
"
if __name__ == .__main__.:
"
,
"
class .*
\\
bProtocol
\\
):
"
,
"
@(abc
\\
.)?abstractmethod
"
,
]
#
Exclude specific modules that are difficult to test comprehensively
omit
= [
"
*/external_auth_provider.py
"
,
#
External HTTP calls to OAuth providers
"
*/supabase_auth_provider.py
"
,
#
External HTTP calls to Supabase APIs
"
*/watch_service.py
"
,
#
File system watching - complex integration testing
"
*/background_sync.py
"
,
#
Background processes
"
*/cli/**
"
,
#
CLI is an interactive wrapper; core logic is covered via API/MCP/service tests
"
*/db.py
"
,
#
Backend/runtime-dependent (sqlite/postgres/windows tuning); validated via integration tests
"
*/services/initialization.py
"
,
#
Startup orchestration + background tasks (watchers); exercised indirectly in entrypoints
"
*/sync/sync_service.py
"
,
#
Heavy filesystem/db integration; covered by integration suite, not enforced in unit coverage
"
*/services/migration_service.py
"
,
#
Complex migration scenarios
]
You can’t perform that action at this time.