Skip to content

Commit bbde736

Browse files
authored
FIX: remove aiohttp leftovers (#40)
1 parent 3d24434 commit bbde736

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ For handling all possible exceptions thrown by this SDK use `SinchException` (su
136136

137137
By default, two HTTP implementations are provided:
138138
- Synchronous using `requests` HTTP library
139-
- Asynchronous using `aiohttp` HTTP library
139+
- Asynchronous using `httpx` HTTP library
140140

141141
For creating custom HTTP client code, use either `SinchClient` or `SinchClientAsync` client and inject your transport during initialisation:
142142
```python

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "sinch"
33
description = "Sinch SDK for Python programming language"
4-
version = "1.1.0"
4+
version = "1.1.1"
55
license = "Apache 2.0"
66
readme = "README.md"
77
authors = [

requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ pytest
22
flake8
33
bandit
44
requests
5-
aiohttp
65
flask
76
fastapi
87
httpx

sinch/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" Sinch Python SDK
22
To access Sinch resources, use the Sync or Async version of the Sinch Client.
33
"""
4-
__version__ = "1.1.0"
4+
__version__ = "1.1.1"
55

66
from sinch.core.clients.sinch_client_sync import SinchClient
77
from sinch.core.clients.sinch_client_async import SinchClientAsync

sinch/core/clients/sinch_client_async.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class SinchClientAsync(SinchClientBase):
1515
"""
1616
Asynchronous implementation of the Sinch Client
17-
By default this implementation uses HTTPTransportAioHTTP based on AioHTTP library
17+
By default this implementation uses HTTPXTransport based on httpx library
1818
Custom Async HTTPTransport implementation can be provided via `transport` argument
1919
"""
2020
def __init__(

sinch/core/ports/http_transport.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import aiohttp
1+
import httpx
22
from abc import ABC, abstractmethod
33
from platform import python_version
44
from sinch.core.endpoint import HTTPEndpoint
@@ -128,7 +128,7 @@ def handle_response(self, endpoint: HTTPEndpoint, http_response: HTTPResponse):
128128
class AsyncHTTPTransport(HTTPTransport):
129129
async def authenticate(self, endpoint, request_data):
130130
if endpoint.HTTP_AUTHENTICATION == HTTPAuthentication.BASIC.value:
131-
request_data.auth = aiohttp.BasicAuth(
131+
request_data.auth = httpx.BasicAuth(
132132
self.sinch.configuration.key_id,
133133
self.sinch.configuration.key_secret
134134
)

0 commit comments

Comments
 (0)