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

make http handler take an optional requests.Session #825

Merged
merged 5 commits into from
Oct 4, 2024

Conversation

arondaniel
Copy link
Contributor

@arondaniel arondaniel commented Jun 17, 2024

Title

Makes http handler take an optional requests.Session object

Motivation

Fixes #792

Allows passing in a custom requests.Session object via smart_open.open transport_params. The Session object can support OAUTH2 authentication.

Tests

Added test for setting session attribute.

@ddelange
Copy link
Contributor

ddelange commented Aug 21, 2024

@arondaniel can you pull latest develop? it contains some changes on CI that touch requests/urllib3

smart_open/http.py Outdated Show resolved Hide resolved
@mpenkov
Copy link
Collaborator

mpenkov commented Oct 4, 2024

Thank you @arondaniel and @ddelange !

@mpenkov mpenkov merged commit 672db98 into piskvorky:develop Oct 4, 2024
26 checks passed
ddelange added a commit to ddelange/smart_open that referenced this pull request Oct 28, 2024
@ddelange ddelange mentioned this pull request Oct 28, 2024
5 tasks
mpenkov pushed a commit that referenced this pull request Oct 30, 2024
* Fix leftover from #825

* Remove pip install -U pip calls
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.

Add OAuth2 support
3 participants