das-cli 1.0.5__py3-none-any.whl → 1.0.6__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.
das/common/config.py CHANGED
@@ -4,6 +4,9 @@ from pathlib import Path
4
4
  from typing import Optional
5
5
  import logging
6
6
 
7
+ from dotenv import load_dotenv
8
+ load_dotenv()
9
+
7
10
  # Set up logging
8
11
  logging.basicConfig(
9
12
  level=logging.WARNING, # Only show warnings and errors by default
@@ -75,6 +78,11 @@ def load_verify_ssl() -> bool:
75
78
  if CONFIG_FILE.exists():
76
79
  try:
77
80
  config = json.loads(CONFIG_FILE.read_text(encoding="utf-8"))
81
+
82
+ if os.getenv("VERIFY_SSL") is not None:
83
+ VERIFY_SSL = os.getenv("VERIFY_SSL") == "True"
84
+ return VERIFY_SSL
85
+
78
86
  verify = config.get("verify_ssl")
79
87
  if verify is not None:
80
88
  VERIFY_SSL = verify
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: das-cli
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: DAS api client.
5
5
  Author: Royal Netherlands Institute for Sea Research
6
6
  License-Expression: MIT
@@ -6,7 +6,7 @@ das/ai/plugins/entries/entries_plugin.py,sha256=Dhv6PrguQj5mzxBW6DlCzkmwucszazLQ
6
6
  das/authentication/auth.py,sha256=DTtH66Ft6nuuMe7EYvrr3GqGVEGGxE7GmD2fO7vRv4s,1501
7
7
  das/authentication/secure_input.py,sha256=P-NpbFeHrp2uIOMqip55cGn_NqqpswhnknAF1t7c2_U,1911
8
8
  das/common/api.py,sha256=9kuM8Gcw29uiYbqw9fPK4w5gTpWv9baxjK9NvHNeb5E,3905
9
- das/common/config.py,sha256=nkWN4-4xUEo6DPlTkaAnHQF_HGwulm73D4U2DyWvibU,5600
9
+ das/common/config.py,sha256=u5Z45FLLEYeNZPrBBLz2mGB35_IV6cmLbVoNpnmrN6I,5817
10
10
  das/common/entry_fields_constants.py,sha256=5Yh4Ujt70HEF-FsnwVBPBm3DB3HHzQWSWR-9Upt7C5I,93
11
11
  das/common/enums.py,sha256=jS0frv6717duG_wZNockXMTZ-VfsGu_f8_-lgYGnrcY,1745
12
12
  das/common/file_utils.py,sha256=-zePjYsj8iRpQssVQMHDK3Mh5q8FooKJCUCKCXKS6_Y,7006
@@ -22,9 +22,9 @@ das/services/entry_fields.py,sha256=x2wUDkKNduj9pf4s56hRo0UW-eBhipkU9gFMEjFw5DA,
22
22
  das/services/hangfire.py,sha256=hidmVP9yb4znzBaJJRyKawYx7oYaBv5OVL-t0BhvN_A,818
23
23
  das/services/search.py,sha256=3X_KPb9fs024FhxoTr4j-xY5ymm5rvvzlekxuh8tLdg,1374
24
24
  das/services/users.py,sha256=iNijO2UPIEtcpPy8Tkemdxxym9rYLCUyckQHIQj68W0,795
25
- das_cli-1.0.5.dist-info/licenses/LICENSE,sha256=4EDhysVgQWBlzo0rdUl_k89s-iVfgCcSa1gUx1TM1vA,1124
26
- das_cli-1.0.5.dist-info/METADATA,sha256=wpNgAJWR5AJtLOkNduB-yycWo05teMWDSXHEWYyumVA,10469
27
- das_cli-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- das_cli-1.0.5.dist-info/entry_points.txt,sha256=ZrdMae7NcvogQhzM1zun8E8n_QwYq-LpZvoJCr2_I4g,36
29
- das_cli-1.0.5.dist-info/top_level.txt,sha256=OJsPEeJyJ2rJlpEn2DTPgbMSvYG-6FeD13_m5qLpw3E,4
30
- das_cli-1.0.5.dist-info/RECORD,,
25
+ das_cli-1.0.6.dist-info/licenses/LICENSE,sha256=4EDhysVgQWBlzo0rdUl_k89s-iVfgCcSa1gUx1TM1vA,1124
26
+ das_cli-1.0.6.dist-info/METADATA,sha256=4Tr-LGEgUlJoHC0khiw_vHusfHC89y-nWhSH2KhNiLg,10469
27
+ das_cli-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ das_cli-1.0.6.dist-info/entry_points.txt,sha256=ZrdMae7NcvogQhzM1zun8E8n_QwYq-LpZvoJCr2_I4g,36
29
+ das_cli-1.0.6.dist-info/top_level.txt,sha256=OJsPEeJyJ2rJlpEn2DTPgbMSvYG-6FeD13_m5qLpw3E,4
30
+ das_cli-1.0.6.dist-info/RECORD,,