willisapi-client 1.9__tar.gz → 1.9.1__tar.gz

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.
Files changed (44) hide show
  1. {willisapi_client-1.9 → willisapi_client-1.9.1}/PKG-INFO +4 -4
  2. {willisapi_client-1.9 → willisapi_client-1.9.1}/README.md +3 -3
  3. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/__version__.py +1 -1
  4. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/download/download_utils.py +54 -5
  5. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/PKG-INFO +4 -4
  6. {willisapi_client-1.9 → willisapi_client-1.9.1}/LICENSE +0 -0
  7. {willisapi_client-1.9 → willisapi_client-1.9.1}/MANIFEST.in +0 -0
  8. {willisapi_client-1.9 → willisapi_client-1.9.1}/RELEASE.md +0 -0
  9. {willisapi_client-1.9 → willisapi_client-1.9.1}/requirements.txt +0 -0
  10. {willisapi_client-1.9 → willisapi_client-1.9.1}/setup.cfg +0 -0
  11. {willisapi_client-1.9 → willisapi_client-1.9.1}/setup.py +0 -0
  12. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_auth.py +0 -0
  13. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_csv_validation.py +0 -0
  14. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_diarize.py +0 -0
  15. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_diarize_call_remaining.py +0 -0
  16. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_download.py +0 -0
  17. {willisapi_client-1.9 → willisapi_client-1.9.1}/tests/test_upload.py +0 -0
  18. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/__init__.py +0 -0
  19. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/logging_setup.py +0 -0
  20. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/__init__.py +0 -0
  21. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/api.py +0 -0
  22. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/auth/__init__.py +0 -0
  23. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/auth/auth_utils.py +0 -0
  24. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/auth/login_manager.py +0 -0
  25. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/diarize/__init__.py +0 -0
  26. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/diarize/diarize_utils.py +0 -0
  27. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/diarize/willisdiarize.py +0 -0
  28. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/diarize/willisdiarize_call_remaining.py +0 -0
  29. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/download/__init__.py +0 -0
  30. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/download/download_handler.py +0 -0
  31. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/exceptions.py +0 -0
  32. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/__init__.py +0 -0
  33. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/csv_validation.py +0 -0
  34. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/language_choices.py +0 -0
  35. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/multipart_upload_handler.py +0 -0
  36. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/upload_utils.py +0 -0
  37. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/services/upload/utils.py +0 -0
  38. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/timer.py +0 -0
  39. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client/willisapi_client.py +0 -0
  40. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/SOURCES.txt +0 -0
  41. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/dependency_links.txt +0 -0
  42. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/not-zip-safe +0 -0
  43. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/requires.txt +0 -0
  44. {willisapi_client-1.9 → willisapi_client-1.9.1}/willisapi_client.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: willisapi_client
3
- Version: 1.9
3
+ Version: 1.9.1
4
4
  Summary: A Python client for willisapi
5
5
  Home-page: https://github.com/bklynhlth/willsiapi_client
6
6
  Author: bklynhlth
@@ -39,7 +39,7 @@ Conversion notes:
39
39
 
40
40
  WillisAPI Client is the python interface for Brooklyn Health’s WillisAPI.
41
41
 
