structguard 0.1.2__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 (36) hide show
  1. {structguard-0.1.2 → structguard-0.1.4}/PKG-INFO +3 -4
  2. {structguard-0.1.2 → structguard-0.1.4}/pyproject.toml +3 -4
  3. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/__init__.py +5 -1
  4. {structguard-0.1.2 → structguard-0.1.4}/.env.example +0 -0
  5. {structguard-0.1.2 → structguard-0.1.4}/LICENSE +0 -0
  6. {structguard-0.1.2 → structguard-0.1.4}/README.md +0 -0
  7. {structguard-0.1.2 → structguard-0.1.4}/examples/README.md +0 -0
  8. {structguard-0.1.2 → structguard-0.1.4}/examples/anthropic_example.py +0 -0
  9. {structguard-0.1.2 → structguard-0.1.4}/examples/dataclass_example.py +0 -0
  10. {structguard-0.1.2 → structguard-0.1.4}/examples/error_handling_example.py +0 -0
  11. {structguard-0.1.2 → structguard-0.1.4}/examples/gemini_example.py +0 -0
  12. {structguard-0.1.2 → structguard-0.1.4}/examples/groq_example.py +0 -0
  13. {structguard-0.1.2 → structguard-0.1.4}/examples/json_schema_example.py +0 -0
  14. {structguard-0.1.2 → structguard-0.1.4}/examples/ollama_example.py +0 -0
  15. {structguard-0.1.2 → structguard-0.1.4}/examples/openai_example.py +0 -0
  16. {structguard-0.1.2 → structguard-0.1.4}/examples/typeddict_example.py +0 -0
  17. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/__init__.py +0 -0
  18. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/anthropic_adapter.py +0 -0
  19. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/base.py +0 -0
  20. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/gemini_adapter.py +0 -0
  21. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/groq_adapter.py +0 -0
  22. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/ollama_adapter.py +0 -0
  23. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/openai_adapter.py +0 -0
  24. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/core.py +0 -0
  25. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/exceptions.py +0 -0
  26. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/logging_utils.py +0 -0
  27. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/repair.py +0 -0
  28. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/report.py +0 -0
  29. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/retry.py +0 -0
  30. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/schema/__init__.py +0 -0
  31. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/schema/engine.py +0 -0
  32. {structguard-0.1.2 → structguard-0.1.4}/src/structguard/validator.py +0 -0
  33. {structguard-0.1.2 → structguard-0.1.4}/tests/test_core.py +0 -0
  34. {structguard-0.1.2 → structguard-0.1.4}/tests/test_repair.py +0 -0
  35. {structguard-0.1.2 → structguard-0.1.4}/tests/test_schema_engine.py +0 -0
  36. {structguard-0.1.2 → structguard-0.1.4}/tests/test_validator.py +0 -0
@@ -1,10 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structguard
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Reliable, provider-agnostic structured outputs for production LLM applications.
5
- Project-URL: Homepage, https://github.com/yourusername/structguard
6
- Project-URL: Repository, https://github.com/yourusername/structguard
7
- Project-URL: Issues, https://github.com/yourusername/structguard/issues
5
+ Project-URL: Homepage, https://github.com/sujanrupu/structguard
6
+ Project-URL: Repository, https://github.com/sujanrupu/structguard
8
7
  Author-email: Sujan Ghosh <rupubally@gmail.com>
9
8
  License: MIT
10
9
  License-File: LICENSE
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "structguard"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "Reliable, provider-agnostic structured outputs for production LLM applications."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -38,9 +38,8 @@ all = ["openai>=1.0", "anthropic>=0.30", "google-generativeai>=0.5", "groq>=0.5"
38
38
  dev = ["pytest>=7.0", "pytest-cov", "build", "twine"]
39
39
 
40
40
  [project.urls]
41
- Homepage = "https://github.com/yourusername/structguard"
42
- Repository = "https://github.com/yourusername/structguard"
43
- Issues = "https://github.com/yourusername/structguard/issues"
41
+ Homepage = "https://github.com/sujanrupu/structguard"
42
+ Repository = "https://github.com/sujanrupu/structguard"
44
43
 
45
44
  [tool.hatch.build.targets.wheel]
46
45
  packages = ["src/structguard"]
@@ -16,8 +16,12 @@ from .exceptions import (
16
16
  UnsupportedProviderError,
17
17
  )
18
18
  from .report import ValidationReport
19
+ from importlib.metadata import version, PackageNotFoundError
19
20
 
20
- __version__ = "0.1.0"
21
+ try:
22
+ __version__ = version("structguard")
23
+ except PackageNotFoundError:
24
+ __version__ = "unknown"
21
25
 
22
26
  __all__ = [
23
27
  "generate",
File without changes
File without changes
File without changes