cribsheet 0.2.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.
- crib/__init__.py +20 -0
- crib/__main__.py +9 -0
- crib/app.py +1594 -0
- crib/chunk.py +218 -0
- crib/claudemem.py +100 -0
- crib/cli.py +1048 -0
- crib/client.py +105 -0
- crib/codeindex.py +1411 -0
- crib/codeindexer.py +335 -0
- crib/codequery.py +263 -0
- crib/codestore.py +270 -0
- crib/config.py +362 -0
- crib/describe_queue.py +107 -0
- crib/embed.py +188 -0
- crib/generate.py +133 -0
- crib/gitbacking.py +307 -0
- crib/indexer.py +158 -0
- crib/learnings.py +252 -0
- crib/memmirror.py +113 -0
- crib/merge.py +144 -0
- crib/notes.py +156 -0
- crib/notestore.py +156 -0
- crib/paths.py +65 -0
- crib/project_services.py +51 -0
- crib/refs.py +134 -0
- crib/retrieve.py +365 -0
- crib/section_index.py +157 -0
- crib/server.py +660 -0
- crib/session.py +95 -0
- crib/sharedserver.py +57 -0
- crib/sources.py +70 -0
- crib/store.py +256 -0
- crib/util.py +56 -0
- crib/versions.py +66 -0
- crib/watch.py +281 -0
- cribsheet-0.2.0.dist-info/METADATA +232 -0
- cribsheet-0.2.0.dist-info/RECORD +39 -0
- cribsheet-0.2.0.dist-info/WHEEL +4 -0
- cribsheet-0.2.0.dist-info/entry_points.txt +2 -0
crib/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""cribsheet — markdown memory with a Chroma embedding index.
|
|
2
|
+
|
|
3
|
+
The package *imports* cleanly with only PyYAML present: heavy backends
|
|
4
|
+
(chromadb, sentence-transformers, fastmcp, watchdog) are imported lazily by the
|
|
5
|
+
modules that need them, so the core indexing loop stays usable — and testable —
|
|
6
|
+
without them. That's a code property, not a packaging claim — the base install
|
|
7
|
+
ships chromadb (a pyproject dependency), and normal use wants `[full]`.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
# Single-sourced from pyproject: the installed package metadata IS the version,
|
|
11
|
+
# so `[project] version` in pyproject.toml (and the matching git tag) is the only
|
|
12
|
+
# place it's written. Falls back gracefully when run from an uninstalled tree.
|
|
13
|
+
from importlib.metadata import PackageNotFoundError, version as _pkg_version
|
|
14
|
+
|
|
15
|
+
try:
|
|
16
|
+
__version__ = _pkg_version("cribsheet")
|
|
17
|
+
except PackageNotFoundError: # running from source without an install
|
|
18
|
+
__version__ = "0+unknown"
|
|
19
|
+
|
|
20
|
+
del PackageNotFoundError, _pkg_version
|