We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Had some trouble using this library with smart_open
See the snippet below, where I hit both a real S3 implementation and the S3rver implementation:
## Install dependencies: pip install smart-open
Code
from boto3.session import Session from smart_open import open def create_s3_client_real(): client = Session( aws_access_key_id="KEY", aws_secret_access_key="SECRET" ).client( "s3", ) return client def create_s3_client_s3rver(): client = Session( aws_access_key_id="S3RVER", aws_secret_access_key="S3RVER" ).client("s3", endpoint_url="http://localhost:4569") return client real = create_s3_client_real() s3rver = create_s3_client_s3rver() print(real.get_object(Bucket="bucket", Key="object.txt", Range="bytes=0-")) print(" *********************** ") print(s3rver.get_object(Bucket="bucket", Key="object.txt", Range="bytes=0-"))
The problem arises because the check if(options.start || options.end) evaluates to false when options.start = 0; however it is a valid range.
if(options.start || options.end)
options.start = 0
A Pull Request has been submitted: #753
The text was updated successfully, but these errors were encountered:
Closed via #755 and released in v3.7.1!
Sorry, something went wrong.
No branches or pull requests
Had some trouble using this library with smart_open
See the snippet below, where I hit both a real S3 implementation and the S3rver implementation:
Code
The problem arises because the check
if(options.start || options.end)
evaluates to false whenoptions.start = 0
; however it is a valid range.A Pull Request has been submitted: #753
The text was updated successfully, but these errors were encountered: