fountain-life-service-clients 3.32.0__py3-none-any.whl → 3.34.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.
@@ -9,6 +9,7 @@ from typing import (
9
9
  Unpack,
10
10
  cast,
11
11
  )
12
+ from urllib.parse import quote
12
13
 
13
14
  from fountain_life_service_clients._base_client import (
14
15
  AlphaConfig,
@@ -16,6 +17,19 @@ from fountain_life_service_clients._base_client import (
16
17
  BaseClient,
17
18
  )
18
19
 
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
+
19
33
  SearchVariantsRequest = TypedDict(
20
34
  "SearchVariantsRequest",
21
35
  {
@@ -193,6 +207,13 @@ class GenomicsServiceClient(BaseClient):
193
207
  kwargs = {"target": "lambda://genomics-service:deployed", **(cfg or {})}
194
208
  super().__init__(**kwargs)
195
209
 
210
+ async def get_variant_set(self, id: str):
211
+ """Get a variant set by id"""
212
+ res = await self.client.request(
213
+ path=f"/v1/genomics/variantsets/{quote(id)}", method="GET"
214
+ )
215
+ return cast(AlphaResponse[GetVariantSetResponse], res)
216
+
196
217
  async def search_variants(self, body: SearchVariantsRequest):
197
218
  """Search for variants"""
198
219
  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.32.0
3
+ Version: 3.34.0
4
4
  Summary:
5
5
  License: UNLICENSED
6
6
  Author: Fountain Life
@@ -13,7 +13,7 @@ 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=Am6cAg_hQKhY9W6bHjKyW4LQw_S2W0IiKNagkD8sQis,7425
16
+ fountain_life_service_clients/genomics_service.py,sha256=WQBuGwuup-0cDKmNsAZJbpo4ABroA9H_w5Ouph6cNa8,7948
17
17
  fountain_life_service_clients/invitation_service.py,sha256=tKWgb-bGIwT4x3MWSLiVChQRaZURj43S6Uyrg3Lt7HA,2596
18
18
  fountain_life_service_clients/medical_results_service_results.py,sha256=L0clTifU4LWWKgBsIzEfelmkaICxG1_q8sHyrdA5es4,4876
19
19
  fountain_life_service_clients/member_notification_service.py,sha256=wRkgmUqAV59BV81c3Iwz7JxSTuOLagHrcJcXvMbdBco,1814
@@ -25,6 +25,6 @@ fountain_life_service_clients/rules_service.py,sha256=VxPYboYQmw--6Kn78RKu6_9as1
25
25
  fountain_life_service_clients/scheduler_service.py,sha256=IkwRns_QHh6fx1IZWEXZ35DeRiW7OHaROM5wjWubZm4,4440
26
26
  fountain_life_service_clients/survey_service.py,sha256=hxOl3gBDxEdjrsKcMCoPl9RxumQzRT-e4zTbEAA0Iq4,13343
27
27
  fountain_life_service_clients/user_service.py,sha256=rM9xcF-VzdLp9aDOhg1UbecX2VPPMxH9PlgpNpGdC18,4253
28
- fountain_life_service_clients-3.32.0.dist-info/METADATA,sha256=y0-VaE64BYAoWHg6EIy9coMQYZ_T2RZfCVpT7l8s8B0,1405
29
- fountain_life_service_clients-3.32.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
30
- fountain_life_service_clients-3.32.0.dist-info/RECORD,,
28
+ fountain_life_service_clients-3.34.0.dist-info/METADATA,sha256=p0Z4Fsg0C4qvODG5zDjjaG7ZowV5FlMD1KvaUUQZ_dQ,1405
29
+ fountain_life_service_clients-3.34.0.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
30
+ fountain_life_service_clients-3.34.0.dist-info/RECORD,,