-
Notifications
You must be signed in to change notification settings - Fork 7
Feature/optional files class #88
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
Conversation
…orting libraries for all storage backends
soustruh
left a comment
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.
I propose two tiny changes, please consider yourself whether you find them worth implementing or not…
kbcstorage/client.py
Outdated
| """ | ||
|
|
||
| def __init__(self, api_domain, token, branch_id='default'): | ||
| def __init__(self, api_domain, token, branch_id='default', without_files=False): |
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.
Just one minor readability issue, it's generally recommended to name variables in a positive way, not with a negative meaning. Instead of
if not without_files
you'd end up for example with
if initialize_files_object
which is understandable at first sight without decoding double negation. 🙂
kbcstorage/client.py
Outdated
| "https://connection.keboola.com". | ||
| token (str): A storage API key. | ||
| branch_id (str): The ID of branch to use, use 'default' to work without branch (in main). | ||
| without_files (bool): If True saves memory by not importing files and libraries for all backends. |
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.
Missing comma 🕵️
soustruh
left a comment
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.
Thanks for the changes 😇
No description provided.