b24api 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: b24api
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Bitrix24 API
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -12,8 +12,8 @@ from retry import retry
12
12
 
13
13
  from b24api.entity import ApiTypes, BatchResult, ErrorResponse, ListRequest, Request, Response
14
14
  from b24api.error import RetryApiResponseError, RetryHTTPStatusError
15
- from b24api.httpc import HttpxClient
16
15
  from b24api.settings import ApiSettings
16
+ from b24api.transport import HttpxClient
17
17
 
18
18
 
19
19
  class Bitrix24:
@@ -23,7 +23,13 @@ class Bitrix24:
23
23
  self.settings = settings
24
24
  self.logger = logging.getLogger("b24api")
25
25
  self._call_retry = retry(
26
- exceptions=(RetryHTTPStatusError, RetryApiResponseError),
26
+ exceptions=(
27
+ httpx.ConnectError,
28
+ httpx.ConnectTimeout,
29
+ httpx.RemoteProtocolError,
30
+ RetryHTTPStatusError,
31
+ RetryApiResponseError,
32
+ ),
27
33
  tries=self.settings.retry_tries,
28
34
  delay=self.settings.retry_delay,
29
35
  backoff=self.settings.retry_backoff,
@@ -1,4 +1,3 @@
1
- import logging
2
1
  from collections.abc import Generator
3
2
  from typing import Annotated
4
3
 
@@ -7,9 +6,6 @@ from httpx import Client
7
6
 
8
7
 
9
8
  def httpx_client() -> Generator[Client, None, None]:
10
- httpx_logger = logging.getLogger("httpx")
11
- httpx_logger.setLevel(logging.WARNING)
12
-
13
9
  client = Client(http2=True, timeout=30)
14
10
 
15
11
  yield client
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: b24api
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Bitrix24 API
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -6,9 +6,9 @@ b24api/__init__.py
6
6
  b24api/api.py
7
7
  b24api/entity.py
8
8
  b24api/error.py
9
- b24api/httpc.py
10
9
  b24api/query.py
11
10
  b24api/settings.py
11
+ b24api/transport.py
12
12
  b24api/type.py
13
13
  b24api.egg-info/PKG-INFO
14
14
  b24api.egg-info/SOURCES.txt
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "b24api"
8
- version = "0.3.1"
8
+ version = "0.3.2"
9
9
  description = "Bitrix24 API"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes