lean-explore 1.2.0__tar.gz → 1.2.1__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.
Files changed (48) hide show
  1. {lean_explore-1.2.0 → lean_explore-1.2.1}/PKG-INFO +26 -2
  2. {lean_explore-1.2.0 → lean_explore-1.2.1}/README.md +21 -0
  3. {lean_explore-1.2.0 → lean_explore-1.2.1}/pyproject.toml +7 -2
  4. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/PKG-INFO +26 -2
  5. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/requires.txt +4 -0
  6. {lean_explore-1.2.0 → lean_explore-1.2.1}/LICENSE +0 -0
  7. {lean_explore-1.2.0 → lean_explore-1.2.1}/setup.cfg +0 -0
  8. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/__init__.py +0 -0
  9. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/api/__init__.py +0 -0
  10. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/api/client.py +0 -0
  11. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/cli/__init__.py +0 -0
  12. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/cli/data_commands.py +0 -0
  13. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/cli/display.py +0 -0
  14. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/cli/main.py +0 -0
  15. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/config.py +0 -0
  16. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/__init__.py +0 -0
  17. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/__main__.py +0 -0
  18. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/doc_gen4.py +0 -0
  19. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/doc_parser.py +0 -0
  20. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/embeddings.py +0 -0
  21. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/github.py +0 -0
  22. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/index.py +0 -0
  23. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/informalize.py +0 -0
  24. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/package_config.py +0 -0
  25. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/package_registry.py +0 -0
  26. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/package_utils.py +0 -0
  27. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/extract/types.py +0 -0
  28. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/mcp/__init__.py +0 -0
  29. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/mcp/app.py +0 -0
  30. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/mcp/server.py +0 -0
  31. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/mcp/tools.py +0 -0
  32. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/models/__init__.py +0 -0
  33. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/models/search_db.py +0 -0
  34. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/models/search_types.py +0 -0
  35. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/search/__init__.py +0 -0
  36. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/search/engine.py +0 -0
  37. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/search/scoring.py +0 -0
  38. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/search/service.py +0 -0
  39. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/search/tokenization.py +0 -0
  40. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/util/__init__.py +0 -0
  41. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/util/embedding_client.py +0 -0
  42. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/util/logging.py +0 -0
  43. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/util/openrouter_client.py +0 -0
  44. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore/util/reranker_client.py +0 -0
  45. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/SOURCES.txt +0 -0
  46. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/dependency_links.txt +0 -0
  47. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/entry_points.txt +0 -0
  48. {lean_explore-1.2.0 → lean_explore-1.2.1}/src/lean_explore.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-explore
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A search engine for Lean 4 declarations.
5
5
  Author-email: Justin Asher <justinchadwickasher@gmail.com>
6
6
  License: Apache License
@@ -241,10 +241,13 @@ Requires-Dist: rich>=13.0.0
241
241
  Requires-Dist: requests>=2.25.0
242
242
  Requires-Dist: tenacity>=8.0.0
243
243
  Requires-Dist: pooch>=1.8.0
244
+ Provides-Extra: local
245
+ Requires-Dist: sentence-transformers>=2.2.0; extra == "local"
246
+ Requires-Dist: torch>=2.0.0; extra == "local"
244
247
  Provides-Extra: extract
245
248
  Requires-Dist: sentence-transformers>=2.2.0; extra == "extract"
246
- Requires-Dist: networkx>=3.0; extra == "extract"
247
249
  Requires-Dist: torch>=2.0.0; extra == "extract"
250
+ Requires-Dist: networkx>=3.0; extra == "extract"
248
251
  Provides-Extra: dev
249
252
  Requires-Dist: pytest>=7.0; extra == "dev"
250
253
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
@@ -283,6 +286,27 @@ A search engine for Lean 4 declarations. This project provides tools and resourc
283
286
 
