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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file commcare-api-0.1.0a0.tar.gz.

File metadata

  • Download URL: commcare-api-0.1.0a0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for commcare-api-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 781e100e756e3ec0bdf04c30543ad97993cc5506ba4f4856becb6a76afb29553
MD5 b014b1b16d9c0a5eeacc75ee8769793b
BLAKE2b-256 f59ca03e50243c5ed97e000fda75eeee5a68b19b41d42c980f5fb55f3b512d11

See more details on using hashes here.

File details

Details for the file commcare_api-0.1.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for commcare_api-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 32884e2bce733a884a3265688b3072aa85c261fbe481e6651080b128b04532c7
MD5 fff20f4f42ae3c5e6a8f02b1b55ac9ba
BLAKE2b-256 59fa225610261bf1a4dfe59ed5c63e1798bd02b9bc506712bbc183481555fa37

See more details on using hashes here.

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