42
- Official documentation for WillisAPI Client can be found in the [Github Wiki](www.github.com/bklynhlth/willisapi_client/wiki).
42
+ Official documentation for WillisAPI Client can be found in the [Github Wiki](http://www.github.com/bklynhlth/willisapi_client/wiki).
43
43
 
44
44
  To learn more about Brooklyn Health or WillisAPI, visit [brooklyn.health](https://www.brooklyn.health) or [getintouch@brooklyn.health](mailto:getintouch@brooklyn.health).
45
45
 
@@ -82,10 +82,10 @@ measures = willisapi.download(key, 'project_name')
82
82
  ```
83
83
 
84
84
 
85
- If you run into trouble while using the client, please raise it in the [Issues](www.github.com/bklynhlth/willisapi_client/issues) tab.
85
+ If you run into trouble while using the client, please raise it in the [Issues](http://www.github.com/bklynhlth/willisapi_client/issues) tab.
86
86
 
87
87
  ***
88
88
 
89
89
  Brooklyn Health is a small team of clinicians, scientists, and engineers based in Brooklyn, NY.
90
90
 
91
- We develop and maintain [OpenWillis](www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
91
+ We develop and maintain [OpenWillis](http://www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
@@ -27,7 +27,7 @@ Conversion notes:
27
27
 
28
28
  WillisAPI Client is the python interface for Brooklyn Health’s WillisAPI.
29
29
 
30
- Official documentation for WillisAPI Client can be found in the [Github Wiki](www.github.com/bklynhlth/willisapi_client/wiki).
30
+ Official documentation for WillisAPI Client can be found in the [Github Wiki](http://www.github.com/bklynhlth/willisapi_client/wiki).
31
31
 
32
32
  To learn more about Brooklyn Health or WillisAPI, visit [brooklyn.health](https://www.brooklyn.health) or [getintouch@brooklyn.health](mailto:getintouch@brooklyn.health).
33
33
 
@@ -70,10 +70,10 @@ measures = willisapi.download(key, 'project_name')
70
70
  ```
71
71
 
72
72
 
73
- If you run into trouble while using the client, please raise it in the [Issues](www.github.com/bklynhlth/willisapi_client/issues) tab.
73
+ If you run into trouble while using the client, please raise it in the [Issues](http://www.github.com/bklynhlth/willisapi_client/issues) tab.
74
74
 
75
75
  ***
76
76
 
77
77
  Brooklyn Health is a small team of clinicians, scientists, and engineers based in Brooklyn, NY.
78
78
 
79
- We develop and maintain [OpenWillis](www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
79
+ We develop and maintain [OpenWillis](http://www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
@@ -2,7 +2,7 @@
2
2
  """
3
3
 
4
4
  __client__ = "willisapi_client"
5
- __latestVersion__ = "1.9"
5
+ __latestVersion__ = "1.9.1"
6
6
  __url__ = "https://github.com/bklynhlth/willsiapi_client"
7
7
  __short_description__ = "A Python client for willisapi"
8
8
  __content_type__ = "text/markdown"
@@ -91,6 +91,15 @@ class DownloadUtils:
91
91
  """
92
92
  return (
93
93
  response["project"]["participant"][pt]["participant_Id"],
94
+ response["project"]["participant"][pt]["age"],
95
+ response["project"]["participant"][pt]["sex"],
96
+ response["project"]["participant"][pt]["race"],
97
+ response["project"]["participant"][pt]["study_arm"],
98
+ response["project"]["participant"][pt]["clinical_score_a"],
99
+ response["project"]["participant"][pt]["clinical_score_b"],
100
+ response["project"]["participant"][pt]["clinical_score_c"],
101
+ response["project"]["participant"][pt]["clinical_score_d"],
102
+ response["project"]["participant"][pt]["clinical_score_e"],
94
103
  len(response["project"]["participant"][pt]["results"]),
95
104
  )
96
105
 
@@ -133,7 +142,21 @@ class DownloadUtils:
133
142
  column_names: A list of static column names of the dataframe
134
143
  ------------------------------------------------------------------------------------------------------
135
144
  """
136
- return ["project_name", "pt_id_external", "filename", "time_collected"]
145
+ return [
146
+ "project_name",
147
+ "pt_id_external",
148
+ "filename",
149
+ "time_collected",
150
+ "age",
151
+ "sex",
152
+ "race",
153
+ "study_arm",
154
+ "clinical_score_a",
155
+ "clinical_score_b",
156
+ "clinical_score_c",
157
+ "clinical_score_d",
158
+ "clinical_score_e",
159
+ ]
137
160
 
138
161
  def _get_summary_df_from_json(response, pt, rec, workflow_tag):
139
162
  """
@@ -226,16 +249,42 @@ class DownloadUtils:
226
249
  data
227
250
  )
228
251
  for pt in range(0, num_pts):
229
- (pt_id_ext, num_records) = DownloadUtils._get_pt_id_ext_and_num_records(
230
- data, pt
231
- )
252
+ (
253
+ pt_id_ext,
254
+ age,
255
+ sex,
256
+ race,
257
+ study_arm,
258
+ clinical_score_a,
259
+ clinical_score_b,
260
+ clinical_score_c,
261
+ clinical_score_d,
262
+ clinical_score_e,
263
+ num_records,
264
+ ) = DownloadUtils._get_pt_id_ext_and_num_records(data, pt)
232
265
  for rec in range(0, num_records):
233
266
  (
234
267
  filename,
235
268
  time_collected,
236
269
  ) = DownloadUtils._get_filename_and_timestamp(data, pt, rec)
237
270
  main_df = pd.DataFrame(
238
- [[project_name, pt_id_ext, filename, time_collected]],
271
+ [
272
+ [
273
+ project_name,
274
+ pt_id_ext,
275
+ filename,
276
+ time_collected,
277
+ age,
278
+ sex,
279
+ race,
280
+ study_arm,
281
+ clinical_score_a,
282
+ clinical_score_b,
283
+ clinical_score_c,
284
+ clinical_score_d,
285
+ clinical_score_e,
286
+ ]
287
+ ],
239
288
  columns=DownloadUtils._get_defined_columns(),
240
289
  )
241
290
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: willisapi-client
3
- Version: 1.9
3
+ Version: 1.9.1
4
4
  Summary: A Python client for willisapi
5
5
  Home-page: https://github.com/bklynhlth/willsiapi_client
6
6
  Author: bklynhlth
@@ -39,7 +39,7 @@ Conversion notes:
39
39
 
40
40
  WillisAPI Client is the python interface for Brooklyn Health’s WillisAPI.
41
41
 
42
- Official documentation for WillisAPI Client can be found in the [Github Wiki](www.github.com/bklynhlth/willisapi_client/wiki).
42
+ Official documentation for WillisAPI Client can be found in the [Github Wiki](http://www.github.com/bklynhlth/willisapi_client/wiki).
43
43
 
44
44
  To learn more about Brooklyn Health or WillisAPI, visit [brooklyn.health](https://www.brooklyn.health) or [getintouch@brooklyn.health](mailto:getintouch@brooklyn.health).
45
45
 
@@ -82,10 +82,10 @@ measures = willisapi.download(key, 'project_name')
82
82
  ```
83
83
 
84
84
 
85
- If you run into trouble while using the client, please raise it in the [Issues](www.github.com/bklynhlth/willisapi_client/issues) tab.
85
+ If you run into trouble while using the client, please raise it in the [Issues](http://www.github.com/bklynhlth/willisapi_client/issues) tab.
86
86
 
87
87
  ***
88
88
 
89
89
  Brooklyn Health is a small team of clinicians, scientists, and engineers based in Brooklyn, NY.
90
90
 
91
- We develop and maintain [OpenWillis](www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
91
+ We develop and maintain [OpenWillis](http://www.github.com/bklynhlth/openwillis), an open source python library for digital health measurement.
File without changes