Skip to content
Closed
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
4 changes: 2 additions & 2 deletions mpt_api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mpt_api_client.mptclient import MPTClient
from mpt_api_client.mpt_client import AsyncMPTClient, MPTClient
from mpt_api_client.rql import RQLQuery

__all__ = ["MPTClient", "RQLQuery"] # noqa: WPS410
__all__ = ["AsyncMPTClient", "MPTClient", "RQLQuery"] # noqa: WPS410
4 changes: 4 additions & 0 deletions mpt_api_client/http/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from mpt_api_client.http.client import AsyncHTTPClient, HTTPClient
from mpt_api_client.http.service import AsyncServiceBase, SyncServiceBase

__all__ = ["AsyncHTTPClient", "AsyncServiceBase", "HTTPClient", "SyncServiceBase"] # noqa: WPS410
8 changes: 3 additions & 5 deletions mpt_api_client/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@ def __init__(
"User-Agent": "swo-marketplace-client/1.0",
"Authorization": f"Bearer {api_token}",
}
Client.__init__(
self,
super().__init__(
base_url=base_url,
headers=base_headers,
timeout=timeout,
transport=HTTPTransport(retries=retries),
)


class HTTPClientAsync(AsyncClient):
class AsyncHTTPClient(AsyncClient):
"""Async HTTP client for interacting with SoftwareOne Marketplace Platform API."""

def __init__(
Expand Down Expand Up @@ -72,8 +71,7 @@ def __init__(
"User-Agent": "swo-marketplace-client/1.0",
"Authorization": f"Bearer {api_token}",
}
AsyncClient.__init__(
self,
super().__init__(
base_url=base_url,
headers=base_headers,
timeout=timeout,
Expand Down
135 changes: 0 additions & 135 deletions mpt_api_client/http/resource.py

This file was deleted.

Loading