mem0-cli 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.
- mem0_cli-0.1.0/.gitignore +2 -0
- mem0_cli-0.1.0/PKG-INFO +57 -0
- mem0_cli-0.1.0/README.md +29 -0
- mem0_cli-0.1.0/pyproject.toml +77 -0
- mem0_cli-0.1.0/src/mem0_cli/__init__.py +3 -0
- mem0_cli-0.1.0/src/mem0_cli/__main__.py +5 -0
- mem0_cli-0.1.0/src/mem0_cli/app.py +1021 -0
- mem0_cli-0.1.0/src/mem0_cli/backend/__init__.py +5 -0
- mem0_cli-0.1.0/src/mem0_cli/backend/base.py +113 -0
- mem0_cli-0.1.0/src/mem0_cli/backend/platform.py +325 -0
- mem0_cli-0.1.0/src/mem0_cli/branding.py +130 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/__init__.py +1 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/config_cmd.py +108 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/entities.py +133 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/init_cmd.py +195 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/memory.py +469 -0
- mem0_cli-0.1.0/src/mem0_cli/commands/utils.py +142 -0
- mem0_cli-0.1.0/src/mem0_cli/config.py +176 -0
- mem0_cli-0.1.0/src/mem0_cli/output.py +242 -0
mem0_cli-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mem0-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The official CLI for mem0 — the memory layer for AI agents
|
|
5
|
+
Author-email: "mem0.ai" <founders@mem0.ai>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Keywords: agents,ai,cli,mem0,memory
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Environment :: Console
|
|
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: Topic :: Software Development :: Libraries
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Requires-Dist: httpx>=0.24.0
|
|
19
|
+
Requires-Dist: rich>=13.0.0
|
|
20
|
+
Requires-Dist: typer>=0.9.0
|
|
21
|
+
Provides-Extra: dev
|
|
22
|
+
Requires-Dist: pytest-asyncio>=0.21; extra == 'dev'
|
|
23
|
+
Requires-Dist: pytest>=7.0; extra == 'dev'
|
|
24
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
25
|
+
Provides-Extra: oss
|
|
26
|
+
Requires-Dist: mem0ai>=0.1.0; extra == 'oss'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# mem0 CLI
|
|
30
|
+
|
|
31
|
+
The official command-line interface for [mem0](https://mem0.ai) — the memory layer for AI agents.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install mem0-cli
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Set up your configuration
|
|
43
|
+
mem0 init
|
|
44
|
+
|
|
45
|
+
# Add a memory
|
|
46
|
+
mem0 add "I prefer dark mode and use vim keybindings" --user-id alice
|
|
47
|
+
|
|
48
|
+
# Search memories
|
|
49
|
+
mem0 search "What are Alice's preferences?" --user-id alice
|
|
50
|
+
|
|
51
|
+
# List all memories
|
|
52
|
+
mem0 list --user-id alice
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
Apache-2.0
|
mem0_cli-0.1.0/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# mem0 CLI
|
|
2
|
+
|
|
3
|
+
The official command-line interface for [mem0](https://mem0.ai) — the memory layer for AI agents.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install mem0-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Set up your configuration
|
|
15
|
+
mem0 init
|
|
16
|
+
|
|
17
|
+
# Add a memory
|
|
18
|
+
mem0 add "I prefer dark mode and use vim keybindings" --user-id alice
|
|
19
|
+
|
|
20
|
+
# Search memories
|
|
21
|
+
mem0 search "What are Alice's preferences?" --user-id alice
|
|
22
|
+
|
|
23
|
+
# List all memories
|
|
24
|
+
mem0 list --user-id alice
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
Apache-2.0
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mem0-cli"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "The official CLI for mem0 — the memory layer for AI agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "mem0.ai", email = "founders@mem0.ai" },
|
|
14
|
+
]
|
|
15
|
+
keywords = ["mem0", "memory", "ai", "agents", "cli"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: Apache Software License",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Topic :: Software Development :: Libraries",
|
|
26
|
+
]
|
|
27
|
+
dependencies = [
|
|
28
|
+
"typer>=0.9.0",
|
|
29
|
+
"rich>=13.0.0",
|
|
30
|
+
"httpx>=0.24.0",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
oss = ["mem0ai>=0.1.0"]
|
|
35
|
+
dev = [
|
|
36
|
+
"pytest>=7.0",
|
|
37
|
+
"pytest-asyncio>=0.21",
|
|
38
|
+
"ruff>=0.1.0",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[project.scripts]
|
|
42
|
+
mem0 = "mem0_cli.app:main"
|
|
43
|
+
|
|
44
|
+
[tool.hatch.build.targets.wheel]
|
|
45
|
+
packages = ["src/mem0_cli"]
|
|
46
|
+
|
|
47
|
+
[tool.hatch.build.targets.sdist]
|
|
48
|
+
include = ["src/mem0_cli"]
|
|
49
|
+
|
|
50
|
+
[tool.ruff]
|
|
51
|
+
target-version = "py310"
|
|
52
|
+
line-length = 100
|
|
53
|
+
|
|
54
|
+
[tool.ruff.lint]
|
|
55
|
+
select = [
|
|
56
|
+
"E", # pycodestyle errors
|
|
57
|
+
"F", # pyflakes
|
|
58
|
+
"I", # isort (import sorting)
|
|
59
|
+
"W", # pycodestyle warnings
|
|
60
|
+
"UP", # pyupgrade (modern Python syntax)
|
|
61
|
+
"B", # flake8-bugbear (common bugs)
|
|
62
|
+
"SIM", # flake8-simplify
|
|
63
|
+
"RUF", # ruff-specific rules
|
|
64
|
+
]
|
|
65
|
+
ignore = [
|
|
66
|
+
"E501", # line too long — handled by formatter
|
|
67
|
+
"B008", # function call in default arg — required by Typer's Option/Argument pattern
|
|
68
|
+
"SIM108", # ternary operator — sometimes less readable
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[tool.ruff.lint.isort]
|
|
72
|
+
known-first-party = ["mem0_cli"]
|
|
73
|
+
|
|
74
|
+
[tool.ruff.format]
|
|
75
|
+
quote-style = "double"
|
|
76
|
+
indent-style = "space"
|
|
77
|
+
docstring-code-format = true
|