- Feat:
import_response_ok()to check on the importSummary of a DHIS2 import request for data values, events, metadata.
- Fix: no default
timeoutparameter value (previous: 5 seconds) inApi.get(). Implementations are advised to set this per connection (see requests documentation).
- Feat: allow a
timeoutparameter inApi.get()to prevent requests from waiting indefinitely on a response (see here)
- Fix: set
python_requirescorrectly 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:
Dhisclass was renamed toApi - Chore:
APIExceptionwas renamed toRequestException - Feat:
generate_uids()was completely removed. Usegenerate_uid()for a single UID, not requiring an existingApiinstance.
- 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.userGroupAccesseskeys from an object - Chore: require
sixas a dependency
- Chore: various minor bug fixes and clean up
- Feat: argument
localtogenerate_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
jsonalongsidedataargument in Dhis.get/.post/.put/.patchto 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_sizevalidation - Feat: this changelog
- Feat:
mergesupport forget_sqlview() - Feat: enable paging of events