luna-quantum 1.0.3rc1__cp311-cp311-manylinux_2_34_x86_64.whl → 1.0.3rc2__cp311-cp311-manylinux_2_34_x86_64.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.

Potentially problematic release.


This version of luna-quantum might be problematic. Click here for more details.

@@ -48,7 +48,7 @@ class APIKeyAuth(httpx.Auth):
48
48
  def __init__(self, token: str) -> None:
49
49
  self.token = token
50
50
 
51
- def auth_flow(self, request: Request) -> Generator[Request, Response, None]:
51
+ def auth_flow(self, request: Request) -> Generator[Request, Response]:
52
52
  """
53
53
  Authenticate a request to Luna platform.
54
54
 
@@ -89,7 +89,7 @@ class LunaPlatformClient(IService):
89
89
  self,
90
90
  api: LunaPrefixEnum,
91
91
  api_key: str | None = None,
92
- base_url: str = os.getenv("LUNA_BASE_URL", "https://api.aqarios.com"),
92
+ base_url: str | None = None,
93
93
  timeout: float | None = 240.0,
94
94
  ) -> None:
95
95
  """
@@ -116,6 +116,8 @@ class LunaPlatformClient(IService):
116
116
  itself will time out after 240 seconds.
117
117
  Default: 240.0
118
118
  """
119
+ if base_url is None:
120
+ base_url = os.getenv("LUNA_BASE_URL", "https://api.aqarios.com")
119
121
  if os.getenv("LUNA_DISABLE_SUFFIX", "false").lower() == "true":
120
122
  self._base_url = f"{base_url}/api/v1"
121
123
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: luna-quantum
3
- Version: 1.0.3rc1
3
+ Version: 1.0.3rc2
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: Apache Software License
6
6
  Classifier: Operating System :: OS Independent
@@ -1,10 +1,10 @@
1
- luna_quantum-1.0.3rc1.dist-info/METADATA,sha256=ZIsgDgMD7Y_SnyfZfiCZiuWYOe_vL2bYlZ62QjhYook,1574
2
- luna_quantum-1.0.3rc1.dist-info/WHEEL,sha256=ABiqaQ5HLOaq_IBEVh7wBJ_1xYigIBUwE50uU96Rijs,108
3
- luna_quantum-1.0.3rc1.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
- luna_quantum-1.0.3rc1.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
1
+ luna_quantum-1.0.3rc2.dist-info/METADATA,sha256=uf6_KnE34UPfQi9K-5gwJ6aMAhyMK0_wooFkWDnX-UQ,1574
2
+ luna_quantum-1.0.3rc2.dist-info/WHEEL,sha256=ABiqaQ5HLOaq_IBEVh7wBJ_1xYigIBUwE50uU96Rijs,108
3
+ luna_quantum-1.0.3rc2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
4
+ luna_quantum-1.0.3rc2.dist-info/licenses/NOTICE,sha256=noPOS8eDj5XoyRO8ZrCxIOh5fSjk0RildIrrqxQlepY,588
5
5
  luna_quantum/__init__.py,sha256=RV92O-Th8ktm0S9kcpfRfECkeeORP-tbDKfpa4u1CiY,3223
6
6
  luna_quantum/__init__.pyi,sha256=tcM9H4ZAKxgt8KYnFmKH5OHSJZ0zv7J8dMdYMZp6m3s,1661
7
- luna_quantum/_core.cpython-311-x86_64-linux-gnu.so,sha256=MNo9g6DLin1R-faV-7JVIpF0uif2YK1URqeo9adGXew,5120992
7
+ luna_quantum/_core.cpython-311-x86_64-linux-gnu.so,sha256=AfeGhoxOdp3ArIRL1cPTwM-woId7X3ffsOSWBQXnX6w,5120992
8
8
  luna_quantum/_core.pyi,sha256=7HL0LZHypfEWlrnjzk3dT0kG3K92v3FkPylQmc9EITs,105472
9
9
  luna_quantum/algorithms/__init__.py,sha256=IX9ZpzY3Do3mTgKqto5vAWwdYrZrM-RemYSf64yxefg,69
10
10
  luna_quantum/aqm_overwrites/__init__.py,sha256=rteObr5JHDnTnRime0Euq9Qy2iDIp6VMpFNHTGVNBe0,46
@@ -13,7 +13,7 @@ luna_quantum/backends/__init__.py,sha256=OaE9cTpXP07x2mhJ_kLFaHPYZJBzdEQhlP_ztnq
13
13
  luna_quantum/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  luna_quantum/client/controllers/__init__.py,sha256=yG8Gwatlm6f-OH2p3WLTyAsNePUER84eBxx67pkRi4A,156
15
15
  luna_quantum/client/controllers/luna_http_client.py,sha256=Siwtm0wQzdRZXw0ilkUmFXbD8tbRuJI7cEceWwfXos4,1057
16
- luna_quantum/client/controllers/luna_platform_client.py,sha256=IqkI3BKbwrtoCZk4pE_lTPFshMyWPEeKkkEm3C6Slvc,5158
16
+ luna_quantum/client/controllers/luna_platform_client.py,sha256=-X16kNpuvmFmVZl_QE9y-Qyek8XB90M2uXDqHYCefss,5216
17
17
  luna_quantum/client/controllers/luna_q.py,sha256=S8-Uvv9TYKC-yRo67T-g0kwIlDoEmluoAQlAl4otrQ4,1930
18
18
  luna_quantum/client/controllers/luna_solve.py,sha256=oqG_dR_82ccysm5Q4Gp9x7vQBb1xvCb9-mRA8qD8xzE,3399
19
19
  luna_quantum/client/error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -256,4 +256,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
256
256
  luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
257
257
  luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
258
258
  luna_quantum/utils.pyi,sha256=afjDJhGiM9KmN2zqVkd6agP8JAsbwUxJBW9tEyiFrdY,1941
259
- luna_quantum-1.0.3rc1.dist-info/RECORD,,
259
+ luna_quantum-1.0.3rc2.dist-info/RECORD,,