@orcabus/platform-cdk-constructs 0.0.6 → 0.0.7-alpha.4
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.
- package/.jsii +858 -6
- package/api-gateway/api-gateway.js +22 -4
- package/deployment-stack-pipeline/pipeline.js +6 -4
- package/dynamodb/config.d.ts +3 -0
- package/dynamodb/config.js +7 -0
- package/dynamodb/index.d.ts +27 -0
- package/dynamodb/index.js +106 -0
- package/ecs/config.d.ts +4 -0
- package/ecs/config.js +8 -0
- package/ecs/index.d.ts +46 -0
- package/ecs/index.js +103 -0
- package/index.d.ts +5 -2
- package/index.js +47 -5
- package/index.ts +16 -2
- package/lambda/build_python/Dockerfile +60 -0
- package/lambda/config.d.ts +11 -0
- package/lambda/config.js +19 -0
- package/lambda/index.d.ts +59 -0
- package/lambda/index.js +242 -0
- package/lambda/layers/mart_tools/poetry.lock +303 -0
- package/lambda/layers/mart_tools/pyproject.toml +27 -0
- package/lambda/layers/mart_tools/src/mart_tools/__init__.py +0 -0
- package/lambda/layers/mart_tools/src/mart_tools/mart/__init__.py +8 -0
- package/lambda/layers/mart_tools/src/mart_tools/mart/aws_helpers.py +79 -0
- package/lambda/layers/mart_tools/src/mart_tools/mart/dataframe_helpers.py +29 -0
- package/lambda/layers/mart_tools/src/mart_tools/mart/globals.py +5 -0
- package/lambda/layers/mart_tools/src/mart_tools/mart/models.py +71 -0
- package/lambda/layers/orcabus_api_tools/poetry.lock +273 -0
- package/lambda/layers/orcabus_api_tools/pyproject.toml +27 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/__init__.py +0 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/__init__.py +172 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/create_helpers.py +47 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/globals.py +13 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/job_helpers.py +53 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/models.py +253 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/query_helpers.py +248 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/update_helpers.py +221 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/workflow_helpers.py +25 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/__init__.py +92 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/create_helpers.py +27 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/globals.py +21 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/models.py +51 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/query_helpers.py +52 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/update_helpers.py +45 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/__init__.py +98 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/errors.py +45 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/file_helpers.py +341 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/globals.py +70 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/models.py +59 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/mart/__init__.py +8 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/mart/aws_helpers.py +79 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/mart/dataframe_helpers.py +29 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/mart/globals.py +5 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/mart/models.py +71 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/__init__.py +250 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/contact_helpers.py +109 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/errors.py +104 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/globals.py +16 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/individual_helpers.py +139 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/library_helpers.py +196 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/lims_helpers.py +36 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/models.py +112 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/project_helpers.py +129 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/sample_helpers.py +132 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/metadata/subject_helpers.py +151 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/sequence/__init__.py +15 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/sequence/globals.py +2 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/sequence/models.py +44 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/sequence/sequence_helpers.py +62 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/utils/__init__.py +0 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/utils/aws_helpers.py +123 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/utils/miscell.py +17 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/utils/requests_helpers.py +163 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/__init__.py +0 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/errors.py +37 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/metadata_helpers.py +28 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/models.py +85 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/payload_helpers.py +64 -0
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/workflow/workflow_run_helpers.py +80 -0
- package/package.json +13 -7
- package/typedoc.json +3 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.js +50 -1
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
|
|
2
|
+
|
|
3
|
+
[[package]]
|
|
4
|
+
name = "certifi"
|
|
5
|
+
version = "2025.4.26"
|
|
6
|
+
description = "Python package for providing Mozilla's CA Bundle."
|
|
7
|
+
optional = false
|
|
8
|
+
python-versions = ">=3.6"
|
|
9
|
+
groups = ["main"]
|
|
10
|
+
files = [
|
|
11
|
+
{file = "certifi-2025.4.26-py3-none-any.whl", hash = "sha256:30350364dfe371162649852c63336a15c70c6510c2ad5015b21c2345311805f3"},
|
|
12
|
+
{file = "certifi-2025.4.26.tar.gz", hash = "sha256:0a816057ea3cdefcef70270d2c515e4506bbc954f417fa5ade2021213bb8f0c6"},
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
[[package]]
|
|
16
|
+
name = "charset-normalizer"
|
|
17
|
+
version = "3.4.2"
|
|
18
|
+
description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
|
|
19
|
+
optional = false
|
|
20
|
+
python-versions = ">=3.7"
|
|
21
|
+
groups = ["main"]
|
|
22
|
+
files = [
|
|
23
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7c48ed483eb946e6c04ccbe02c6b4d1d48e51944b6db70f697e089c193404941"},
|
|
24
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b2d318c11350e10662026ad0eb71bb51c7812fc8590825304ae0bdd4ac283acd"},
|
|
25
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9cbfacf36cb0ec2897ce0ebc5d08ca44213af24265bd56eca54bee7923c48fd6"},
|
|
26
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18dd2e350387c87dabe711b86f83c9c78af772c748904d372ade190b5c7c9d4d"},
|
|
27
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8075c35cd58273fee266c58c0c9b670947c19df5fb98e7b66710e04ad4e9ff86"},
|
|
28
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5bf4545e3b962767e5c06fe1738f951f77d27967cb2caa64c28be7c4563e162c"},
|
|
29
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:7a6ab32f7210554a96cd9e33abe3ddd86732beeafc7a28e9955cdf22ffadbab0"},
|
|
30
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:b33de11b92e9f75a2b545d6e9b6f37e398d86c3e9e9653c4864eb7e89c5773ef"},
|
|
31
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:8755483f3c00d6c9a77f490c17e6ab0c8729e39e6390328e42521ef175380ae6"},
|
|
32
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:68a328e5f55ec37c57f19ebb1fdc56a248db2e3e9ad769919a58672958e8f366"},
|
|
33
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:21b2899062867b0e1fde9b724f8aecb1af14f2778d69aacd1a5a1853a597a5db"},
|
|
34
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-win32.whl", hash = "sha256:e8082b26888e2f8b36a042a58307d5b917ef2b1cacab921ad3323ef91901c71a"},
|
|
35
|
+
{file = "charset_normalizer-3.4.2-cp310-cp310-win_amd64.whl", hash = "sha256:f69a27e45c43520f5487f27627059b64aaf160415589230992cec34c5e18a509"},
|
|
36
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:be1e352acbe3c78727a16a455126d9ff83ea2dfdcbc83148d2982305a04714c2"},
|
|
37
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa88ca0b1932e93f2d961bf3addbb2db902198dca337d88c89e1559e066e7645"},
|
|
38
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d524ba3f1581b35c03cb42beebab4a13e6cdad7b36246bd22541fa585a56cccd"},
|
|
39
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28a1005facc94196e1fb3e82a3d442a9d9110b8434fc1ded7a24a2983c9888d8"},
|
|
40
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fdb20a30fe1175ecabed17cbf7812f7b804b8a315a25f24678bcdf120a90077f"},
|
|
41
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0f5d9ed7f254402c9e7d35d2f5972c9bbea9040e99cd2861bd77dc68263277c7"},
|
|
42
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:efd387a49825780ff861998cd959767800d54f8308936b21025326de4b5a42b9"},
|
|
43
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:f0aa37f3c979cf2546b73e8222bbfa3dc07a641585340179d768068e3455e544"},
|
|
44
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e70e990b2137b29dc5564715de1e12701815dacc1d056308e2b17e9095372a82"},
|
|
45
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:0c8c57f84ccfc871a48a47321cfa49ae1df56cd1d965a09abe84066f6853b9c0"},
|
|
46
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:6b66f92b17849b85cad91259efc341dce9c1af48e2173bf38a85c6329f1033e5"},
|
|
47
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-win32.whl", hash = "sha256:daac4765328a919a805fa5e2720f3e94767abd632ae410a9062dff5412bae65a"},
|
|
48
|
+
{file = "charset_normalizer-3.4.2-cp311-cp311-win_amd64.whl", hash = "sha256:e53efc7c7cee4c1e70661e2e112ca46a575f90ed9ae3fef200f2a25e954f4b28"},
|
|
49
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0c29de6a1a95f24b9a1aa7aefd27d2487263f00dfd55a77719b530788f75cff7"},
|
|
50
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cddf7bd982eaa998934a91f69d182aec997c6c468898efe6679af88283b498d3"},
|
|
51
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcbe676a55d7445b22c10967bceaaf0ee69407fbe0ece4d032b6eb8d4565982a"},
|
|
52
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d41c4d287cfc69060fa91cae9683eacffad989f1a10811995fa309df656ec214"},
|
|
53
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e594135de17ab3866138f496755f302b72157d115086d100c3f19370839dd3a"},
|
|
54
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf713fe9a71ef6fd5adf7a79670135081cd4431c2943864757f0fa3a65b1fafd"},
|
|
55
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a370b3e078e418187da8c3674eddb9d983ec09445c99a3a263c2011993522981"},
|
|
56
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a955b438e62efdf7e0b7b52a64dc5c3396e2634baa62471768a64bc2adb73d5c"},
|
|
57
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:7222ffd5e4de8e57e03ce2cef95a4c43c98fcb72ad86909abdfc2c17d227fc1b"},
|
|
58
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:bee093bf902e1d8fc0ac143c88902c3dfc8941f7ea1d6a8dd2bcb786d33db03d"},
|
|
59
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:dedb8adb91d11846ee08bec4c8236c8549ac721c245678282dcb06b221aab59f"},
|
|
60
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-win32.whl", hash = "sha256:db4c7bf0e07fc3b7d89ac2a5880a6a8062056801b83ff56d8464b70f65482b6c"},
|
|
61
|
+
{file = "charset_normalizer-3.4.2-cp312-cp312-win_amd64.whl", hash = "sha256:5a9979887252a82fefd3d3ed2a8e3b937a7a809f65dcb1e068b090e165bbe99e"},
|
|
62
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:926ca93accd5d36ccdabd803392ddc3e03e6d4cd1cf17deff3b989ab8e9dbcf0"},
|
|
63
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:eba9904b0f38a143592d9fc0e19e2df0fa2e41c3c3745554761c5f6447eedabf"},
|
|
64
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3fddb7e2c84ac87ac3a947cb4e66d143ca5863ef48e4a5ecb83bd48619e4634e"},
|
|
65
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:98f862da73774290f251b9df8d11161b6cf25b599a66baf087c1ffe340e9bfd1"},
|
|
66
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c9379d65defcab82d07b2a9dfbfc2e95bc8fe0ebb1b176a3190230a3ef0e07c"},
|
|
67
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e635b87f01ebc977342e2697d05b56632f5f879a4f15955dfe8cef2448b51691"},
|
|
68
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c95a1e2902a8b722868587c0e1184ad5c55631de5afc0eb96bc4b0d738092c0"},
|
|
69
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ef8de666d6179b009dce7bcb2ad4c4a779f113f12caf8dc77f0162c29d20490b"},
|
|
70
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:32fc0341d72e0f73f80acb0a2c94216bd704f4f0bce10aedea38f30502b271ff"},
|
|
71
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:289200a18fa698949d2b39c671c2cc7a24d44096784e76614899a7ccf2574b7b"},
|
|
72
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4a476b06fbcf359ad25d34a057b7219281286ae2477cc5ff5e3f70a246971148"},
|
|
73
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-win32.whl", hash = "sha256:aaeeb6a479c7667fbe1099af9617c83aaca22182d6cf8c53966491a0f1b7ffb7"},
|
|
74
|
+
{file = "charset_normalizer-3.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:aa6af9e7d59f9c12b33ae4e9450619cf2488e2bbe9b44030905877f0b2324980"},
|
|
75
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1cad5f45b3146325bb38d6855642f6fd609c3f7cad4dbaf75549bf3b904d3184"},
|
|
76
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b2680962a4848b3c4f155dc2ee64505a9c57186d0d56b43123b17ca3de18f0fa"},
|
|
77
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:36b31da18b8890a76ec181c3cf44326bf2c48e36d393ca1b72b3f484113ea344"},
|
|
78
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f4074c5a429281bf056ddd4c5d3b740ebca4d43ffffe2ef4bf4d2d05114299da"},
|
|
79
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c9e36a97bee9b86ef9a1cf7bb96747eb7a15c2f22bdb5b516434b00f2a599f02"},
|
|
80
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-musllinux_1_2_aarch64.whl", hash = "sha256:1b1bde144d98e446b056ef98e59c256e9294f6b74d7af6846bf5ffdafd687a7d"},
|
|
81
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-musllinux_1_2_i686.whl", hash = "sha256:915f3849a011c1f593ab99092f3cecfcb4d65d8feb4a64cf1bf2d22074dc0ec4"},
|
|
82
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-musllinux_1_2_ppc64le.whl", hash = "sha256:fb707f3e15060adf5b7ada797624a6c6e0138e2a26baa089df64c68ee98e040f"},
|
|
83
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-musllinux_1_2_s390x.whl", hash = "sha256:25a23ea5c7edc53e0f29bae2c44fcb5a1aa10591aae107f2a2b2583a9c5cbc64"},
|
|
84
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-musllinux_1_2_x86_64.whl", hash = "sha256:770cab594ecf99ae64c236bc9ee3439c3f46be49796e265ce0cc8bc17b10294f"},
|
|
85
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-win32.whl", hash = "sha256:6a0289e4589e8bdfef02a80478f1dfcb14f0ab696b5a00e1f4b8a14a307a3c58"},
|
|
86
|
+
{file = "charset_normalizer-3.4.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6fc1f5b51fa4cecaa18f2bd7a003f3dd039dd615cd69a2afd6d3b19aed6775f2"},
|
|
87
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:76af085e67e56c8816c3ccf256ebd136def2ed9654525348cfa744b6802b69eb"},
|
|
88
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e45ba65510e2647721e35323d6ef54c7974959f6081b58d4ef5d87c60c84919a"},
|
|
89
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:046595208aae0120559a67693ecc65dd75d46f7bf687f159127046628178dc45"},
|
|
90
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:75d10d37a47afee94919c4fab4c22b9bc2a8bf7d4f46f87363bcf0573f3ff4f5"},
|
|
91
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6333b3aa5a12c26b2a4d4e7335a28f1475e0e5e17d69d55141ee3cab736f66d1"},
|
|
92
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e8323a9b031aa0393768b87f04b4164a40037fb2a3c11ac06a03ffecd3618027"},
|
|
93
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:24498ba8ed6c2e0b56d4acbf83f2d989720a93b41d712ebd4f4979660db4417b"},
|
|
94
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:844da2b5728b5ce0e32d863af26f32b5ce61bc4273a9c720a9f3aa9df73b1455"},
|
|
95
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:65c981bdbd3f57670af8b59777cbfae75364b483fa8a9f420f08094531d54a01"},
|
|
96
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:3c21d4fca343c805a52c0c78edc01e3477f6dd1ad7c47653241cf2a206d4fc58"},
|
|
97
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:dc7039885fa1baf9be153a0626e337aa7ec8bf96b0128605fb0d77788ddc1681"},
|
|
98
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-win32.whl", hash = "sha256:8272b73e1c5603666618805fe821edba66892e2870058c94c53147602eab29c7"},
|
|
99
|
+
{file = "charset_normalizer-3.4.2-cp38-cp38-win_amd64.whl", hash = "sha256:70f7172939fdf8790425ba31915bfbe8335030f05b9913d7ae00a87d4395620a"},
|
|
100
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:005fa3432484527f9732ebd315da8da8001593e2cf46a3d817669f062c3d9ed4"},
|
|
101
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e92fca20c46e9f5e1bb485887d074918b13543b1c2a1185e69bb8d17ab6236a7"},
|
|
102
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50bf98d5e563b83cc29471fa114366e6806bc06bc7a25fd59641e41445327836"},
|
|
103
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:721c76e84fe669be19c5791da68232ca2e05ba5185575086e384352e2c309597"},
|
|
104
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:82d8fd25b7f4675d0c47cf95b594d4e7b158aca33b76aa63d07186e13c0e0ab7"},
|
|
105
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3daeac64d5b371dea99714f08ffc2c208522ec6b06fbc7866a450dd446f5c0f"},
|
|
106
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dccab8d5fa1ef9bfba0590ecf4d46df048d18ffe3eec01eeb73a42e0d9e7a8ba"},
|
|
107
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:aaf27faa992bfee0264dc1f03f4c75e9fcdda66a519db6b957a3f826e285cf12"},
|
|
108
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:eb30abc20df9ab0814b5a2524f23d75dcf83cde762c161917a2b4b7b55b1e518"},
|
|
109
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:c72fbbe68c6f32f251bdc08b8611c7b3060612236e960ef848e0a517ddbe76c5"},
|
|
110
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:982bb1e8b4ffda883b3d0a521e23abcd6fd17418f6d2c4118d257a10199c0ce3"},
|
|
111
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-win32.whl", hash = "sha256:43e0933a0eff183ee85833f341ec567c0980dae57c464d8a508e1b2ceb336471"},
|
|
112
|
+
{file = "charset_normalizer-3.4.2-cp39-cp39-win_amd64.whl", hash = "sha256:d11b54acf878eef558599658b0ffca78138c8c3655cf4f3a4a673c437e67732e"},
|
|
113
|
+
{file = "charset_normalizer-3.4.2-py3-none-any.whl", hash = "sha256:7f56930ab0abd1c45cd15be65cc741c28b1c9a34876ce8c17a2fa107810c0af0"},
|
|
114
|
+
{file = "charset_normalizer-3.4.2.tar.gz", hash = "sha256:5baececa9ecba31eff645232d59845c07aa030f0c81ee70184a90d35099a0e63"},
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
[[package]]
|
|
118
|
+
name = "colorama"
|
|
119
|
+
version = "0.4.6"
|
|
120
|
+
description = "Cross-platform colored terminal text."
|
|
121
|
+
optional = false
|
|
122
|
+
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
|
|
123
|
+
groups = ["dev"]
|
|
124
|
+
markers = "sys_platform == \"win32\""
|
|
125
|
+
files = [
|
|
126
|
+
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
|
|
127
|
+
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "idna"
|
|
132
|
+
version = "3.10"
|
|
133
|
+
description = "Internationalized Domain Names in Applications (IDNA)"
|
|
134
|
+
optional = false
|
|
135
|
+
python-versions = ">=3.6"
|
|
136
|
+
groups = ["main"]
|
|
137
|
+
files = [
|
|
138
|
+
{file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"},
|
|
139
|
+
{file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"},
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[package.extras]
|
|
143
|
+
all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "iniconfig"
|
|
147
|
+
version = "2.1.0"
|
|
148
|
+
description = "brain-dead simple config-ini parsing"
|
|
149
|
+
optional = false
|
|
150
|
+
python-versions = ">=3.8"
|
|
151
|
+
groups = ["dev"]
|
|
152
|
+
files = [
|
|
153
|
+
{file = "iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760"},
|
|
154
|
+
{file = "iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7"},
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "mypy-boto3-secretsmanager"
|
|
159
|
+
version = "1.38.0"
|
|
160
|
+
description = "Type annotations for boto3 SecretsManager 1.38.0 service generated with mypy-boto3-builder 8.10.1"
|
|
161
|
+
optional = false
|
|
162
|
+
python-versions = ">=3.8"
|
|
163
|
+
groups = ["dev"]
|
|
164
|
+
files = [
|
|
165
|
+
{file = "mypy_boto3_secretsmanager-1.38.0-py3-none-any.whl", hash = "sha256:48d5057450ee307b132ce2d0976233a2c5331616fabdf423ecbc103f7431dd5e"},
|
|
166
|
+
{file = "mypy_boto3_secretsmanager-1.38.0.tar.gz", hash = "sha256:1666108e70f03e4dc1de449388d7facb77aba231a026bac0c3240fc27fd31a98"},
|
|
167
|
+
]
|
|
168
|
+
|
|
169
|
+
[[package]]
|
|
170
|
+
name = "mypy-boto3-ssm"
|
|
171
|
+
version = "1.38.5"
|
|
172
|
+
description = "Type annotations for boto3 SSM 1.38.5 service generated with mypy-boto3-builder 8.10.1"
|
|
173
|
+
optional = false
|
|
174
|
+
python-versions = ">=3.8"
|
|
175
|
+
groups = ["dev"]
|
|
176
|
+
files = [
|
|
177
|
+
{file = "mypy_boto3_ssm-1.38.5-py3-none-any.whl", hash = "sha256:1bb0f932bee9038a53ab02781f959fc553a5d7f5e9d7cba56f998d0eb0a5878f"},
|
|
178
|
+
{file = "mypy_boto3_ssm-1.38.5.tar.gz", hash = "sha256:e95bbad7d2f6b4849bc946eb9bbcc1f134cbdaafb172c365bedecdb3104eee0e"},
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "packaging"
|
|
183
|
+
version = "25.0"
|
|
184
|
+
description = "Core utilities for Python packages"
|
|
185
|
+
optional = false
|
|
186
|
+
python-versions = ">=3.8"
|
|
187
|
+
groups = ["dev"]
|
|
188
|
+
files = [
|
|
189
|
+
{file = "packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"},
|
|
190
|
+
{file = "packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"},
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "pluggy"
|
|
195
|
+
version = "1.5.0"
|
|
196
|
+
description = "plugin and hook calling mechanisms for python"
|
|
197
|
+
optional = false
|
|
198
|
+
python-versions = ">=3.8"
|
|
199
|
+
groups = ["dev"]
|
|
200
|
+
files = [
|
|
201
|
+
{file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"},
|
|
202
|
+
{file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"},
|
|
203
|
+
]
|
|
204
|
+
|
|
205
|
+
[package.extras]
|
|
206
|
+
dev = ["pre-commit", "tox"]
|
|
207
|
+
testing = ["pytest", "pytest-benchmark"]
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "pytest"
|
|
211
|
+
version = "7.4.4"
|
|
212
|
+
description = "pytest: simple powerful testing with Python"
|
|
213
|
+
optional = false
|
|
214
|
+
python-versions = ">=3.7"
|
|
215
|
+
groups = ["dev"]
|
|
216
|
+
files = [
|
|
217
|
+
{file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"},
|
|
218
|
+
{file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"},
|
|
219
|
+
]
|
|
220
|
+
|
|
221
|
+
[package.dependencies]
|
|
222
|
+
colorama = {version = "*", markers = "sys_platform == \"win32\""}
|
|
223
|
+
iniconfig = "*"
|
|
224
|
+
packaging = "*"
|
|
225
|
+
pluggy = ">=0.12,<2.0"
|
|
226
|
+
|
|
227
|
+
[package.extras]
|
|
228
|
+
testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "requests"
|
|
232
|
+
version = "2.32.3"
|
|
233
|
+
description = "Python HTTP for Humans."
|
|
234
|
+
optional = false
|
|
235
|
+
python-versions = ">=3.8"
|
|
236
|
+
groups = ["main"]
|
|
237
|
+
files = [
|
|
238
|
+
{file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"},
|
|
239
|
+
{file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"},
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[package.dependencies]
|
|
243
|
+
certifi = ">=2017.4.17"
|
|
244
|
+
charset-normalizer = ">=2,<4"
|
|
245
|
+
idna = ">=2.5,<4"
|
|
246
|
+
urllib3 = ">=1.21.1,<3"
|
|
247
|
+
|
|
248
|
+
[package.extras]
|
|
249
|
+
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
|
250
|
+
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "urllib3"
|
|
254
|
+
version = "2.4.0"
|
|
255
|
+
description = "HTTP library with thread-safe connection pooling, file post, and more."
|
|
256
|
+
optional = false
|
|
257
|
+
python-versions = ">=3.9"
|
|
258
|
+
groups = ["main"]
|
|
259
|
+
files = [
|
|
260
|
+
{file = "urllib3-2.4.0-py3-none-any.whl", hash = "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813"},
|
|
261
|
+
{file = "urllib3-2.4.0.tar.gz", hash = "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466"},
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
[package.extras]
|
|
265
|
+
brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""]
|
|
266
|
+
h2 = ["h2 (>=4,<5)"]
|
|
267
|
+
socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
|
|
268
|
+
zstd = ["zstandard (>=0.18.0)"]
|
|
269
|
+
|
|
270
|
+
[metadata]
|
|
271
|
+
lock-version = "2.1"
|
|
272
|
+
python-versions = "^3.12, <3.13"
|
|
273
|
+
content-hash = "228d869db509f06071915ccd60f82b837d6834b365f6499fbe7d7bd426e96196"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["poetry-core>=1.0.0"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
|
+
|
|
5
|
+
[tool.poetry]
|
|
6
|
+
name = "orcabus_api_tools"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "A collection of secondary-level functions to use to interact with the OrcaBus"
|
|
9
|
+
license = "GPL-3.0-or-later"
|
|
10
|
+
authors = [
|
|
11
|
+
"Alexis Lucattini"
|
|
12
|
+
]
|
|
13
|
+
homepage = "https://github.com/orcabus/platform-cdk-constructs"
|
|
14
|
+
repository = "https://github.com/orcabus/platform-cdk-constructs"
|
|
15
|
+
|
|
16
|
+
[tool.poetry.dependencies]
|
|
17
|
+
python = "^3.12, <3.13"
|
|
18
|
+
requests = "^2.31.0"
|
|
19
|
+
|
|
20
|
+
[tool.poetry.group.dev]
|
|
21
|
+
optional = true
|
|
22
|
+
|
|
23
|
+
[tool.poetry.group.dev.dependencies]
|
|
24
|
+
pytest = "^7.0.0" # For testing only
|
|
25
|
+
# For typehinting only, not required at runtime
|
|
26
|
+
mypy-boto3-ssm = "^1.34"
|
|
27
|
+
mypy-boto3-secretsmanager = "^1.34"
|
|
File without changes
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
# Standard imports
|
|
4
|
+
from typing import Dict, Optional
|
|
5
|
+
|
|
6
|
+
# Local imports
|
|
7
|
+
from .globals import FASTQ_SUBDOMAIN_NAME
|
|
8
|
+
from ..utils.requests_helpers import (
|
|
9
|
+
get_request_response_results, get_url, patch_request, get_request, post_request
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# Get url for the subdomain
|
|
14
|
+
def get_fastq_url(endpoint: str) -> str:
|
|
15
|
+
"""
|
|
16
|
+
Get the URL for the FastQ subdomain endpoint.
|
|
17
|
+
:param endpoint: The specific API endpoint for the FastQ subdomain.
|
|
18
|
+
:return: The full URL for the FastQ subdomain endpoint.
|
|
19
|
+
"""
|
|
20
|
+
return get_url(
|
|
21
|
+
endpoint=endpoint,
|
|
22
|
+
subdomain=FASTQ_SUBDOMAIN_NAME,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# Wrappers
|
|
27
|
+
def get_fastq_request(
|
|
28
|
+
endpoint: str,
|
|
29
|
+
params: Optional[Dict] = None,
|
|
30
|
+
):
|
|
31
|
+
return get_request(
|
|
32
|
+
url=get_fastq_url(endpoint),
|
|
33
|
+
params=params
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def get_fastq_request_response_results(
|
|
38
|
+
endpoint: str,
|
|
39
|
+
params: Optional[Dict] = None,
|
|
40
|
+
):
|
|
41
|
+
return get_request_response_results(
|
|
42
|
+
url=get_fastq_url(endpoint),
|
|
43
|
+
params=params
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def fastq_patch_request(
|
|
48
|
+
endpoint: str,
|
|
49
|
+
params: Optional[Dict] = None,
|
|
50
|
+
):
|
|
51
|
+
return patch_request(
|
|
52
|
+
url=get_fastq_url(endpoint),
|
|
53
|
+
params=params
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def fastq_post_request(
|
|
58
|
+
endpoint: str,
|
|
59
|
+
params: Optional[Dict] = None,
|
|
60
|
+
):
|
|
61
|
+
return post_request(
|
|
62
|
+
url=get_fastq_url(endpoint),
|
|
63
|
+
params=params
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Expose the functions
|
|
69
|
+
|
|
70
|
+
# Create
|
|
71
|
+
from .create_helpers import (
|
|
72
|
+
create_fastq_set_object,
|
|
73
|
+
create_fastq_list_row_object
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
# Job
|
|
77
|
+
from .job_helpers import (
|
|
78
|
+
run_qc_stats,
|
|
79
|
+
run_ntsm,
|
|
80
|
+
run_file_compression_stats
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
# Query
|
|
84
|
+
from .query_helpers import (
|
|
85
|
+
get_fastq,
|
|
86
|
+
get_fastq_set,
|
|
87
|
+
get_fastqs,
|
|
88
|
+
get_fastq_sets,
|
|
89
|
+
get_fastqs_in_instrument_run_id,
|
|
90
|
+
get_fastqs_in_library,
|
|
91
|
+
get_fastqs_batched,
|
|
92
|
+
get_fastqs_in_library_list,
|
|
93
|
+
get_fastqs_in_libraries_and_instrument_run_id,
|
|
94
|
+
get_fastqs_in_sample,
|
|
95
|
+
get_fastqs_in_sample_list,
|
|
96
|
+
get_fastqs_in_subject,
|
|
97
|
+
get_fastqs_in_individual,
|
|
98
|
+
get_fastqs_in_project,
|
|
99
|
+
get_fastq_list_rows_in_fastq_set,
|
|
100
|
+
get_fastq_jobs,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
# Updaters
|
|
104
|
+
from .update_helpers import (
|
|
105
|
+
add_qc_stats,
|
|
106
|
+
add_read_count,
|
|
107
|
+
add_file_compression_information,
|
|
108
|
+
add_ntsm_storage_object,
|
|
109
|
+
add_read_set,
|
|
110
|
+
detach_read_set,
|
|
111
|
+
validate_fastq,
|
|
112
|
+
invalidate_fastq,
|
|
113
|
+
link_fastq_list_row_to_fastq_set,
|
|
114
|
+
unlink_fastq_list_row_from_fastq_set,
|
|
115
|
+
allow_additional_fastqs_to_fastq_set,
|
|
116
|
+
disallow_additional_fastqs_to_fastq_set,
|
|
117
|
+
set_is_current_fastq_set,
|
|
118
|
+
set_is_not_current_fastq_set,
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
# Workflow
|
|
122
|
+
from .workflow_helpers import (
|
|
123
|
+
to_fastq_list_row,
|
|
124
|
+
to_fastq_list_rows
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
__all__ = [
|
|
129
|
+
# Create
|
|
130
|
+
"create_fastq_set_object",
|
|
131
|
+
"create_fastq_list_row_object",
|
|
132
|
+
# Job
|
|
133
|
+
"run_qc_stats",
|
|
134
|
+
"run_ntsm",
|
|
135
|
+
"run_file_compression_stats",
|
|
136
|
+
# Query
|
|
137
|
+
"get_fastq",
|
|
138
|
+
"get_fastq_set",
|
|
139
|
+
"get_fastqs",
|
|
140
|
+
"get_fastq_sets",
|
|
141
|
+
"get_fastqs_in_instrument_run_id",
|
|
142
|
+
"get_fastqs_in_library",
|
|
143
|
+
"get_fastqs_batched",
|
|
144
|
+
"get_fastqs_in_library_list",
|
|
145
|
+
"get_fastqs_in_libraries_and_instrument_run_id",
|
|
146
|
+
"get_fastqs_in_sample",
|
|
147
|
+
"get_fastqs_in_sample_list",
|
|
148
|
+
"get_fastqs_in_subject",
|
|
149
|
+
"get_fastqs_in_individual",
|
|
150
|
+
"get_fastqs_in_project",
|
|
151
|
+
"get_fastq_list_rows_in_fastq_set",
|
|
152
|
+
"get_fastq_jobs",
|
|
153
|
+
# Updaters
|
|
154
|
+
"add_qc_stats",
|
|
155
|
+
"add_read_count",
|
|
156
|
+
"add_file_compression_information",
|
|
157
|
+
"add_ntsm_storage_object",
|
|
158
|
+
"add_read_set",
|
|
159
|
+
"detach_read_set",
|
|
160
|
+
"validate_fastq",
|
|
161
|
+
"invalidate_fastq",
|
|
162
|
+
"link_fastq_list_row_to_fastq_set",
|
|
163
|
+
"unlink_fastq_list_row_from_fastq_set",
|
|
164
|
+
"allow_additional_fastqs_to_fastq_set",
|
|
165
|
+
"disallow_additional_fastqs_to_fastq_set",
|
|
166
|
+
"set_is_current_fastq_set",
|
|
167
|
+
"set_is_not_current_fastq_set",
|
|
168
|
+
# Workflow
|
|
169
|
+
"to_fastq_list_row",
|
|
170
|
+
"to_fastq_list_rows",
|
|
171
|
+
]
|
|
172
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Update helpers for the update script.
|
|
5
|
+
|
|
6
|
+
- add_qc_stats
|
|
7
|
+
- add_read_count
|
|
8
|
+
- add_ntsm_storage_object / add_ntsm
|
|
9
|
+
- add_fastq_pair_storage_object / add_read_set
|
|
10
|
+
- detach_fastq_pair_storage_object / detach_read_set
|
|
11
|
+
- validate
|
|
12
|
+
- invalidate
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
# Standard imports
|
|
16
|
+
from typing import Unpack
|
|
17
|
+
|
|
18
|
+
# Local imports
|
|
19
|
+
from . import fastq_post_request
|
|
20
|
+
from .globals import FASTQ_LIST_ROW_ENDPOINT, FASTQ_SET_ENDPOINT
|
|
21
|
+
from .models import FastqListRow, FastqSet, FastqListRowCreate, FastqSetCreate
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def create_fastq_list_row_object(**kwargs: Unpack[FastqListRowCreate]) -> FastqListRow:
|
|
25
|
+
"""
|
|
26
|
+
Add a fastq list row object to the database.
|
|
27
|
+
Returns the created fastq list row object
|
|
28
|
+
"""
|
|
29
|
+
return FastqListRow(
|
|
30
|
+
**fastq_post_request(
|
|
31
|
+
endpoint=FASTQ_LIST_ROW_ENDPOINT,
|
|
32
|
+
params=dict(kwargs)
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def create_fastq_set_object(**kwargs: Unpack[FastqSetCreate]) -> FastqSet:
|
|
38
|
+
"""
|
|
39
|
+
Add a fastq set object to the database.
|
|
40
|
+
Returns the created fastq set object
|
|
41
|
+
"""
|
|
42
|
+
return FastqSet(
|
|
43
|
+
**fastq_post_request(
|
|
44
|
+
endpoint=FASTQ_SET_ENDPOINT,
|
|
45
|
+
params=dict(kwargs)
|
|
46
|
+
)
|
|
47
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
|
|
5
|
+
# AWS PARAMETERS
|
|
6
|
+
FASTQ_SUBDOMAIN_NAME = "fastq"
|
|
7
|
+
|
|
8
|
+
# API ENDPOINTS
|
|
9
|
+
FASTQ_LIST_ROW_ENDPOINT = "api/v1/fastq"
|
|
10
|
+
FASTQ_SET_ENDPOINT = "api/v1/fastqSet"
|
|
11
|
+
|
|
12
|
+
# REGEX
|
|
13
|
+
ORCABUS_ULID_REGEX_MATCH = re.compile(r'^[a-z0-9]{3}\.[A-Z0-9]{26}$')
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Update helpers for the update script.
|
|
5
|
+
|
|
6
|
+
- run_qc_stats
|
|
7
|
+
- run_ntsm
|
|
8
|
+
- run_file_compression_information
|
|
9
|
+
"""
|
|
10
|
+
# Standard imports
|
|
11
|
+
|
|
12
|
+
# Local imports
|
|
13
|
+
from . import fastq_patch_request
|
|
14
|
+
from .globals import FASTQ_LIST_ROW_ENDPOINT
|
|
15
|
+
from .models import Job
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def run_qc_stats(fastq_id: str) -> Job:
|
|
19
|
+
"""
|
|
20
|
+
Add QC stats to a fastq_id.
|
|
21
|
+
|
|
22
|
+
:param fastq_id: Fastq str
|
|
23
|
+
"""
|
|
24
|
+
return Job(
|
|
25
|
+
**fastq_patch_request(
|
|
26
|
+
f"{FASTQ_LIST_ROW_ENDPOINT}/{fastq_id}:runQcStats"
|
|
27
|
+
)
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def run_ntsm(fastq_id: str) -> Job:
|
|
32
|
+
"""
|
|
33
|
+
Run ntsm for a fastq_id.
|
|
34
|
+
|
|
35
|
+
:param fastq_id: Fastq str
|
|
36
|
+
"""
|
|
37
|
+
return Job(
|
|
38
|
+
**fastq_patch_request(
|
|
39
|
+
f"{FASTQ_LIST_ROW_ENDPOINT}/{fastq_id}:runNtsm"
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
def run_file_compression_stats(fastq_id: str) -> Job:
|
|
44
|
+
"""
|
|
45
|
+
Run file compression stats for a fastq_id.
|
|
46
|
+
|
|
47
|
+
:param fastq_id: Fastq str
|
|
48
|
+
"""
|
|
49
|
+
return Job(
|
|
50
|
+
**fastq_patch_request(
|
|
51
|
+
f"{FASTQ_LIST_ROW_ENDPOINT}/{fastq_id}:runFileCompressionInformation"
|
|
52
|
+
)
|
|
53
|
+
)
|