Skip to main content

CommCare Data Export Tool

https://github.com/dimagi/commcare-export

Build Status Test coverage PyPI version

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:

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

commcare_export-1.16.0.tar.gz (389.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commcare_export-1.16.0-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

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

Hashes for commcare_export-1.16.0.tar.gz
Algorithm Hash digest
SHA256 7707dfa70ea10dd659aaa7b5cd4840e12d634c222c86f3962b6bfcca2e904420
MD5 925fdd4777ab0085991018eb1616d744
BLAKE2b-256 59993971ff27c4d08998a4166c7565778eab56abff0460304bf9164f13936a02

See more details on using hashes here.

Provenance

The following attestation bundles were made for commcare_export-1.16.0.tar.gz:

Publisher: publish.yml on dimagi/commcare-export

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file commcare_export-1.16.0-py3-none-any.whl.

File metadata

File hashes

Hashes for commcare_export-1.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 051a0d1a1b73d365d46462d4059c0a6ee17a463917004dcda30de96cb924fc62
MD5 3ae0bb220bf3ccd2a80ba21bcf8494be
BLAKE2b-256 bfab10c6a5eac117996bb300b604fbffb636943b3551385121e0ad5062aae606

See more details on using hashes here.

Provenance

The following attestation bundles were made for commcare_export-1.16.0-py3-none-any.whl:

Publisher: publish.yml on dimagi/commcare-export

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.16.0 This release

2 files

1.14.0

2 files

1.13.0

1 file

1.12.0

1 file

1.11.0

1 file

1.10.2

1 file

1.10.1

2 files

1.10.0

1 file

1.9.0

1 file

1.8.1

1 file

1.8.0

1 file

1.7.4

1 file

1.7.3

2 files

1.7.1

1 file

1.6.2

1 file

1.6.1

1 file

1.6.0

1 file

1.5.0

1 file

1.4.0

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.4

1 file

1.2.3

1 file

1.2.1

1 file

1.2.0

2 files

1.1.1

1 file

1.1.0

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

2 files

0.22.3

1 file

0.22.1

1 file

0.22.0

1 file

0.21.3

1 file

0.21.2

1 file

0.20.2

1 file

0.19.1

1 file

0.19.0

1 file

0.18.1

1 file

0.18.0

1 file

0.17.0

1 file

0.16.0

1 file

0.15.2

1 file

0.15.1

1 file

0.15.0

1 file

0.14.0

1 file

0.13.3

1 file

0.13.2

1 file

0.13.1

1 file

0.12.9

1 file

0.12.8

1 file

0.12.7

1 file

0.12.6

1 file

0.12.5

1 file

0.12.4

1 file

0.12.2

1 file

0.12.1

1 file

0.12.0

1 file

0.11.8

1 file

0.11.7

1 file

0.11.6

1 file

0.11.5

1 file

0.11.4

1 file

0.11.3

1 file

0.11.2

1 file

0.11.1

1 file

0.11.0

1 file

0.10.6

1 file

0.10.5

1 file

0.10.4

1 file

0.10.3

1 file

0.10.2

1 file

0.10.1

1 file

0.10.0

1 file

0.9

1 file

0.8

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page