inferencesh 0.3.0__tar.gz → 0.4.0__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.
Potentially problematic release.
This version of inferencesh might be problematic. Click here for more details.
- {inferencesh-0.3.0/src/inferencesh.egg-info → inferencesh-0.4.0}/PKG-INFO +6 -1
- {inferencesh-0.3.0 → inferencesh-0.4.0}/pyproject.toml +8 -1
- {inferencesh-0.3.0 → inferencesh-0.4.0}/setup.py +2 -0
- inferencesh-0.4.0/src/inferencesh/__init__.py +41 -0
- inferencesh-0.4.0/src/inferencesh/client.py +830 -0
- inferencesh-0.4.0/src/inferencesh/models/__init__.py +29 -0
- inferencesh-0.4.0/src/inferencesh/models/base.py +94 -0
- inferencesh-0.4.0/src/inferencesh/models/file.py +252 -0
- inferencesh-0.4.0/src/inferencesh/models/llm.py +729 -0
- inferencesh-0.4.0/src/inferencesh/utils/__init__.py +6 -0
- inferencesh-0.4.0/src/inferencesh/utils/download.py +59 -0
- inferencesh-0.4.0/src/inferencesh/utils/storage.py +16 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0/src/inferencesh.egg-info}/PKG-INFO +6 -1
- {inferencesh-0.3.0 → inferencesh-0.4.0}/src/inferencesh.egg-info/SOURCES.txt +9 -1
- inferencesh-0.4.0/src/inferencesh.egg-info/requires.txt +13 -0
- inferencesh-0.4.0/tests/test_client.py +159 -0
- inferencesh-0.3.0/src/inferencesh/__init__.py +0 -5
- inferencesh-0.3.0/src/inferencesh/sdk.py +0 -363
- inferencesh-0.3.0/src/inferencesh.egg-info/requires.txt +0 -5
- {inferencesh-0.3.0 → inferencesh-0.4.0}/LICENSE +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/README.md +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/setup.cfg +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.3.0 → inferencesh-0.4.0}/tests/test_sdk.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: inferencesh
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
4
4
|
Summary: inference.sh Python SDK
|
|
5
5
|
Author: Inference Shell Inc.
|
|
6
6
|
Author-email: "Inference Shell Inc." <hello@inference.sh>
|
|
@@ -13,9 +13,14 @@ Requires-Python: >=3.7
|
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
15
|
Requires-Dist: pydantic>=2.0.0
|
|
16
|
+
Requires-Dist: tqdm>=4.67.0
|
|
17
|
+
Requires-Dist: requests>=2.31.0
|
|
16
18
|
Provides-Extra: test
|
|
17
19
|
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
18
20
|
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
|
|
21
|
+
Provides-Extra: async
|
|
22
|
+
Requires-Dist: aiohttp>=3.9.0; python_version >= "3.8" and extra == "async"
|
|
23
|
+
Requires-Dist: aiofiles>=23.2.1; python_version >= "3.8" and extra == "async"
|
|
19
24
|
Dynamic: author
|
|
20
25
|
Dynamic: license-file
|
|
21
26
|
Dynamic: requires-python
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "inferencesh"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.0"
|
|
8
8
|
description = "inference.sh Python SDK"
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Inference Shell Inc.", email = "hello@inference.sh"},
|
|
@@ -18,6 +18,9 @@ classifiers = [
|
|
|
18
18
|
]
|
|
19
19
|
dependencies = [
|
|
20
20
|
"pydantic>=2.0.0",
|
|
21
|
+
"tqdm>=4.67.0",
|
|
22
|
+
# Required for the synchronous client and examples
|
|
23
|
+
"requests>=2.31.0",
|
|
21
24
|
]
|
|
22
25
|
|
|
23
26
|
[project.urls]
|
|
@@ -41,3 +44,7 @@ test = [
|
|
|
41
44
|
"pytest>=7.0.0",
|
|
42
45
|
"pytest-cov>=4.0.0",
|
|
43
46
|
]
|
|
47
|
+
async = [
|
|
48
|
+
"aiohttp>=3.9.0; python_version >= '3.8'",
|
|
49
|
+
"aiofiles>=23.2.1; python_version >= '3.8'",
|
|
50
|
+
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""inference.sh Python SDK package."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.2"
|
|
4
|
+
|
|
5
|
+
from .models import (
|
|
6
|
+
BaseApp,
|
|
7
|
+
BaseAppInput,
|
|
8
|
+
BaseAppOutput,
|
|
9
|
+
File,
|
|
10
|
+
ContextMessageRole,
|
|
11
|
+
Message,
|
|
12
|
+
ContextMessage,
|
|
13
|
+
LLMInput,
|
|
14
|
+
LLMOutput,
|
|
15
|
+
build_messages,
|
|
16
|
+
stream_generate,
|
|
17
|
+
timing_context,
|
|
18
|
+
)
|
|
19
|
+
from .utils import StorageDir, download
|
|
20
|
+
from .client import Inference, AsyncInference, UploadFileOptions, TaskStatus
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"BaseApp",
|
|
24
|
+
"BaseAppInput",
|
|
25
|
+
"BaseAppOutput",
|
|
26
|
+
"File",
|
|
27
|
+
"ContextMessageRole",
|
|
28
|
+
"Message",
|
|
29
|
+
"ContextMessage",
|
|
30
|
+
"LLMInput",
|
|
31
|
+
"LLMOutput",
|
|
32
|
+
"build_messages",
|
|
33
|
+
"stream_generate",
|
|
34
|
+
"timing_context",
|
|
35
|
+
"StorageDir",
|
|
36
|
+
"download",
|
|
37
|
+
"Inference",
|
|
38
|
+
"AsyncInference",
|
|
39
|
+
"UploadFileOptions",
|
|
40
|
+
"TaskStatus",
|
|
41
|
+
]
|