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.
- {structguard-0.1.2 → structguard-0.1.4}/PKG-INFO +3 -4
- {structguard-0.1.2 → structguard-0.1.4}/pyproject.toml +3 -4
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/__init__.py +5 -1
- {structguard-0.1.2 → structguard-0.1.4}/.env.example +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/LICENSE +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/README.md +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/README.md +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/anthropic_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/dataclass_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/error_handling_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/gemini_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/groq_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/json_schema_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/ollama_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/openai_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/examples/typeddict_example.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/__init__.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/anthropic_adapter.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/base.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/gemini_adapter.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/groq_adapter.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/ollama_adapter.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/adapters/openai_adapter.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/core.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/exceptions.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/logging_utils.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/repair.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/report.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/retry.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/schema/__init__.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/schema/engine.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/src/structguard/validator.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/tests/test_core.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/tests/test_repair.py +0 -0
- {structguard-0.1.2 → structguard-0.1.4}/tests/test_schema_engine.py +0 -0
- {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.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Reliable, provider-agnostic structured outputs for production LLM applications.
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Repository, https://github.com/
|
|
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.
|
|
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/
|
|
42
|
-
Repository = "https://github.com/
|
|
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
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|