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

Allow to assign custom sessions in the client and its auth #4

Merged
merged 3 commits into from
Aug 7, 2023

Conversation

amatmv
Copy link
Member

@amatmv amatmv commented Aug 4, 2023

We want to customize the sessions that the client uses. With this PR we will be able to do the following:

from pyakeneo.client import Client
custom_session = requests.Session()

# We can customize both the client and it's Auth adapter session
client = Client(session=custom_session)
client.auth.session = custom_session

@amatmv amatmv changed the title Allow to custom requests sessions in the client Allow to assign custom sessions in the client and its auth Aug 4, 2023
@amatmv amatmv merged commit 74c5651 into master Aug 7, 2023
@amatmv amatmv added this to the 0.6.0 milestone Aug 7, 2023
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.

2 participants