- Feat:
import_response_ok()
to check on the importSummary of a DHIS2 import request for data values, events, metadata.
- Fix: no default
timeout
parameter value (previous: 5 seconds) inApi.get()
. Implementations are advised to set this per connection (see requests documentation).
- Feat: allow a
timeout
parameter inApi.get()
to prevent requests from waiting indefinitely on a response (see here)
- Fix: set
python_requires
correctly in setup.py
- Chore: drop black from dev-packages
- Chore: Drop Python 2.7 and 3.5 support, Python 3.6+ is required
- Chore: use type annotations, flake8, mypy, and black
- Chore: Maintenance release for documentation
- Chore: Maintenance release for documentation
- Chore:
Dhis
class was renamed toApi
- Chore:
APIException
was renamed toRequestException
- Feat:
generate_uids()
was completely removed. Usegenerate_uid()
for a single UID, not requiring an existingApi
instance.
- Feat: allow
delete()
to have payload
- Chore: update requests to 2.20.0 due to CVE-2018-18074
- Chore: pin test dependencies, CI tests
- Feat: allow
delete()
to have params
- Feat:
clean_obj()
to recursively remove e.g.userGroupAccesses
keys from an object - Chore: require
six
as a dependency
- Chore: various minor bug fixes and clean up
- Feat: argument
local
togenerate_uids()
to create UIDs locally (no network calls to DHIS2) - Feat:
pretty_json()
to print easy-readable JSON
- Feat: partitioned payloads with
.post_partitioned()
to split large payloads into smaller ones
- Feat: allow to use
https://
scheme and no scheme for localhost urls (e.g.localhost:8080
) - Feat: allow to use
json
alongsidedata
argument in Dhis.get
/.post
/.put
/.patch
to standardize withrequests
- Feat:
setup_logger()
to choose if caller and line of script should be included - e.g.[script:123]
- Chore: CI testing fixes
- Feat: allow list of tuples as params to HTTP requests - #4
- Fix:
get_paged.page_size
validation - Feat: this changelog
- Feat:
merge
support forget_sqlview()
- Feat: enable paging of events