Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit e5ee7ce

Browse files
author
David Huser
committed
version 2.2.1
1 parent e5191e0 commit e5ee7ce

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
CHANGELOG
33
=========
44

5+
2.2.1
6+
-----
7+
- no default `timeout` parameter value (previous: 5 seconds). Implementations are advised to set this per connection (see requests documentation).
8+
9+
510
2.2.0
611
-----
712
- allow a `timeout` parameter to prevent requests from waiting indefinitely on a response (see `here <https://docs.python-requests.org/en/master/user/quickstart/#timeouts>`_)
8-
=======
13+
914

1015
2.1.2
1116
-----

dhis2/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__title__ = "dhis2.py"
22
__description__ = "Python wrapper for DHIS2"
33
__url__ = "https://github.com/davidhuser/dhis2.py"
4-
__version__ = "2.2.0"
4+
__version__ = "2.2.1"
55
__author__ = "David Huser"
66
__author_email__ = "[email protected]"
77
__license__ = "MIT"

dhis2/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get(
291291
file_type: str = "json",
292292
params: Union[dict, List[tuple]] = None,
293293
stream: bool = False,
294-
timeout: int = 5
294+
timeout: int = None
295295
) -> requests.Response:
296296
"""
297297
GET from DHIS2

examples/2_import_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def main():
2121
"metadata.json",
2222
params={"preheatCache": False, "strategy": "CREATE"},
2323
json=data,
24+
timeout=(3, 30)
2425
)
2526
except RequestException as e:
2627
logger.error("Import failed: {}".format(e))

0 commit comments

Comments
 (0)