CommCare Data Export Tool
https://github.com/dimagi/commcare-export
A command-line tool (and Python library) to generate customized exports from the CommCare HQ REST API.
Quick Start
Installation
uv pip install commcare-export
Basic Usage
# Export forms to Markdown (useful for testing)
commcare-export \
--query examples/demo-registration.xlsx \
--project YOUR_PROJECT \
--output-format markdown
# Export to a SQL database with incremental updates
commcare-export \
--query examples/demo-registration.xlsx \
--project YOUR_PROJECT \
--output-format sql \
--output postgresql://user:pass@localhost/dbname
# Export to Delta Lake tables in cloud storage with incremental updates
commcare-export \
--query examples/demo-registrations.xlsx \
--project YOUR_PROJECT \
--output-format delta \
--output az://container/commcare \
--checkpoint-database-url sqlite:///checkpoints.db
Example query files are provided in the examples/ directory for both Excel and JSON formats.
Documentation
For Users
See the User Documentation for installation, creating queries, command-line usage, scheduling, and common use cases.
For Developers
See the Technical Documentation for:
- Python Library Usage - Using
commcare-exportas a Python library - MiniLinq Reference - Query language documentation
- Query Formats - Excel and JSON query specifications
- Output Formats - Available output formats and dependencies
- User and Location Data - Exporting organization data
- Command-line Usage - CLI reference
- Scheduling - Running DET on a schedule
Contributing
We welcome contributions! See CONTRIBUTING.md for how to set up your development environment, coding style guidelines, testing, and the release process.
Python Versions
Tested with Python 3.10, 3.11, 3.12, and 3.13.
License
MIT License - see LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commcare_export-1.16.0.tar.gz.
File metadata
- Download URL: commcare_export-1.16.0.tar.gz
- Upload date:
- Size: 389.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7707dfa70ea10dd659aaa7b5cd4840e12d634c222c86f3962b6bfcca2e904420
|
|
| MD5 |
925fdd4777ab0085991018eb1616d744
|
|
| BLAKE2b-256 |
59993971ff27c4d08998a4166c7565778eab56abff0460304bf9164f13936a02
|
Provenance
The following attestation bundles were made for commcare_export-1.16.0.tar.gz:
Publisher:
publish.yml on dimagi/commcare-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commcare_export-1.16.0.tar.gz -
Subject digest:
7707dfa70ea10dd659aaa7b5cd4840e12d634c222c86f3962b6bfcca2e904420 - Sigstore transparency entry: 2760582769
- Sigstore integration time:
-
Permalink:
dimagi/commcare-export@05eb6b6ab6062ac27c8f7bce0ad4666247397171 -
Branch / Tag:
refs/tags/1.16.0 - Owner: https://github.com/dimagi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05eb6b6ab6062ac27c8f7bce0ad4666247397171 -
Trigger Event:
push
-
Statement type:
File details
Details for the file commcare_export-1.16.0-py3-none-any.whl.
File metadata
- Download URL: commcare_export-1.16.0-py3-none-any.whl
- Upload date:
- Size: 66.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
051a0d1a1b73d365d46462d4059c0a6ee17a463917004dcda30de96cb924fc62
|
|
| MD5 |
3ae0bb220bf3ccd2a80ba21bcf8494be
|
|
| BLAKE2b-256 |
bfab10c6a5eac117996bb300b604fbffb636943b3551385121e0ad5062aae606
|
Provenance
The following attestation bundles were made for commcare_export-1.16.0-py3-none-any.whl:
Publisher:
publish.yml on dimagi/commcare-export
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commcare_export-1.16.0-py3-none-any.whl -
Subject digest:
051a0d1a1b73d365d46462d4059c0a6ee17a463917004dcda30de96cb924fc62 - Sigstore transparency entry: 2760582811
- Sigstore integration time:
-
Permalink:
dimagi/commcare-export@05eb6b6ab6062ac27c8f7bce0ad4666247397171 -
Branch / Tag:
refs/tags/1.16.0 - Owner: https://github.com/dimagi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@05eb6b6ab6062ac27c8f7bce0ad4666247397171 -
Trigger Event:
push
-
Statement type: