luna-quantum 1.0.3rc1__cp311-cp311-musllinux_1_2_x86_64.whl → 1.0.3rc2__cp311-cp311-musllinux_1_2_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,11 +1,11 @@
1
- luna_quantum-1.0.3rc1.dist-info/METADATA,sha256=ZIsgDgMD7Y_SnyfZfiCZiuWYOe_vL2bYlZ62QjhYook,1574
2
- luna_quantum-1.0.3rc1.dist-info/WHEEL,sha256=S7keqk-a-E6qCrb1ac9UyDy7gogPmNYS5Df955oxChI,107
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=S7keqk-a-E6qCrb1ac9UyDy7gogPmNYS5Df955oxChI,107
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.libs/libgcc_s-02f3f192.so.1,sha256=gjFsHm1qybp9dieBvfXS4hYl26XxiP3ydWHYntFhKVk,189441
6
6
  luna_quantum/__init__.py,sha256=RV92O-Th8ktm0S9kcpfRfECkeeORP-tbDKfpa4u1CiY,3223
7
7
  luna_quantum/__init__.pyi,sha256=tcM9H4ZAKxgt8KYnFmKH5OHSJZ0zv7J8dMdYMZp6m3s,1661
8
- luna_quantum/_core.cpython-311-x86_64-linux-musl.so,sha256=Gup5yscIVyDDuOiS0tC6zS_FtYhtyjSCZi9lA2wT-u4,5140313
8
+ luna_quantum/_core.cpython-311-x86_64-linux-musl.so,sha256=r3PcSnqLuI_6OGdf_7LaQscrEvtrxDT4fxBMXiC6TPw,5140313
9
9
  luna_quantum/_core.pyi,sha256=7HL0LZHypfEWlrnjzk3dT0kG3K92v3FkPylQmc9EITs,105472
10
10
  luna_quantum/algorithms/__init__.py,sha256=IX9ZpzY3Do3mTgKqto5vAWwdYrZrM-RemYSf64yxefg,69
11
11
  luna_quantum/aqm_overwrites/__init__.py,sha256=rteObr5JHDnTnRime0Euq9Qy2iDIp6VMpFNHTGVNBe0,46
@@ -14,7 +14,7 @@ luna_quantum/backends/__init__.py,sha256=OaE9cTpXP07x2mhJ_kLFaHPYZJBzdEQhlP_ztnq
14
14
  luna_quantum/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  luna_quantum/client/controllers/__init__.py,sha256=yG8Gwatlm6f-OH2p3WLTyAsNePUER84eBxx67pkRi4A,156
16
16
  luna_quantum/client/controllers/luna_http_client.py,sha256=Siwtm0wQzdRZXw0ilkUmFXbD8tbRuJI7cEceWwfXos4,1057
17
- luna_quantum/client/controllers/luna_platform_client.py,sha256=IqkI3BKbwrtoCZk4pE_lTPFshMyWPEeKkkEm3C6Slvc,5158
17
+ luna_quantum/client/controllers/luna_platform_client.py,sha256=-X16kNpuvmFmVZl_QE9y-Qyek8XB90M2uXDqHYCefss,5216
18
18
  luna_quantum/client/controllers/luna_q.py,sha256=S8-Uvv9TYKC-yRo67T-g0kwIlDoEmluoAQlAl4otrQ4,1930
19
19
  luna_quantum/client/controllers/luna_solve.py,sha256=oqG_dR_82ccysm5Q4Gp9x7vQBb1xvCb9-mRA8qD8xzE,3399
20
20
  luna_quantum/client/error/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -257,4 +257,4 @@ luna_quantum/util/pretty_base.py,sha256=Vv3dYpMsydOPYFOm-0lCCuJIe-62oYkI64Zy_bah
257
257
  luna_quantum/util/pydantic_utils.py,sha256=nhl_SdLJVAizrtLVHvnbco84g8CdBVdVxN_jlXiv82w,1263
258
258
  luna_quantum/utils.py,sha256=pBOkGXNJXlOzxAwTJv8nCj32Q6WNeh3t6Ka3lmTgy9c,134
259
259
  luna_quantum/utils.pyi,sha256=afjDJhGiM9KmN2zqVkd6agP8JAsbwUxJBW9tEyiFrdY,1941
260
- luna_quantum-1.0.3rc1.dist-info/RECORD,,
260
+ luna_quantum-1.0.3rc2.dist-info/RECORD,,