jharness-models 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 (31) hide show
  1. jharness_models-0.2.1/.gitignore +36 -0
  2. jharness_models-0.2.1/LICENSE +21 -0
  3. jharness_models-0.2.1/PKG-INFO +36 -0
  4. jharness_models-0.2.1/README.md +13 -0
  5. jharness_models-0.2.1/pyproject.toml +38 -0
  6. jharness_models-0.2.1/src/jharness/models/__init__.py +7 -0
  7. jharness_models-0.2.1/src/jharness/models/_http.py +570 -0
  8. jharness_models-0.2.1/src/jharness/models/_json.py +43 -0
  9. jharness_models-0.2.1/src/jharness/models/_profiles.py +42 -0
  10. jharness_models-0.2.1/src/jharness/models/_stream.py +136 -0
  11. jharness_models-0.2.1/src/jharness/models/anthropic/__init__.py +13 -0
  12. jharness_models-0.2.1/src/jharness/models/anthropic/errors.py +12 -0
  13. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/__init__.py +3 -0
  14. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/client.py +203 -0
  15. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/codec.py +301 -0
  16. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/messages.py +416 -0
  17. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/stream.py +414 -0
  18. jharness_models-0.2.1/src/jharness/models/anthropic/messages_api/tools.py +99 -0
  19. jharness_models-0.2.1/src/jharness/models/anthropic/profiles.py +119 -0
  20. jharness_models-0.2.1/src/jharness/models/deepseek/__init__.py +11 -0
  21. jharness_models-0.2.1/src/jharness/models/deepseek/profiles.py +91 -0
  22. jharness_models-0.2.1/src/jharness/models/openai/__init__.py +13 -0
  23. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/__init__.py +3 -0
  24. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/client.py +163 -0
  25. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/codec.py +273 -0
  26. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/messages.py +212 -0
  27. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/stream.py +286 -0
  28. jharness_models-0.2.1/src/jharness/models/openai/chat_completions/tools.py +123 -0
  29. jharness_models-0.2.1/src/jharness/models/openai/errors.py +12 -0
  30. jharness_models-0.2.1/src/jharness/models/openai/profiles.py +94 -0
  31. jharness_models-0.2.1/src/jharness/models/py.typed +1 -0
@@ -0,0 +1,36 @@
1
+ # OS/editor noise
2
+ .DS_Store
3
+ Thumbs.db
4
+ *.swp
5
+ *.swo
6
+
7
+ # Local assistant state
8
+ .codex/
9
+ .claude/
10
+ .gemini/
11
+ .aider*
12
+
13
+ # Python
14
+ __pycache__/
15
+ *.py[cod]
16
+ .python-version
17
+ .venv/
18
+ venv/
19
+ ENV/
20
+
21
+ # Python tooling caches and reports
22
+ .pytest_cache/
23
+ .ruff_cache/
24
+ .pyright/
25
+ .mypy_cache/
26
+ .coverage
27
+ coverage/
28
+ htmlcov/
29
+
30
+ # Packaging/build artifacts
31
+ dist/
32
+ build/
33
+ *.egg-info/
34
+
35
+ # Logs
36
+ *.log
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JHarness contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: jharness-models
3
+ Version: 0.2.1
4
+ Summary: OpenAI, Anthropic, and DeepSeek model adapters for JHarness
5
+ Project-URL: Documentation, https://github.com/Ezio2000/jharness/tree/main/docs/model-adapters.md
6
+ Project-URL: Repository, https://github.com/Ezio2000/jharness.git
7
+ Author: JHarness contributors
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.11
20
+ Requires-Dist: httpx>=0.27.0
21
+ Requires-Dist: jharness-kernel==0.2.1
22
+ Description-Content-Type: text/markdown
23
+
24
+ # jharness-models
25
+
26
+ Explicit OpenAI, Anthropic, and DeepSeek model adapters for the JHarness kernel.
27
+
28
+ ```bash
29
+ pip install jharness-models
30
+ ```
31
+
32
+ ```python
33
+ from jharness.models.openai import OpenAIChatCompletionsModel
34
+ ```
35
+
36
+ Installing this distribution installs the matching `jharness-kernel` version.
@@ -0,0 +1,13 @@
1
+ # jharness-models
2
+
3
+ Explicit OpenAI, Anthropic, and DeepSeek model adapters for the JHarness kernel.
4
+
5
+ ```bash
6
+ pip install jharness-models
7
+ ```
8
+
9
+ ```python
10
+ from jharness.models.openai import OpenAIChatCompletionsModel
11
+ ```
12
+
13
+ Installing this distribution installs the matching `jharness-kernel` version.
@@ -0,0 +1,38 @@
1
+ [project]
2
+ name = "jharness-models"
3
+ version = "0.2.1"
4
+ description = "OpenAI, Anthropic, and DeepSeek model adapters for JHarness"
5
+ readme = "README.md"
6
+ requires-python = ">=3.11"
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ authors = [{ name = "JHarness contributors" }]
10
+ classifiers = [
11
+ "Development Status :: 3 - Alpha",
12
+ "License :: OSI Approved :: MIT License",
13
+ "Operating System :: OS Independent",
14
+ "Programming Language :: Python :: 3 :: Only",
15
+ "Programming Language :: Python :: 3.11",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3.13",
18
+ "Programming Language :: Python :: 3.14",
19
+ "Typing :: Typed",
20
+ ]
21
+ dependencies = [
22
+ "jharness-kernel==0.2.1",
23
+ "httpx>=0.27.0",
24
+ ]
25
+
26
+ [project.urls]
27
+ Documentation = "https://github.com/Ezio2000/jharness/tree/main/docs/model-adapters.md"
28
+ Repository = "https://github.com/Ezio2000/jharness.git"
29
+
30
+ [build-system]
31
+ requires = ["hatchling"]
32
+ build-backend = "hatchling.build"
33
+
34
+ [tool.hatch.build.targets.wheel]
35
+ packages = ["src/jharness"]
36
+
37
+ [tool.hatch.build.targets.sdist]
38
+ include = ["src/jharness/models", "LICENSE", "README.md", "pyproject.toml"]
@@ -0,0 +1,7 @@
1
+ """Concrete model provider adapters.
2
+
3
+ Import provider-specific adapters from their provider namespace, for example
4
+ `jharness.models.openai`.
5
+ """
6
+
7
+ __all__: list[str] = []