Skip to content
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 ability to upload from an unbound source such as standard input or a named pipe #899

Merged

Conversation

mjurbanski-reef
Copy link
Collaborator

@mjurbanski-reef mjurbanski-reef commented Jul 27, 2023

It maybe best to use a squash merge here since there are so many commits here.

ammalecki-reef and others added 30 commits May 19, 2023 15:56
b2/console_tool.py Show resolved Hide resolved
"sha1_sum": args.sha1,
}

def execute_operation(self, **kwargs) -> 'b2sdk.file_version.FileVersion':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this and not abc?

)
return file_id

class NotAnInputStream(Exception):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I've seen his pattern in this project before, any reason for not declaring this exception at module level?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because the only function rising it is a class method; i.e. if this function is removed, exception should be removed as well

We are talking about ~4k long file, which is why namespacing is especially important.

test/helpers.py Show resolved Hide resolved
@mpnowacki-reef mpnowacki-reef merged commit 7211c98 into Backblaze:master Aug 16, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants