futurehouse-client 0.3.18.dev102__py3-none-any.whl → 0.3.18.dev109__py3-none-any.whl

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.
@@ -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.dev102
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
@@ -6,11 +6,12 @@ futurehouse_client/models/__init__.py,sha256=ta3jFLM_LsDz1rKDmx8rja8sT7WtSKoFvMg
6
6
  futurehouse_client/models/app.py,sha256=yfZ9tyw4VATVAfYrU7aTdCNPSljLEho09_nIbh8oZDY,23174
7
7
  futurehouse_client/models/client.py,sha256=n4HD0KStKLm6Ek9nL9ylP-bkK10yzAaD1uIDF83Qp_A,1828
8
8
  futurehouse_client/models/rest.py,sha256=lgwkMIXz0af-49BYSkKeS7SRqvN3motqnAikDN4YGTc,789
9
- futurehouse_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ futurehouse_client/utils/__init__.py,sha256=mCp1UP3eyrWyHpFAEHgKcazKCJ5g87MxlDIZVzi-5Tk,60
10
+ futurehouse_client/utils/context.py,sha256=MdYYldQfsqxnGJUDcMLkbRtKHb2srHfcMf6aR-oZh6Y,387
10
11
  futurehouse_client/utils/general.py,sha256=A_rtTiYW30ELGEZlWCIArO7q1nEmqi8hUlmBRYkMQ_c,767
11
12
  futurehouse_client/utils/module_utils.py,sha256=aFyd-X-pDARXz9GWpn8SSViUVYdSbuy9vSkrzcVIaGI,4955
12
13
  futurehouse_client/utils/monitoring.py,sha256=UjRlufe67kI3VxRHOd5fLtJmlCbVA2Wqwpd4uZhXkQM,8728
13
- futurehouse_client-0.3.18.dev102.dist-info/METADATA,sha256=yTCiG7V9uo6lTpCm_yh0bhVVCUvMZR3qXm3yyMwMUq8,12767
14
- futurehouse_client-0.3.18.dev102.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
15
- futurehouse_client-0.3.18.dev102.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
16
- futurehouse_client-0.3.18.dev102.dist-info/RECORD,,
14
+ futurehouse_client-0.3.18.dev109.dist-info/METADATA,sha256=yeDUNer_jX0nDUAgV26q5ssYrcWmWlCpuqy6iRuSz_c,12767
15
+ futurehouse_client-0.3.18.dev109.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
16
+ futurehouse_client-0.3.18.dev109.dist-info/top_level.txt,sha256=TRuLUCt_qBnggdFHCX4O_BoCu1j2X43lKfIZC-ElwWY,19
17
+ futurehouse_client-0.3.18.dev109.dist-info/RECORD,,