get-conn-by-id 0.0.4__tar.gz → 0.0.5__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 (18) hide show
  1. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/PKG-INFO +1 -1
  2. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/__init__.py +4 -1
  3. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id.egg-info/PKG-INFO +1 -1
  4. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/LICENSE +0 -0
  5. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/__version__.py +0 -0
  6. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_airflow/__init__.py +0 -0
  7. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_json/__init__.py +0 -0
  8. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_json/get_credential_url/__init__.py +0 -0
  9. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_json/get_credential_url/databricks/__init__.py +0 -0
  10. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_json/get_credential_url/local/__init__.py +0 -0
  11. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_synapse/__init__.py +0 -0
  12. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_synapse/connect_lake_and_fetch_json/__init__.py +0 -0
  13. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id/get_conn_by_id_synapse/datalake/__init__.py +0 -0
  14. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id.egg-info/SOURCES.txt +0 -0
  15. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id.egg-info/dependency_links.txt +0 -0
  16. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/get_conn_by_id.egg-info/top_level.txt +0 -0
  17. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/pyproject.toml +0 -0
  18. {get_conn_by_id-0.0.4 → get_conn_by_id-0.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: get_conn_by_id
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: A library used to get the connections from different environments.
5
5
  Author-email: Cody Xiaozhan Yang <x.yang@cloudfmgroup.com>
6
6
  License: MIT License
@@ -27,7 +27,10 @@ def get_conn_by_id(conn_id,
27
27
  from .get_conn_by_id_synapse import get_conn_by_id_synapse
28
28
 
29
29
  if account_key is None:
30
- raise Exception('Please provide a valid account_key for getting credentials in the synapse environment')
30
+ try:
31
+ account_key = mssparkutils.credentials.getConnectionStringOrCreds('AzureDataLakeStorageTest')
32
+ except:
33
+ raise Exception('Cannot get a valid account_key from mssparkutils, please provide one for getting credentials in the synapse environment')
31
34
 
32
35
  cred_conn = get_conn_by_id_synapse(conn_id, account_key)
33
36
  return cred_conn
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: get_conn_by_id
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: A library used to get the connections from different environments.
5
5
  Author-email: Cody Xiaozhan Yang <x.yang@cloudfmgroup.com>
6
6
  License: MIT License
File without changes
File without changes