Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions polarion_rest_api_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import asyncio
import ssl
import typing as t

Expand Down Expand Up @@ -126,6 +127,7 @@ def __init__(
page_size: int = 100,
max_content_size: int = 2 * 1024**2,
verify_ssl: ssl.SSLContext | bool | None = None,
max_in_flight_requests: int = 4,
):
if verify_ssl is None:
verify_ssl = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
Expand All @@ -135,6 +137,7 @@ def __init__(
verify_ssl=verify_ssl,
httpx_args=httpx_args or {},
)
self.semaphore = asyncio.Semaphore(max_in_flight_requests)
self.batch_size = batch_size
self.page_size = page_size
self.max_content_size = max_content_size
Expand Down
Loading
Loading