nci-cidc-api-modules 1.2.45__py3-none-any.whl → 1.2.46__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.
boot.py ADDED
@@ -0,0 +1,14 @@
1
+ from os import mkdir, path
2
+ import shutil
3
+
4
+ TEMPLATES_DIR = path.join("/tmp", "templates")
5
+
6
+
7
+ # set up the directories for holding generated templates
8
+ def set_up_templates_directories():
9
+ if path.exists(TEMPLATES_DIR):
10
+ shutil.rmtree(TEMPLATES_DIR)
11
+ mkdir(TEMPLATES_DIR)
12
+ for family in ["assays", "manifests", "analyses"]:
13
+ family_dir = path.join(TEMPLATES_DIR, family)
14
+ mkdir(family_dir)
cidc_api/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.45"
1
+ __version__ = "1.2.46"
@@ -5,11 +5,11 @@ Any 'UPPER_CASE' variables will be exported as a key-value pair
5
5
  in the `SETTINGS` dictionary defined at the bottom of this file.
6
6
  """
7
7
 
8
- import shutil
9
- from os import environ, path, mkdir
8
+ from os import environ, path
10
9
 
11
10
  from dotenv import load_dotenv
12
11
 
12
+ from boot import TEMPLATES_DIR as templates_dir
13
13
  from .db import get_sqlalchemy_database_uri, cloud_connector
14
14
  from .secrets import get_secrets_manager
15
15
 
@@ -36,14 +36,7 @@ PAGINATION_PAGE_SIZE = 25
36
36
  MAX_PAGINATION_PAGE_SIZE = 200
37
37
  INACTIVE_USER_DAYS = 60
38
38
  MAX_THREADPOOL_WORKERS = 32
39
- TEMPLATES_DIR = path.join("/tmp", "templates")
40
- # Also, set up the directories for holding generated templates
41
- if path.exists(TEMPLATES_DIR):
42
- shutil.rmtree(TEMPLATES_DIR)
43
- mkdir(TEMPLATES_DIR)
44
- for family in ["assays", "manifests", "analyses"]:
45
- family_dir = path.join(TEMPLATES_DIR, family)
46
- mkdir(family_dir)
39
+ TEMPLATES_DIR = templates_dir
47
40
 
48
41
  ### Configure prism encrypt ###
49
42
  if not TESTING:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nci_cidc_api_modules
3
- Version: 1.2.45
3
+ Version: 1.2.46
4
4
  Summary: SQLAlchemy data models and configuration tools used in the NCI CIDC API
5
5
  Home-page: https://github.com/NCI-CIDC/cidc-api-gae
6
6
  License: MIT license
@@ -1,10 +1,11 @@
1
- cidc_api/__init__.py,sha256=TdZZy40X_55kxtHKjwbGqPrDr5qQe_uUz_Fvup_EuNI,23
1
+ boot.py,sha256=oS_16OgU34iDxyFNpJl5rb5KbfbsCXroUCNLwVPxPNg,416
2
+ cidc_api/__init__.py,sha256=s7kBVARFz8lSmh7ulygN5xbxPrps18XAib1Arlvg6cw,23
2
3
  cidc_api/telemetry.py,sha256=LuZWkG8CKCn23O41RTNxEOQwMmfpp-fQ6zSInZhVJg8,3333
3
4
  cidc_api/config/__init__.py,sha256=5mX8GAPxUKV84iS-aGOoE-4m68LsOCGCDptXNdlgvj0,148
4
5
  cidc_api/config/db.py,sha256=mEz8ugjvRNGylCqDYHaaMqaZfDh7sbd76BowmfBvq5c,2428
5
6
  cidc_api/config/logging.py,sha256=abhVYtn8lfhIt0tyV2WHFgSmp_s2eeJh7kodB6LH4J0,1149
6
7
  cidc_api/config/secrets.py,sha256=jRFj7W43pWuPf9DZQLCKF7WPXf5cUv-BAaS3ASqhV_Q,1481
7
- cidc_api/config/settings.py,sha256=Zql6Gxb5MNBW-rxcDNIPUqPiYHnD9nxd2-ievHaEYcI,4744
8
+ cidc_api/config/settings.py,sha256=loern8cejUrOJJAog4z0iW9EQaa0nlN0rFrFOdZ-cLE,4483
8
9
  cidc_api/models/__init__.py,sha256=bl445G8Zic9YbhZ8ZBni07wtBMhLJRMBA-JqjLxx2bw,66
9
10
  cidc_api/models/data.py,sha256=TyVXk5jJO1NN05CLqejLf5BPp6yLSNNxPmFOgXUnA1M,1313
10
11
  cidc_api/models/migrations.py,sha256=UlS5How3J4ryaRuZT6F5VQtAKikkl0LTv9MgMO_ltiQ,11161
@@ -158,8 +159,8 @@ cidc_api/shared/gcloud_client.py,sha256=0B13MRF_CUMbzaKtKVDd9fxErNdNGBpxfkknQ5de
158
159
  cidc_api/shared/jose.py,sha256=-qzGzEDAlokEp9E7WtBtQkXyyfPWTYXlwYpCqVJWmqM,1830
159
160
  cidc_api/shared/rest_utils.py,sha256=RwR30WOUAYCxL7V-i2totEyeriG30GbBDvBcpLXhM9w,6594
160
161
  cidc_api/shared/utils.py,sha256=-gLnzxCR9E6h0plt2xrNisUG5_Y6GhhVwz3DgDIzpvs,367
161
- nci_cidc_api_modules-1.2.45.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
162
- nci_cidc_api_modules-1.2.45.dist-info/METADATA,sha256=ierSCHEAC0omx7bg4gjb-XPMPRTK_Qs6VMJXdW65C6A,40270
163
- nci_cidc_api_modules-1.2.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
164
- nci_cidc_api_modules-1.2.45.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
165
- nci_cidc_api_modules-1.2.45.dist-info/RECORD,,
162
+ nci_cidc_api_modules-1.2.46.dist-info/licenses/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
163
+ nci_cidc_api_modules-1.2.46.dist-info/METADATA,sha256=hj9CUaG-zb8IeE3TShNDdQJRghQ86nlfZdFZq27Fra8,40270
164
+ nci_cidc_api_modules-1.2.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
165
+ nci_cidc_api_modules-1.2.46.dist-info/top_level.txt,sha256=BSJqF6ura8-bWCKZvarvQEKvidMM05lH0bLQsNOrI0o,14
166
+ nci_cidc_api_modules-1.2.46.dist-info/RECORD,,