Python library for interacting with the CommCareHQ API
Project description
CommCare API Python Package
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:
- Import the
CommCareAPI
class from the package:
from commcare_api.commcare_api import CommCareAPI
- Create an instance of the
CommCareAPI
class by providing your CommCare domain and API version:
api = CommCareAPI(domain="your_domain", version="your_version")
- 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)
- 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
Release history Release notifications | RSS feed
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781e100e756e3ec0bdf04c30543ad97993cc5506ba4f4856becb6a76afb29553 |
|
MD5 | b014b1b16d9c0a5eeacc75ee8769793b |
|
BLAKE2b-256 | f59ca03e50243c5ed97e000fda75eeee5a68b19b41d42c980f5fb55f3b512d11 |
File details
Details for the file commcare_api-0.1.0a0-py3-none-any.whl
.
File metadata
- Download URL: commcare_api-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32884e2bce733a884a3265688b3072aa85c261fbe481e6651080b128b04532c7 |
|
MD5 | fff20f4f42ae3c5e6a8f02b1b55ac9ba |
|
BLAKE2b-256 | 59fa225610261bf1a4dfe59ed5c63e1798bd02b9bc506712bbc183481555fa37 |