Skip to main content

Python library for interacting with the CommCareHQ API

Project description

CommCare API Python Package

PyPI version License: MIT

Overview

The commcare_api package is a Python library that simplifies interaction with the CommCareHQ API. It provides convenient methods for performing operations such as retrieving cases, forms, and performing bulk uploads. This package is designed to streamline CommCareHQ integration tasks in Python applications.

Installation

You can easily install the commcare_api package using pip:

pip install commcare-api

Usage

To use this package, follow these steps:

  1. Import the CommCareAPI class from the package:
from commcare_api.commcare_api import CommCareAPI
  1. Create an instance of the CommCareAPI class by providing your CommCare domain and API version:
api = CommCareAPI(domain="your_domain", version="your_version")
  1. Utilize the methods of the CommCareAPI class for various operations. For example, to retrieve cases:
cases = api.get_cases(type="case_type", limit=10)
# ... (perform other operations)
  1. Customize the package according to your application's needs.

Example: Printing Case Data

for case in cases:
   print(case)

Remember to replace "your_domain" and "your_version" with your actual CommCare domain and version.

Documentation

For in-depth documentation, detailed usage examples, and API reference, please refer to the official documentation.

Contributing

We welcome contributions to improve this package. Please read our Contributing Guidelines for more information on how to contribute.

License

This package is distributed under the MIT License.

Acknowledgments

We would like to express our gratitude to the open-source community and all contributors for their valuable contributions to this project.

Contact

If you have any questions, suggestions, or encounter issues, please don't hesitate to reach out to us at pierrerobentz.cassion@gmail.com.

Make sure to replace placeholders like your_domain, your_version, link-to-your-documentation, your-email@example.com, and customize the content as needed for your package.# commcare-api

Project 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-api-0.1.0a0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

commcare_api-0.1.0a0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page