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

How do I get the HTTP URL using Botocore? #291

Closed
farid-oldaccount opened this issue May 26, 2014 · 2 comments
Closed

How do I get the HTTP URL using Botocore? #291

farid-oldaccount opened this issue May 26, 2014 · 2 comments
Assignees
Labels

Comments

@farid-oldaccount
Copy link

I've always used the Boto library to use Amazon's S3 service, but because of a Python 3.4 project I had to use Botocore instead. I've figured out how to do most things, but I can't seem to find how to do one (pretty essential) thing; generating urls. In Boto I would simply set a Key and fire the generate_url method. How do I do this in Botocore? I know how to download and save files, but I would much rather just get a link because of server performance and what-not.

@vlcinsky
Copy link

vlcinsky commented May 7, 2015

@faridelnasire I had similar question and got promising answer at boto/boto3#110.

It is partially (only relative expiration time) implemented in branch clients-only and is on the botocore roadmap as just the next step to complete.

@kyleknap
Copy link
Contributor

The feature is currently available in botocore. Here is the related documentation:
http://botocore.readthedocs.org/en/latest/reference/services/s3.html#S3.Client.generate_presigned_url

Here is an example of how you would use the method as well: https://github.com/boto/botocore/blob/develop/tests/integration/test_s3.py#L441

Closing issue. Please update the issue if you have any more questions or comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants