runapprentice 0.2.0__tar.gz → 0.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 (22) hide show
  1. {runapprentice-0.2.0 → runapprentice-0.2.1}/PKG-INFO +1 -1
  2. {runapprentice-0.2.0 → runapprentice-0.2.1}/pyproject.toml +1 -1
  3. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/__init__.py +8 -1
  4. {runapprentice-0.2.0 → runapprentice-0.2.1}/.gitignore +0 -0
  5. {runapprentice-0.2.0 → runapprentice-0.2.1}/LICENSE +0 -0
  6. {runapprentice-0.2.0 → runapprentice-0.2.1}/README.md +0 -0
  7. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/_capture.py +0 -0
  8. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/cli.py +0 -0
  9. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/client.py +0 -0
  10. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/langchain.py +0 -0
  11. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/local.py +0 -0
  12. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/models.py +0 -0
  13. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/openai.py +0 -0
  14. {runapprentice-0.2.0 → runapprentice-0.2.1}/src/runapprentice/py.typed +0 -0
  15. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_capture.py +0 -0
  16. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_cli.py +0 -0
  17. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_client.py +0 -0
  18. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_dispatcher.py +0 -0
  19. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_failopen.py +0 -0
  20. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_langchain_prompts.py +0 -0
  21. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_local.py +0 -0
  22. {runapprentice-0.2.0 → runapprentice-0.2.1}/tests/test_openai.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runapprentice
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Cut LLM cost without losing quality: capture traffic, build golden datasets, and optimize prompts.
5
5
  Project-URL: Homepage, https://runapprentice.com
6
6
  Project-URL: Documentation, https://docs.runapprentice.com
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runapprentice"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Cut LLM cost without losing quality: capture traffic, build golden datasets, and optimize prompts."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -27,4 +27,11 @@ __all__ = [
27
27
  "TraceRecord",
28
28
  ]
29
29
 
30
- __version__ = "0.1.0"
30
+ # Single source of truth is pyproject.toml; read it from package metadata so
31
+ # this string can never drift from what PyPI serves (it did once, at 0.2.0).
32
+ from importlib.metadata import PackageNotFoundError, version as _version
33
+
34
+ try:
35
+ __version__ = _version("runapprentice")
36
+ except PackageNotFoundError: # running from a source tree without installation
37
+ __version__ = "0.0.0.dev0"
File without changes
File without changes
File without changes