lean-explore 0.1.3__tar.gz → 0.1.4__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 (32) hide show
  1. {lean_explore-0.1.3 → lean_explore-0.1.4}/PKG-INFO +1 -1
  2. {lean_explore-0.1.3 → lean_explore-0.1.4}/pyproject.toml +1 -1
  3. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/search.py +1 -1
  4. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/service.py +5 -9
  5. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/PKG-INFO +1 -1
  6. {lean_explore-0.1.3 → lean_explore-0.1.4}/LICENSE +0 -0
  7. {lean_explore-0.1.3 → lean_explore-0.1.4}/README.md +0 -0
  8. {lean_explore-0.1.3 → lean_explore-0.1.4}/setup.cfg +0 -0
  9. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/__init__.py +0 -0
  10. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/api/__init__.py +0 -0
  11. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/api/client.py +0 -0
  12. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/__init__.py +0 -0
  13. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/agent.py +0 -0
  14. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/config_utils.py +0 -0
  15. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/data_commands.py +0 -0
  16. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/cli/main.py +0 -0
  17. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/defaults.py +0 -0
  18. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/local/__init__.py +0 -0
  19. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/__init__.py +0 -0
  20. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/app.py +0 -0
  21. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/server.py +0 -0
  22. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/mcp/tools.py +0 -0
  23. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/__init__.py +0 -0
  24. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/__init__.py +0 -0
  25. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/api.py +0 -0
  26. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore/shared/models/db.py +0 -0
  27. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/SOURCES.txt +0 -0
  28. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/dependency_links.txt +0 -0
  29. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/entry_points.txt +0 -0
  30. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/requires.txt +0 -0
  31. {lean_explore-0.1.3 → lean_explore-0.1.4}/src/lean_explore.egg-info/top_level.txt +0 -0
  32. {lean_explore-0.1.3 → lean_explore-0.1.4}/tests/test_defaults.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-explore
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A project to explore and rank Lean mathematical declarations.
5
5
  Author-email: Justin Asher <justinchadwickasher@gmail.com>
6
6
  License: Apache License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lean-explore"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  authors = [
9
9
  { name = "Justin Asher", email = "justinchadwickasher@gmail.com" },
10
10
  ]
@@ -59,7 +59,7 @@ except ImportError as e:
59
59
 
60
60
  # --- Logging Setup ---
61
61
  logging.basicConfig(
62
- level=logging.INFO,
62
+ level=logging.WARNING,
63
63
  format="%(asctime)s - %(levelname)s - [%(module)s:%(lineno)d] - %(message)s",
64
64
  datefmt="%Y-%m-%d %H:%M:%S",
65
65
  )
@@ -52,7 +52,6 @@ class Service:
52
52
  default_faiss_k (int): Default number of FAISS neighbors to retrieve.
53
53
  default_pagerank_weight (float): Default weight for PageRank.
54
54
  default_text_relevance_weight (float): Default weight for text relevance.
55
- default_name_match_weight (float): Default weight for name matching.
56
55
  default_semantic_similarity_threshold (float): Default similarity threshold.
57
56
  default_results_limit (int): Default limit for search results.
58
57
  default_faiss_nprobe (int): Default nprobe for FAISS IVF indexes.
@@ -147,7 +146,7 @@ class Service:
147
146
  guidance = (
148
147
  "Please check your database configuration or connection parameters."
149
148
  )
150
- if is_file_db: # This check is now valid as is_file_db is defined earlier
149
+ if is_file_db:
151
150
  guidance = (
152
151
  f"The database file at '{db_path}' might be corrupted, "
153
152
  "inaccessible, or not a valid SQLite file. "
@@ -174,7 +173,6 @@ class Service:
174
173
  self.default_text_relevance_weight: float = (
175
174
  defaults.DEFAULT_TEXT_RELEVANCE_WEIGHT
176
175
  )
177
- self.default_name_match_weight: float = defaults.DEFAULT_NAME_MATCH_WEIGHT
178
176
  self.default_semantic_similarity_threshold: float = (
179
177
  defaults.DEFAULT_SEM_SIM_THRESHOLD
180
178
  )
@@ -256,7 +254,7 @@ class Service:
256
254
  faiss_k=self.default_faiss_k,
257
255
  pagerank_weight=self.default_pagerank_weight,
258
256
  text_relevance_weight=self.default_text_relevance_weight,
259
- name_match_weight=self.default_name_match_weight,
257
+ log_searches=True,
260
258
  selected_packages=package_filters,
261
259
  semantic_similarity_threshold=(
262
260
  self.default_semantic_similarity_threshold
@@ -314,10 +312,8 @@ class Service:
314
312
  f"Database error in get_by_id for group_id {group_id}: {e}",
315
313
  exc_info=True,
316
314
  )
317
- # For a service method, returning None on DB error might be acceptable,
318
- # or raise a custom service-level exception.
319
315
  return None
320
- except Exception as e: # Catch any other unexpected errors
316
+ except Exception as e:
321
317
  logger.error(
322
318
  f"Unexpected error in get_by_id for group_id {group_id}: {e}",
323
319
  exc_info=True,
@@ -352,7 +348,7 @@ class Service:
352
348
  f"Source statement group ID {group_id} not found for "
353
349
  "dependency lookup."
354
350
  )
355
- return None # Source group does not exist
351
+ return None
356
352
 
357
353
  # Query for statement groups that `group_id` depends on (citations)
358
354
  cited_target_groups_orm = (
@@ -385,7 +381,7 @@ class Service:
385
381
  exc_info=True,
386
382
  )
387
383
  return None
388
- except Exception as e: # Catch any other unexpected errors
384
+ except Exception as e:
389
385
  logger.error(
390
386
  f"Unexpected error in get_dependencies for "
391
387
  f"group_id {group_id}: {e}",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lean-explore
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: A project to explore and rank Lean mathematical declarations.
5
5
  Author-email: Justin Asher <justinchadwickasher@gmail.com>
6
6
  License: Apache License
File without changes
File without changes
File without changes