Skip to content

session

konigle.session

HTTP session management for the Konigle SDK.

This module provides both synchronous and asynchronous HTTP session wrappers that handle authentication, connection pooling, error handling, and logging for all API communications.

AsyncSession

Bases: BaseSession

Asynchronous HTTP session wrapper.

client property

Get or create asynchronous HTTP client.

aclose() async

Close the async HTTP client.

delete(url, **kwargs) async

Make async DELETE request.

get(url, **kwargs) async

Make async GET request.

patch(url, **kwargs) async

Make async PATCH request.

post(url, **kwargs) async

Make async POST request.

put(url, **kwargs) async

Make async PUT request.

BaseSession

Base session class with shared functionality.

SyncSession

Bases: BaseSession

Synchronous HTTP session wrapper.

client property

Get or create synchronous HTTP client.

close()

Close the HTTP client.

delete(url, **kwargs)

Make DELETE request.

get(url, **kwargs)

Make GET request.

patch(url, **kwargs)

Make PATCH request.

post(url, **kwargs)

Make POST request.

put(url, **kwargs)

Make PUT request.