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

S3 path doesn't support ~/.boto profiles. #7682

Closed
hunterowens opened this issue Jul 7, 2014 · 6 comments
Closed

S3 path doesn't support ~/.boto profiles. #7682

hunterowens opened this issue Jul 7, 2014 · 6 comments
Labels
Enhancement IO Data IO issues that don't fit into a more specific label

Comments

@hunterowens
Copy link
Contributor

If multiple credentials exits, many users have profiles in their ~/.boto as such-

[profile Data-Robot]
aws_access_key_id = a key
aws_secret_access_key = a secret

[Credentials]
aws_access_key_id = default key
aws_secret_access_key = default secret

you can pass

In [70]: con = boto.connect_s3(profile_name="Data-Robot")
``` to load from a profile. However, you can not do this in pandas. 
@cpcloud
Copy link
Member

cpcloud commented Jul 7, 2014

What's wrong with connecting with boto and then get the data as a string and pass it in a StringIO object to read_csv?

@cpcloud
Copy link
Member

cpcloud commented Jul 7, 2014

alternatively you could write a read_s3 function to do this. you could put up a pull request and we'll happily discuss it here.

@hunterowens
Copy link
Contributor Author

Cool. I'll try and get on that tonight.

On Mon, Jul 7, 2014 at 11:18 AM, Phillip Cloud notifications@github.com
wrote:

you could write a read_s3 function to do this. you could put up a pull
request and we'll happily discuss it here.


Reply to this email directly or view it on GitHub
#7682 (comment).

@jreback jreback added this to the 0.15.1 milestone Jul 7, 2014
@cpcloud
Copy link
Member

cpcloud commented Jul 7, 2014

cool, just FYI, not guaranteeing this will get in, but i think worth putting up a first implementation to see if this is something that users would like to have.

@hunterowens
Copy link
Contributor Author

Hey, finally got around to looking at this. Anyways, boto config is as follows

The Credentials section is used to specify the AWS credentials used for all boto requests. The order of precedence for authentication credentials is:

Credentials passed into the Connection class constructor.
Credentials specified by environment variables
Credentials specified as named profiles in the shared credential file.
Credentials specified by default in the shared credential file.
Credentials specified as named profiles in the config file.
Credentials specified by default in the config file.

Source

Anyways, behavior could be that if a couple variable names are set (AWS_ACCESS_KEY and AWS_SECRET_KEY) it would use those keys instead of the default environment variables. Thoughts?

@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015
@jreback
Copy link
Contributor

jreback commented Jul 6, 2018

we use s3fs for access, so out-of-scope (this may actually work though)

@jreback jreback closed this as completed Jul 6, 2018
@jreback jreback modified the milestones: Contributions Welcome, No action Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

No branches or pull requests

3 participants