We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f01b5 commit eb7af6fCopy full SHA for eb7af6f
2 files changed
facturapi/http/client.py
@@ -9,6 +9,7 @@
9
from ..version import CLIENT_VERSION
10
11
API_HOST = 'www.facturapi.io/v2'
12
+FACTURAPI_TIMEOUT = float(os.getenv('FACTURAPI_TIMEOUT', 10.0))
13
14
15
class Client:
@@ -31,7 +32,7 @@ class Client:
31
32
client: httpx.Client
33
34
def __init__(self) -> None:
- self.client = httpx.Client()
35
+ self.client = httpx.Client(timeout=FACTURAPI_TIMEOUT)
36
self.client.headers.update(
37
{
38
'User-Agent': f'facturapi-python/{CLIENT_VERSION}',
facturapi/version.py
@@ -1,2 +1,2 @@
1
-__version__ = '1.0.0'
+__version__ = '1.0.1'
2
CLIENT_VERSION = __version__
0 commit comments