-
Notifications
You must be signed in to change notification settings - Fork 122
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
[ENH] cache credentials in-memory #208
Conversation
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.
The following files do not match the black
styleguide:
- tests/unit/test_context.py
874bac8
to
9ceb8f7
Compare
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.
The following files do not match the black
styleguide:
- tests/unit/test_context.py
self._credentials = None | ||
self._project = None | ||
|
||
@property |
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.
Do we need the getters and setters? Are they doing anything beyond attributes? It's not bloating the interface, so I don't have a strong view.
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.
My thought is that these can be used to provide documentation about the settable properties.
This is going to radically reduce the latency, thanks! |
9ceb8f7
to
cdfc1aa
Compare
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.
The following files do not match the black
styleguide:
- tests/unit/conftest.py
This commit adds a global pandas_gbq.context variable which caches the project ID and credentials across calls to read_gbq and to_gbq.
cdfc1aa
to
9863ac1
Compare
Looks good! |
Shall we merge? I'll start testing internally as soon as we do |
We can merge now. I want to clean up the docs a little more before we release. |
Adds a global Context object to cache credentials in.
This PR is a work in progress towards #198 and somewhat towards #103.
Do not merge.
I still need to flesh out the unit tests for this behavior.It is a new feature, so we should probably release 0.6.1 with the recent bug fixes first.