Skip to content

Commit 7ded5b7

Browse files
committed
storage_options
1 parent d4a1753 commit 7ded5b7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "dean_utils"
7-
version="0.0.10"
7+
version="0.0.11"
88
authors=[
99
{ name="Dean MacGregor", email="powertrading121@gmail.com"}
1010
]

src/dean_utils/utils/az_utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ class async_abfs:
5959
def __init__(self, connection_string=os.environ["Synblob"]):
6060
self.connection_string = connection_string
6161
self.sync = fsspec.filesystem("abfss", connection_string=self.connection_string)
62+
key_conv = {"AccountName": "account_name", "AccountKey": "account_key"}
63+
stor = {
64+
(splt := x.split("=", 1))[0]: splt[1]
65+
for x in self.connection_string.split(";")
66+
}
67+
stor = {
68+
key_conv[key]: val for key, val in stor.items() if key in key_conv.keys()
69+
}
70+
self.stor = stor
6271

6372
async def walk(self, path: str, maxdepth=None, **kwargs):
6473
"""

0 commit comments

Comments
 (0)