dhis2w-client API reference¶
Auto-generated from the dhis2w-client source via mkdocstrings. Every class, method, and function listed here is importable from dhis2w_client (top-level re-exports) or from its module.
For prose explanations with worked examples, see the dhis2w-client step-by-step guide.
Layout¶
- Client + lifecycle —
Dhis2Client, connect, close, raw escape hatches - Auth providers —
BasicAuth,PatAuth,OAuth2Auth, theAuthProviderProtocol,OAuth2Token,TokenStore - Errors — the exception hierarchy
- Envelopes + responses —
WebMessageResponse,Conflict,ImportCount,ObjectReport,ImportReport - Route auth schemes — the 5-variant discriminated
AuthSchemeunion - Sharing — typed
SharingObject+SharingBuilder+get_sharing/apply_sharinghelpers over/api/sharing - Generated-model helpers —
Dhis2enum,available_versions,load - OpenAPI-derived models — the 562+ classes emitted under
generated/v42/oas/from/api/openapi.json - System module —
Me,SystemInfo,SystemModule - Tracker reads — instance models, status enums
- Aggregate —
DataValue,DataValueSet - Data values (streaming) —
DataValuesAccessoronDhis2Client.data_values(streaming/api/dataValueSetsimports) - Analytics —
Grid,GridHeader(OAS-emitted) +AnalyticsMetaData(typed parser helper overGrid.metaData) - Analytics streaming —
AnalyticsAccessoronDhis2Client.analytics(chunked/api/analytics*downloads) - Maintenance —
Notification,DataIntegrityCheck,DataIntegrityResult,DataIntegrityReport - Metadata accessor —
MetadataAccessoronDhis2Client.metadata(bulk delete + multi-resource operations) - Customize —
CustomizeAccessor,LoginCustomization,CustomizationResult - Files —
FilesAccessor,Document,FileResource,FileResourceDomain— documents + file-resource uploads/downloads - Messaging —
MessagingAccessoronDhis2Client.messaging(/api/messageConversations) - Apps —
AppsAccessoronDhis2Client.apps— install / uninstall / update over/api/apps+/api/appHub - Validation + predictors —
ValidationAccessor+PredictorsAccessorfor the run-rules + run-predictors workflow - Visualizations + dashboards —
VisualizationsAccessor+VisualizationSpec+DashboardsAccessor+DashboardSlotfor authoring saved analytics + composing dashboards - Maps —
MapsAccessor+MapSpec+MapLayerSpecfor thematic choropleths + map composition - Legend sets —
LegendSetsAccessor+LegendSetSpec+LegendSpec— colour-range authoring attached to visualizations and maps - Organisation units —
OrganisationUnitsAccessor+OrganisationUnitGroupsAccessor+OrganisationUnitGroupSetsAccessor+OrganisationUnitLevelsAccessor— tree-aware reads, per-level naming, group + group-set membership - Data elements —
DataElementsAccessor+DataElementGroupsAccessor+DataElementGroupSetsAccessor— aggregate + tracker DE authoring, thematic groups, analytics dimensions - Indicators —
IndicatorsAccessor+IndicatorGroupsAccessor+IndicatorGroupSetsAccessor— computed-ratio authoring with expression validation, per-item membership shortcuts - Program indicators —
ProgramIndicatorsAccessor+ProgramIndicatorGroupsAccessor— tracker-analytics authoring (pair only; DHIS2 doesn't expose a ProgramIndicatorGroupSet) - Category options —
CategoryOptionsAccessor+CategoryOptionGroupsAccessor+CategoryOptionGroupSetsAccessor— disaggregation values + validity windows + analytics dimensions - SQL views —
SqlViewsAccessor+SqlViewRunnerfor DHIS2SqlViewexecution workflows - Periods —
PeriodTypeStrEnum - UIDs — client-side UID generator + validator