-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add azure upload and download client logic #27
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I've left a few comments for you to consider.
account: str, | ||
container: str, | ||
key: str, | ||
data: None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be helpful to users of the function specify a type hint eg. Optional[Dict] if it can be None or a dictionary
account (str): Storage account to access the blob | ||
container (str): Container to download from | ||
key (str): Key to access the blob | ||
blob (str): Name of the blob to be downloaded. If empty, then it is assumed to download |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the default is None, the type should be Optional[str]
"If-None-Match": "", | ||
"If-Unmodified-Since": "", | ||
"Range": "", | ||
"CanonicalizedHeaders": "x-ms-date:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using f-strings for this and other cases of concatenating strings
I am going to put this PR on hold for now and getting back to it next month. |
This is a basic working piece for the upload and download of blob files into and from azure.
The methods here will be extended but for now in terms of testing some development pipelines this should suffice.