keep-skill 0.1.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.
keep/__init__.py ADDED
@@ -0,0 +1,53 @@
1
+ """
2
+ Keep - Semantic Memory
3
+
4
+ A persistent semantic memory with similarity search, full-text search,
5
+ and tag-based retrieval. Remember everything, find by meaning.
6
+
7
+ Quick Start:
8
+ from keep import Keeper
9
+
10
+ kp = Keeper() # uses .keep/ at git repo root
11
+ kp.update("file:///path/to/document.md", source_tags={"project": "myproject"})
12
+ results = kp.find("something similar to this query")
13
+
14
+ CLI Usage:
15
+ keep find "query text"
16
+ keep update file:///path/to/doc.md -t category=docs
17
+ keep collections --json
18
+
19
+ Default Store:
20
+ .keep/ at the git repository root (created automatically).
21
+ Override with KEEP_STORE_PATH or explicit path argument.
22
+
23
+ Environment Variables:
24
+ KEEP_STORE_PATH - Override default store location
25
+ KEEP_OPENAI_API_KEY - API key for OpenAI providers
26
+
27
+ The store is initialized automatically on first use. Configuration is persisted
28
+ in a TOML file within the store directory.
29
+ """
30
+
31
+ # Configure quiet mode early (before any library imports)
32
+ import os
33
+ if not os.environ.get("KEEP_VERBOSE"):
34
+ os.environ.setdefault("HF_HUB_DISABLE_PROGRESS_BARS", "1")
35
+ os.environ.setdefault("TRANSFORMERS_VERBOSITY", "error")
36
+ os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
37
+ os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1")
38
+ os.environ.setdefault("HF_HUB_DISABLE_SYMLINKS_WARNING", "1")
39
+
40
+ from .api import Keeper
41
+ from .types import Item, filter_non_system_tags, SYSTEM_TAG_PREFIX
42
+ from .context import WorkingContext, TopicSummary, RoutingContext
43
+
44
+ __version__ = "0.1.0"
45
+ __all__ = [
46
+ "Keeper",
47
+ "Item",
48
+ "WorkingContext",
49
+ "TopicSummary",
50
+ "RoutingContext",
51
+ "filter_non_system_tags",
52
+ "SYSTEM_TAG_PREFIX",
53
+ ]
keep/__main__.py ADDED
@@ -0,0 +1,8 @@
1
+ """
2
+ Entry point for `python -m keep`.
3
+ """
4
+
5
+ from .cli import main
6
+
7
+ if __name__ == "__main__":
8
+ main()