pysodafair 0.1.62__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.
Files changed (77) hide show
  1. pysoda/__init__.py +0 -0
  2. pysoda/constants.py +3 -0
  3. pysoda/core/__init__.py +10 -0
  4. pysoda/core/dataset_generation/__init__.py +11 -0
  5. pysoda/core/dataset_generation/manifestSession/__init__.py +1 -0
  6. pysoda/core/dataset_generation/manifestSession/manifest_session.py +146 -0
  7. pysoda/core/dataset_generation/upload.py +3951 -0
  8. pysoda/core/dataset_importing/__init__.py +1 -0
  9. pysoda/core/dataset_importing/import_dataset.py +662 -0
  10. pysoda/core/metadata/__init__.py +20 -0
  11. pysoda/core/metadata/code_description.py +109 -0
  12. pysoda/core/metadata/constants.py +32 -0
  13. pysoda/core/metadata/dataset_description.py +188 -0
  14. pysoda/core/metadata/excel_utils.py +41 -0
  15. pysoda/core/metadata/helpers.py +250 -0
  16. pysoda/core/metadata/manifest.py +112 -0
  17. pysoda/core/metadata/manifest_package/__init__.py +2 -0
  18. pysoda/core/metadata/manifest_package/manifest.py +0 -0
  19. pysoda/core/metadata/manifest_package/manifest_import.py +29 -0
  20. pysoda/core/metadata/manifest_package/manifest_writer.py +666 -0
  21. pysoda/core/metadata/performances.py +46 -0
  22. pysoda/core/metadata/resources.py +53 -0
  23. pysoda/core/metadata/samples.py +184 -0
  24. pysoda/core/metadata/sites.py +51 -0
  25. pysoda/core/metadata/subjects.py +172 -0
  26. pysoda/core/metadata/submission.py +91 -0
  27. pysoda/core/metadata/text_metadata.py +47 -0
  28. pysoda/core/metadata_templates/CHANGES +1 -0
  29. pysoda/core/metadata_templates/LICENSE +1 -0
  30. pysoda/core/metadata_templates/README.md +4 -0
  31. pysoda/core/metadata_templates/__init__.py +0 -0
  32. pysoda/core/metadata_templates/code_description.xlsx +0 -0
  33. pysoda/core/metadata_templates/code_parameters.xlsx +0 -0
  34. pysoda/core/metadata_templates/dataset_description.xlsx +0 -0
  35. pysoda/core/metadata_templates/manifest.xlsx +0 -0
  36. pysoda/core/metadata_templates/performances.xlsx +0 -0
  37. pysoda/core/metadata_templates/resources.xlsx +0 -0
  38. pysoda/core/metadata_templates/samples.xlsx +0 -0
  39. pysoda/core/metadata_templates/sites.xlsx +0 -0
  40. pysoda/core/metadata_templates/subjects.xlsx +0 -0
  41. pysoda/core/metadata_templates/subjects_pools_samples_structure.xlsx +0 -0
  42. pysoda/core/metadata_templates/subjects_pools_samples_structure_example.xlsx +0 -0
  43. pysoda/core/metadata_templates/submission.xlsx +0 -0
  44. pysoda/core/permissions/__init__.py +1 -0
  45. pysoda/core/permissions/permissions.py +31 -0
  46. pysoda/core/pysoda/__init__.py +2 -0
  47. pysoda/core/pysoda/soda.py +34 -0
  48. pysoda/core/pysoda/soda_object.py +55 -0
  49. pysoda/core/upload_manifests/__init__.py +1 -0
  50. pysoda/core/upload_manifests/upload_manifests.py +37 -0
  51. pysoda/schema/__init__.py +0 -0
  52. pysoda/schema/code_description.json +629 -0
  53. pysoda/schema/dataset_description.json +295 -0
  54. pysoda/schema/manifest.json +60 -0
  55. pysoda/schema/performances.json +44 -0
  56. pysoda/schema/resources.json +39 -0
  57. pysoda/schema/samples.json +97 -0
  58. pysoda/schema/sites.json +38 -0
  59. pysoda/schema/soda_schema.json +664 -0
  60. pysoda/schema/subjects.json +131 -0
  61. pysoda/schema/submission_schema.json +28 -0
  62. pysoda/utils/__init__.py +9 -0
  63. pysoda/utils/authentication.py +381 -0
  64. pysoda/utils/config.py +68 -0
  65. pysoda/utils/exceptions.py +156 -0
  66. pysoda/utils/logger.py +6 -0
  67. pysoda/utils/metadata_utils.py +74 -0
  68. pysoda/utils/pennsieveAgentUtils.py +11 -0
  69. pysoda/utils/pennsieveUtils.py +118 -0
  70. pysoda/utils/profile.py +28 -0
  71. pysoda/utils/schema_validation.py +133 -0
  72. pysoda/utils/time_utils.py +5 -0
  73. pysoda/utils/upload_utils.py +108 -0
  74. pysodafair-0.1.62.dist-info/METADATA +190 -0
  75. pysodafair-0.1.62.dist-info/RECORD +77 -0
  76. pysodafair-0.1.62.dist-info/WHEEL +4 -0
  77. pysodafair-0.1.62.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,629 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "RRID_term": {
5
+ "type": "array",
6
+ "items": {
7
+ "type": "string",
8
+ "description": "The term used to identify the resource in the RRID database."
9
+ },
10
+ "description": "The term used to identify the resource in the RRID database."
11
+ },
12
+ "RRID_identifier": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string",
16
+ "description": "The identifier used to identify the resource in the RRID database."
17
+ }
18
+ },
19
+ "ontology_term": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string",
23
+ "description": "The term used to identify the resource in the ontology database."
24
+ },
25
+ "description": "The term used to identify the resource in the ontology database."
26
+ },
27
+ "ontology_identifier": {
28
+ "type": "string",
29
+ "items": {
30
+ "type": "string",
31
+ "description": "The identifier used to identify the resource in the ontology database."
32
+ },
33
+ "description": "The identifier used to identify the resource in the ontology database."
34
+ },
35
+ "ten_simple_rules": {
36
+ "type": "object",
37
+ "properties": {
38
+ "TSR1": {
39
+ "type": "object",
40
+ "properties": {
41
+ "Link": {
42
+ "type": "string",
43
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
44
+ "description": "The URL or DOI of the publication that describes the tool or method."
45
+ },
46
+ "Rating": {
47
+ "type": "string",
48
+ "description": "The rating"
49
+ },
50
+ "Target": {
51
+ "type": "string",
52
+ "description": "The target"
53
+ },
54
+ "Target Justification": {
55
+ "type": "string",
56
+ "description": "The target justification"
57
+ },
58
+ "Text": {
59
+ "type": "string",
60
+ "description": "Text"
61
+ }
62
+ },
63
+ "required": [
64
+ "Link",
65
+ "Rating",
66
+ "Target",
67
+ "Target Justification",
68
+ "Text"
69
+ ]
70
+ },
71
+ "TSR2": {
72
+ "type": "object",
73
+ "properties": {
74
+ "Link": {
75
+ "type": "string",
76
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
77
+ "description": "The URL or DOI of the publication that describes the tool or method."
78
+ },
79
+ "Rating": {
80
+ "type": "string",
81
+ "description": "The rating"
82
+ },
83
+ "Target": {
84
+ "type": "string",
85
+ "description": "The target"
86
+ },
87
+ "Target Justification": {
88
+ "type": "string",
89
+ "description": "The target justification"
90
+ },
91
+ "Text": {
92
+ "type": "string",
93
+ "description": "Text"
94
+ }
95
+ },
96
+ "required": [
97
+ "Link",
98
+ "Rating",
99
+ "Target",
100
+ "Target Justification",
101
+ "Text"
102
+ ]
103
+ },
104
+ "TSR3a": {
105
+ "type": "object",
106
+ "properties": {
107
+ "Link": {
108
+ "type": "string",
109
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
110
+ "description": "The URL or DOI of the publication that describes the tool or method."
111
+ },
112
+ "Rating": {
113
+ "type": "string",
114
+ "description": "The rating"
115
+ },
116
+ "Target": {
117
+ "type": "string",
118
+ "description": "The target"
119
+ },
120
+ "Target Justification": {
121
+ "type": "string",
122
+ "description": "The target justification"
123
+ },
124
+ "Text": {
125
+ "type": "string",
126
+ "description": "Text"
127
+ }
128
+ },
129
+ "required": [
130
+ "Link",
131
+ "Rating",
132
+ "Target",
133
+ "Target Justification",
134
+ "Text"
135
+ ]
136
+ },
137
+ "TSR3b": {
138
+ "type": "object",
139
+ "properties": {
140
+ "Link": {
141
+ "type": "string",
142
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
143
+ "description": "The URL or DOI of the publication that describes the tool or method."
144
+ }
145
+ },
146
+ "required": [
147
+ "Link"
148
+ ]
149
+ },
150
+ "TSR3c": {
151
+ "type": "object",
152
+ "properties": {
153
+ "Link": {
154
+ "type": "string",
155
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
156
+ "description": "The URL or DOI of the publication that describes the tool or method."
157
+ }
158
+ },
159
+ "required": [
160
+ "Link"
161
+ ]
162
+ },
163
+ "TSR4": {
164
+ "type": "object",
165
+ "properties": {
166
+ "Link": {
167
+ "type": "string",
168
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
169
+ "description": "The URL or DOI of the publication that describes the tool or method."
170
+ },
171
+ "Rating": {
172
+ "type": "string",
173
+ "description": "The rating"
174
+ },
175
+ "Target": {
176
+ "type": "string",
177
+ "description": "The target"
178
+ },
179
+ "Target Justification": {
180
+ "type": "string",
181
+ "description": "The target justification"
182
+ },
183
+ "Text": {
184
+ "type": "string",
185
+ "description": "Text"
186
+ }
187
+ },
188
+ "required": [
189
+ "Link",
190
+ "Rating",
191
+ "Target",
192
+ "Target Justification",
193
+ "Text"
194
+ ]
195
+ },
196
+ "TSR5": {
197
+ "type": "object",
198
+ "properties": {
199
+ "Link": {
200
+ "type": "string",
201
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
202
+ "description": "The URL or DOI of the publication that describes the tool or method."
203
+ },
204
+ "Rating": {
205
+ "type": "string",
206
+ "description": "The rating"
207
+ },
208
+ "Target": {
209
+ "type": "string",
210
+ "description": "The target"
211
+ },
212
+ "Target Justification": {
213
+ "type": "string",
214
+ "description": "The target justification"
215
+ },
216
+ "Text": {
217
+ "type": "string",
218
+ "description": "Text"
219
+ }
220
+ },
221
+ "required": [
222
+ "Link",
223
+ "Rating",
224
+ "Target",
225
+ "Target Justification",
226
+ "Text"
227
+ ]
228
+ },
229
+ "TSR6": {
230
+ "type": "object",
231
+ "properties": {
232
+ "Link": {
233
+ "type": "string",
234
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
235
+ "description": "The URL or DOI of the publication that describes the tool or method."
236
+ },
237
+ "Rating": {
238
+ "type": "string",
239
+ "description": "The rating"
240
+ },
241
+ "Target": {
242
+ "type": "string",
243
+ "description": "The target"
244
+ },
245
+ "Target Justification": {
246
+ "type": "string",
247
+ "description": "The target justification"
248
+ },
249
+ "Text": {
250
+ "type": "string",
251
+ "description": "Text"
252
+ }
253
+ },
254
+ "required": [
255
+ "Link",
256
+ "Rating",
257
+ "Target",
258
+ "Target Justification",
259
+ "Text"
260
+ ]
261
+ },
262
+ "TSR7a": {
263
+ "type": "object",
264
+ "properties": {
265
+ "Link": {
266
+ "type": "string",
267
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
268
+ "description": "The URL or DOI of the publication that describes the tool or method."
269
+ },
270
+ "Rating": {
271
+ "type": "string",
272
+ "description": "The rating"
273
+ },
274
+ "Target": {
275
+ "type": "string",
276
+ "description": "The target"
277
+ },
278
+ "Target Justification": {
279
+ "type": "string",
280
+ "description": "The target justification"
281
+ },
282
+ "Text": {
283
+ "type": "string",
284
+ "description": "Text"
285
+ }
286
+ },
287
+ "required": [
288
+ "Link",
289
+ "Rating",
290
+ "Target",
291
+ "Target Justification",
292
+ "Text"
293
+ ]
294
+ },
295
+ "TSR7b": {
296
+ "type": "object",
297
+ "properties": {
298
+ "Link": {
299
+ "type": "string",
300
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
301
+ "description": "The URL or DOI of the publication that describes the tool or method."
302
+ }
303
+ },
304
+ "required": [
305
+ "Link"
306
+ ]
307
+ },
308
+ "TSR7c": {
309
+ "type": "object",
310
+ "properties": {
311
+ "Link": {
312
+ "type": "string",
313
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
314
+ "description": "The URL or DOI of the publication that describes the tool or method."
315
+ }
316
+ },
317
+ "required": [
318
+ "Link"
319
+ ]
320
+ },
321
+ "TSR7d": {
322
+ "type": "object",
323
+ "properties": {
324
+ "Link": {
325
+ "type": "string",
326
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
327
+ "description": "The URL or DOI of the publication that describes the tool or method."
328
+ }
329
+ },
330
+ "required": [
331
+ "Link"
332
+ ]
333
+ },
334
+ "TSR7e": {
335
+ "type": "object",
336
+ "properties": {
337
+ "Link": {
338
+ "type": "string",
339
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
340
+ "description": "The URL or DOI of the publication that describes the tool or method."
341
+ }
342
+ },
343
+ "required": [
344
+ "Link"
345
+ ]
346
+ },
347
+ "TSR8a": {
348
+ "type": "object",
349
+ "properties": {
350
+ "Link": {
351
+ "type": "string",
352
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
353
+ "description": "The URL or DOI of the publication that describes the tool or method."
354
+ },
355
+ "Rating": {
356
+ "type": "string",
357
+ "description": "The rating"
358
+ },
359
+ "Target": {
360
+ "type": "string",
361
+ "description": "The target"
362
+ },
363
+ "Target Justification": {
364
+ "type": "string",
365
+ "description": "The target justification"
366
+ },
367
+ "Text": {
368
+ "type": "string",
369
+ "description": "Text"
370
+ }
371
+ },
372
+ "required": [
373
+ "Link",
374
+ "Rating",
375
+ "Target",
376
+ "Target Justification",
377
+ "Text"
378
+ ]
379
+ },
380
+ "TSR8b": {
381
+ "type": "object",
382
+ "properties": {
383
+ "Link": {
384
+ "type": "string",
385
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
386
+ "description": "The URL or DOI of the publication that describes the tool or method."
387
+ }
388
+ },
389
+ "required": [
390
+ "Link"
391
+ ]
392
+ },
393
+ "TSR9": {
394
+ "type": "object",
395
+ "properties": {
396
+ "Link": {
397
+ "type": "string",
398
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
399
+ "description": "The URL or DOI of the publication that describes the tool or method."
400
+ },
401
+ "Rating": {
402
+ "type": "string",
403
+ "description": "The rating"
404
+ },
405
+ "Target": {
406
+ "type": "string",
407
+ "description": "The target"
408
+ },
409
+ "Target Justification": {
410
+ "type": "string",
411
+ "description": "The target justification"
412
+ },
413
+ "Text": {
414
+ "type": "string",
415
+ "description": "Text"
416
+ }
417
+ },
418
+ "required": [
419
+ "Link",
420
+ "Rating",
421
+ "Target",
422
+ "Target Justification",
423
+ "Text"
424
+ ]
425
+ },
426
+ "TSR10a": {
427
+ "type": "object",
428
+ "properties": {
429
+ "Link": {
430
+ "type": "string",
431
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
432
+ "description": "The URL or DOI of the publication that describes the tool or method."
433
+ },
434
+ "Rating": {
435
+ "type": "string",
436
+ "description": "The rating"
437
+ },
438
+ "Target": {
439
+ "type": "string",
440
+ "description": "The target"
441
+ },
442
+ "Target Justification": {
443
+ "type": "string",
444
+ "description": "The target justification"
445
+ },
446
+ "Text": {
447
+ "type": "string",
448
+ "description": "Text"
449
+ }
450
+ },
451
+ "required": [
452
+ "Link",
453
+ "Rating",
454
+ "Target",
455
+ "Target Justification",
456
+ "Text"
457
+ ]
458
+ },
459
+ "TSR10b": {
460
+ "type": "object",
461
+ "properties": {
462
+ "Link": {
463
+ "type": "string",
464
+ "pattern": "^(https?://(?:www\\.)?|doi:)[\\w\\d./?=#]+$",
465
+ "description": "The URL or DOI of the publication that describes the tool or method."
466
+ }
467
+ },
468
+ "required": [
469
+ "Link"
470
+ ]
471
+ }
472
+ },
473
+ "required": [
474
+ "TSR1",
475
+ "TSR2",
476
+ "TSR3a",
477
+ "TSR3b",
478
+ "TSR3c",
479
+ "TSR4",
480
+ "TSR5",
481
+ "TSR6",
482
+ "TSR7a",
483
+ "TSR7b",
484
+ "TSR7c",
485
+ "TSR7d",
486
+ "TSR7e",
487
+ "TSR8a",
488
+ "TSR8b",
489
+ "TSR9",
490
+ "TSR10a",
491
+ "TSR10b"
492
+ ]
493
+ },
494
+ "input_output_information": {
495
+ "type": "object",
496
+ "properties": {
497
+ "number_of_inputs": {
498
+ "type": "number"
499
+ },
500
+ "inputs": {
501
+ "type": "array",
502
+ "items": {
503
+ "type": "object",
504
+ "properties": {
505
+ "input_parameter_name": {
506
+ "type": "string"
507
+ },
508
+ "input parameter type": {
509
+ "type": "string"
510
+ },
511
+ "input_parameter_description": {
512
+ "type": "string"
513
+ },
514
+ "input_units": {
515
+ "type": "string"
516
+ },
517
+ "input_default_value": {
518
+ "oneOf": [
519
+ {
520
+ "type": "string"
521
+ },
522
+ {
523
+ "type": "number"
524
+ }
525
+ ]
526
+ },
527
+ "input_constraints": {
528
+ "oneOf": [
529
+ {
530
+ "type": "string"
531
+ },
532
+ {
533
+ "type": "array",
534
+ "maxItems": 2,
535
+ "minItems": 2,
536
+ "items": {
537
+ "type": "string"
538
+ }
539
+ },
540
+ {
541
+ "type": "array",
542
+ "maxItems": 2,
543
+ "minItems": 2,
544
+ "items": {
545
+ "type": "number"
546
+ }
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "required": [
552
+ "number_of_inputs",
553
+ "input_parameter_name",
554
+ "input_parameter_type",
555
+ "input_parameter_description",
556
+ "input_units",
557
+ "number_of_outputs",
558
+ "output_parameter_name",
559
+ "output_paramter_type",
560
+ "output_parameter_description",
561
+ "output_units"
562
+ ]
563
+ }
564
+ },
565
+ "number_of_outputs": {
566
+ "type": "number"
567
+ },
568
+ "outputs": {
569
+ "type": "array",
570
+ "items": {
571
+ "type": "object",
572
+ "properties": {
573
+ "output_parameter_name": {
574
+ "type": "string"
575
+ },
576
+ "output_parameter_type": {
577
+ "type": "string"
578
+ },
579
+ "output_parameter_description": {
580
+ "type": "string"
581
+ },
582
+ "output_units": {
583
+ "type": "string"
584
+ },
585
+ "output_constraints": {
586
+ "oneOf": [
587
+ {
588
+ "type": "string"
589
+ },
590
+ {
591
+ "type": "array",
592
+ "maxItems": 2,
593
+ "minItems": 2,
594
+ "items": {
595
+ "type": "string"
596
+ }
597
+ },
598
+ {
599
+ "type": "array",
600
+ "maxItems": 2,
601
+ "minItems": 2,
602
+ "items": {
603
+ "type": "number"
604
+ }
605
+ }
606
+ ]
607
+ }
608
+ }
609
+ }
610
+ }
611
+ },
612
+ "required": [
613
+ "number_of_inputs",
614
+ "inputs",
615
+ "number_of_outputs",
616
+ "outputs"
617
+ ]
618
+ }
619
+ },
620
+ "required": [
621
+ "input_output_information",
622
+ "basic_information",
623
+ "ten_simple_rules",
624
+ "RRID_term",
625
+ "RRID_identifier",
626
+ "ontology_term",
627
+ "ontology_identifier"
628
+ ]
629
+ }