futurehouse-client 0.3.18.dev80__tar.gz → 0.3.18.dev109__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 (28) hide show
  1. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/PKG-INFO +1 -1
  2. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/clients/job_client.py +1 -0
  3. futurehouse_client-0.3.18.dev109/futurehouse_client/utils/__init__.py +3 -0
  4. futurehouse_client-0.3.18.dev109/futurehouse_client/utils/context.py +16 -0
  5. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client.egg-info/PKG-INFO +1 -1
  6. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client.egg-info/SOURCES.txt +1 -0
  7. futurehouse_client-0.3.18.dev80/futurehouse_client/utils/__init__.py +0 -0
  8. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/LICENSE +0 -0
  9. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/README.md +0 -0
  10. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/docs/__init__.py +0 -0
  11. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/docs/client_notebook.ipynb +0 -0
  12. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/__init__.py +0 -0
  13. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/clients/__init__.py +0 -0
  14. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/clients/rest_client.py +0 -0
  15. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/models/__init__.py +0 -0
  16. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/models/app.py +0 -0
  17. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/models/client.py +0 -0
  18. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/models/rest.py +0 -0
  19. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/utils/general.py +0 -0
  20. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/utils/module_utils.py +0 -0
  21. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client/utils/monitoring.py +0 -0
  22. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client.egg-info/dependency_links.txt +0 -0
  23. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client.egg-info/requires.txt +0 -0
  24. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/futurehouse_client.egg-info/top_level.txt +0 -0
  25. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/pyproject.toml +0 -0
  26. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/setup.cfg +0 -0
  27. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/tests/test_rest.py +0 -0
  28. {futurehouse_client-0.3.18.dev80 → futurehouse_client-0.3.18.dev109}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: futurehouse-client
3
- Version: 0.3.18.dev80
3
+ Version: 0.3.18.dev109
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
@@ -30,6 +30,7 @@ class JobNames(StrEnum):
30
30
  OWL = "job-futurehouse-hasanyone"
31
31
  DUMMY = "job-futurehouse-dummy-env"
32
32
  PHOENIX = "job-futurehouse-phoenix"
33
+ FINCH = "job-futurehouse-data-analysis-crow-high"
33
34
 
34
35
  @classmethod
35
36
  def from_stage(cls, job_name: str, stage: Stage | None = None) -> str:
@@ -0,0 +1,3 @@
1
+ from .context import UserContext
2
+
3
+ __all__ = ["UserContext"]
@@ -0,0 +1,16 @@
1
+ class UserContext:
2
+ """A context manager for storing user information from the initial request."""
3
+
4
+ _user_jwt = None
5
+
6
+ @classmethod
7
+ def set_user_jwt(cls, jwt: str) -> None:
8
+ cls._user_jwt = jwt
9
+
10
+ @classmethod
11
+ def get_user_jwt(cls) -> str | None:
12
+ return cls._user_jwt
13
+
14
+ @classmethod
15
+ def clear_user_jwt(cls) -> None:
16
+ cls._user_jwt = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: futurehouse-client
3
- Version: 0.3.18.dev80
3
+ Version: 0.3.18.dev109
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
@@ -18,6 +18,7 @@ futurehouse_client/models/app.py
18
18
  futurehouse_client/models/client.py
19
19
  futurehouse_client/models/rest.py
20
20
  futurehouse_client/utils/__init__.py
21
+ futurehouse_client/utils/context.py
21
22
  futurehouse_client/utils/general.py
22
23
  futurehouse_client/utils/module_utils.py
23
24
  futurehouse_client/utils/monitoring.py