-
Notifications
You must be signed in to change notification settings - Fork 81
OdkCentralAsync
svcfmtm edited this page Apr 4, 2024
·
3 revisions
::: osm_fieldwork.OdkCentralAsync.OdkCentral options: show_source: false heading_level: 3
::: osm_fieldwork.OdkCentralAsync.OdkProject options: show_source: false heading_level: 3
::: osm_fieldwork.OdkCentralAsync.OdkEntity options: show_source: false heading_level: 3
- An async context manager must be used (
async with
).
from osm_fieldwork.OdkCentralAsync import OdkProject
async with OdkProject(
url="http://server.com",
user="user@domain.com",
passwd="password",
) as odk_central:
projects = await odk_central.listProjects()