fountain-life-service-clients 3.34.2__py3-none-any.whl → 3.35.0__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,34 @@
1
+ # This file was generated automatically. Do not edit it directly.
2
+ from typing import List, NotRequired, TypedDict, Unpack, cast
3
+ from urllib.parse import quote
4
+
5
+ from fountain_life_service_clients._base_client import (
6
+ AlphaConfig,
7
+ AlphaResponse,
8
+ BaseClient,
9
+ )
10
+
11
+
12
+ class Sample(TypedDict):
13
+ sampleId: str
14
+ patientId: NotRequired[str]
15
+
16
+
17
+ class GetVariantSetResponse(TypedDict):
18
+ id: str
19
+ datasetId: str
20
+ patientId: NotRequired[str]
21
+ samples: NotRequired[List[Sample]]
22
+
23
+
24
+ class Ga4ghServiceClient(BaseClient):
25
+ def __init__(self, **cfg: Unpack[AlphaConfig]):
26
+ kwargs = {"target": "lambda://ga4gh-service:deployed", **(cfg or {})}
27
+ super().__init__(**kwargs)
28
+
29
+ async def get_variant_set(self, account: str, id: str):
30
+ """Get a variant set by id"""
31
+ res = await self.client.request(
32
+ path=f"/{quote(account)}/v1/variantsets/{quote(id)}", method="GET"
33
+ )
34
+ return cast(AlphaResponse[GetVariantSetResponse], res)
@@ -9,7 +9,6 @@ from typing import (
9
9
  Unpack,
10
10
  cast,
11
11
  )
12
- from urllib.parse import quote
13
12
 
14
13
  from fountain_life_service_clients._base_client import (
15
14
  AlphaConfig,
@@ -17,19 +16,6 @@ from fountain_life_service_clients._base_client import (
17
16
  BaseClient,
18
17
  )
19
18
 
20
-
21
- class Sample(TypedDict):
22
- sampleId: str
23
- patientId: NotRequired[str]
24
-
25
-
26
- class GetVariantSetResponse(TypedDict):
27
- id: str
28
- datasetId: str
29
- patientId: NotRequired[str]
30
- samples: NotRequired[List[Sample]]
31
-
32
-
33
19
  SearchVariantsRequest = TypedDict(
34
20
  "SearchVariantsRequest",
35
21
  {
@@ -212,13 +198,6 @@ class GenomicsServiceClient(BaseClient):
212
198
  kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
213
199
  super().__init__(**kwargs)
214
200
 
215
- async def get_variant_set(self, id: str):
216
- """Get a variant set by id"""
217
- res = await self.client.request(
218
- path=f"/v1/genomics/variantsets/{quote(id)}", method="GET"
219
- )
220
- return cast(AlphaResponse[GetVariantSetResponse], res)
221
-
222
201
  async def search_variants(self, body: SearchVariantsRequest):
223
202
  """Search for variants"""
224
203
  res = await self.client.request(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fountain-life-service-clients
3
- Version: 3.34.2
3
+ Version: 3.35.0
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -13,7 +13,8 @@ fountain_life_service_clients/email_service_sms.py,sha256=6W9Ba0Qj8oRtPMOrMx2HPk
13
13
  fountain_life_service_clients/fhir_post_processor_service.py,sha256=4IsyyRoCIzSNIBMvJFi1QyFuekikmtoY7ahQCh8Oncw,1355
14
14
  fountain_life_service_clients/fhir_search_service.py,sha256=O_y8YrOjvKj_Tfs5Pj4MM4X6RvV1E2s762lRH5U8ji8,6014
15
15
  fountain_life_service_clients/file_service.py,sha256=CY36fpvCAi17npAKAWkFDDaNhwbvTC5hx-sGZmPfyBM,4046
16
- fountain_life_service_clients/genomics_service.py,sha256=folZvWiDFZltWqcle_4Ch-b_cg53Sw36oSjeeXZSkdY,8041
16
+ fountain_life_service_clients/ga4gh_service.py,sha256=SSFdYM_oW2ZATUOaZT_xjp3jlEJt7rR_ai2US6HolgI,989
17
+ fountain_life_service_clients/genomics_service.py,sha256=twqjv2jTHmetJCwQou1HKS-etXt1NpKctZnIt5q1uXY,7518
17
18
  fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
18
19
  fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
19
20
  fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
@@ -25,6 +26,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
25
26
  fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
26
27
  fountain_life_service_clients/survey_service.py,sha256=hxOl3gBDxEdjrsKcMCoPl9RxumQzRT-e4zTbEAA0Iq4,13343
27
28
  fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
28
- fountain_life_service_clients-3.34.2.dist-info/METADATA,sha256=oaAiqWtnGu8Wh0Fl24HXsssry0-e7DThMvSWevjpqH0,1405
29
- fountain_life_service_clients-3.34.2.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
30
- fountain_life_service_clients-3.34.2.dist-info/RECORD,,
29
+ fountain_life_service_clients-3.35.0.dist-info/METADATA,sha256=iCksGOa4Y6VFdqmnDyRZQInv8UfNtERocP278IwaBRQ,1405
30
+ fountain_life_service_clients-3.35.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
31
+ fountain_life_service_clients-3.35.0.dist-info/RECORD,,