284
287
  **For full documentation, please visit: [https://www.leanexplore.com/docs](https://www.leanexplore.com/docs)**
285
288
 
289
+ ## Installation
290
+
291
+ The base package connects to the remote API and does not require heavy ML dependencies:
292
+
293
+ ```bash
294
+ pip install lean-explore
295
+ ```
296
+
297
+ To run the **local** search backend (which uses on-device embedding and reranking models), install the extra ML dependencies:
298
+
299
+ ```bash
300
+ pip install lean-explore[local]
301
+ ```
302
+
303
+ Then fetch the data files and start the local MCP server:
304
+
305
+ ```bash
306
+ lean-explore data fetch
307
+ lean-explore mcp serve --backend local
308
+ ```
309
+
286
310
  The current indexed projects include:
287
311
 
288
312
  * Batteries
@@ -25,6 +25,27 @@ A search engine for Lean 4 declarations. This project provides tools and resourc
25
25
 
26
26
  **For full documentation, please visit: [https://www.leanexplore.com/docs](https://www.leanexplore.com/docs)**
27
27
 
28
+ ## Installation
29
+
30
+ The base package connects to the remote API and does not require heavy ML dependencies:
31
+
32
+ ```bash
33
+ pip install lean-explore
34
+ ```
35
+
36
+ To run the **local** search backend (which uses on-device embedding and reranking models), install the extra ML dependencies:
37
+
38
+ ```bash
39
+ pip install lean-explore[local]
40
+ ```
41
+
42
+ Then fetch the data files and start the local MCP server:
43
+
44
+ ```bash
45
+ lean-explore data fetch
46
+ lean-explore mcp serve --backend local
47
+ ```
48
+
28
49
  The current indexed projects include:
29
50
 
30
51
  * Batteries
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lean-explore"
7
- version = "1.2.0"
7
+ version = "1.2.1"
8
8
  authors = [
9
9
  { name = "Justin Asher", email = "justinchadwickasher@gmail.com" },
10
10
  ]
@@ -66,10 +66,15 @@ Repository = "https://github.com/justincasher/lean-explore"
66
66
  lean-explore = "lean_explore.cli.main:app"
67
67
 
68
68
  [project.optional-dependencies]
69
+ local = [
70
+ "sentence-transformers>=2.2.0",
71
+ "torch>=2.0.0",
72
+ ]
73
+
69
74
  extract = [
70
75
  "sentence-transformers>=2.2.0",
71
- "networkx>=3.0",
72
76
  "torch>=2.0.0",
77
+ "networkx>=3.0",
73
78
  ]
74
79
 
75
80
  dev = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-explore
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A search engine for Lean 4 declarations.
5
5
  Author-email: Justin Asher <justinchadwickasher@gmail.com>
6
6
  License: Apache License
@@ -241,10 +241,13 @@ Requires-Dist: rich>=13.0.0
241
241
  Requires-Dist: requests>=2.25.0
242
242
  Requires-Dist: tenacity>=8.0.0
243
243
  Requires-Dist: pooch>=1.8.0
244
+ Provides-Extra: local
245
+ Requires-Dist: sentence-transformers>=2.2.0; extra == "local"
246
+ Requires-Dist: torch>=2.0.0; extra == "local"
244
247
  Provides-Extra: extract
245
248
  Requires-Dist: sentence-transformers>=2.2.0; extra == "extract"
246
- Requires-Dist: networkx>=3.0; extra == "extract"
247
249
  Requires-Dist: torch>=2.0.0; extra == "extract"
250
+ Requires-Dist: networkx>=3.0; extra == "extract"
248
251
  Provides-Extra: dev
249
252
  Requires-Dist: pytest>=7.0; extra == "dev"
250
253
  Requires-Dist: pytest-cov>=4.0; extra == "dev"
@@ -283,6 +286,27 @@ A search engine for Lean 4 declarations. This project provides tools and resourc
283
286
 
284
287
  **For full documentation, please visit: [https://www.leanexplore.com/docs](https://www.leanexplore.com/docs)**
285
288
 
289
+ ## Installation
290
+
291
+ The base package connects to the remote API and does not require heavy ML dependencies:
292
+
293
+ ```bash
294
+ pip install lean-explore
295
+ ```
296
+
297
+ To run the **local** search backend (which uses on-device embedding and reranking models), install the extra ML dependencies:
298
+
299
+ ```bash
300
+ pip install lean-explore[local]
301
+ ```
302
+
303
+ Then fetch the data files and start the local MCP server:
304
+
305
+ ```bash
306
+ lean-explore data fetch
307
+ lean-explore mcp serve --backend local
308
+ ```
309
+
286
310
  The current indexed projects include:
287
311
 
288
312
  * Batteries
@@ -30,5 +30,9 @@ sentence-transformers>=2.2.0
30
30
 
31
31
  [extract]
32
32
  sentence-transformers>=2.2.0
33
+ torch>=2.0.0
33
34
  networkx>=3.0
35
+
36
+ [local]
37
+ sentence-transformers>=2.2.0
34
38
  torch>=2.0.0
File without changes
File without changes