futurehouse-client 0.3.15.dev71__tar.gz → 0.3.16__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.
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/PKG-INFO +1 -1
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/clients/rest_client.py +18 -17
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/PKG-INFO +1 -1
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/LICENSE +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/README.md +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/docs/__init__.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/docs/client_notebook.ipynb +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/__init__.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/clients/__init__.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/clients/job_client.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/__init__.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/app.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/client.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/rest.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/utils/__init__.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/utils/module_utils.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/utils/monitoring.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/SOURCES.txt +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/dependency_links.txt +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/requires.txt +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/top_level.txt +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/pyproject.toml +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/setup.cfg +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/tests/test_rest.py +0 -0
- {futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/uv.lock +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: futurehouse-client
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.16
|
4
4
|
Summary: A client for interacting with endpoints of the FutureHouse service.
|
5
5
|
Author-email: FutureHouse technical staff <hello@futurehouse.org>
|
6
6
|
Classifier: Operating System :: OS Independent
|
@@ -118,7 +118,7 @@ class TaskResponse(BaseModel):
|
|
118
118
|
|
119
119
|
status: str
|
120
120
|
query: str
|
121
|
-
user: str
|
121
|
+
user: str | None = None
|
122
122
|
created_at: datetime
|
123
123
|
job_name: str
|
124
124
|
public: bool
|
@@ -388,29 +388,30 @@ class RestClient:
|
|
388
388
|
url = f"/v0.1/trajectories/{task_id}"
|
389
389
|
full_url = f"{self.base_url}{url}"
|
390
390
|
|
391
|
-
with
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
391
|
+
with (
|
392
|
+
external_trace(
|
393
|
+
url=full_url,
|
394
|
+
method="GET",
|
395
|
+
library="httpx",
|
396
|
+
custom_params={
|
397
|
+
"operation": "get_job",
|
398
|
+
"job_id": task_id,
|
399
|
+
},
|
400
|
+
),
|
401
|
+
self.client.stream("GET", url, params={"history": history}) as response,
|
399
402
|
):
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
response.raise_for_status()
|
405
|
-
verbose_response = TaskResponseVerbose(**response.json())
|
403
|
+
json_data = "".join(response.iter_text(chunk_size=1024))
|
404
|
+
data = json.loads(json_data)
|
405
|
+
verbose_response = TaskResponseVerbose(**data)
|
406
|
+
|
406
407
|
if verbose:
|
407
408
|
return verbose_response
|
408
409
|
if any(
|
409
410
|
JobNames.from_string(job_name) in verbose_response.job_name
|
410
411
|
for job_name in ["crow", "falcon", "owl", "dummy"]
|
411
412
|
):
|
412
|
-
return PQATaskResponse(**
|
413
|
-
return TaskResponse(**
|
413
|
+
return PQATaskResponse(**data)
|
414
|
+
return TaskResponse(**data)
|
414
415
|
except ValueError as e:
|
415
416
|
raise ValueError("Invalid task ID format. Must be a valid UUID.") from e
|
416
417
|
except Exception as e:
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: futurehouse-client
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.16
|
4
4
|
Summary: A client for interacting with endpoints of the FutureHouse service.
|
5
5
|
Author-email: FutureHouse technical staff <hello@futurehouse.org>
|
6
6
|
Classifier: Operating System :: OS Independent
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/__init__.py
RENAMED
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/clients/__init__.py
RENAMED
File without changes
|
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/__init__.py
RENAMED
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/app.py
RENAMED
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/client.py
RENAMED
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/models/rest.py
RENAMED
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
{futurehouse_client-0.3.15.dev71 → futurehouse_client-0.3.16}/futurehouse_client/utils/monitoring.py
RENAMED
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
|