Connect with the CiviCRM APIv3 and APIv4 via HTTP and cv.
Project description
Description
Clean and simple bindings to CiviCRM’s API. Both API v3 and API v4 are supported. CiviCRM’s API can be accessed either via REST or the command line tool cv.
Installation
pip install civicrmapi
Getting started
There are four ready to use api classes:
RestApiV3 - REST API bindings for CiviCRM APIv3
RestApiV4 - REST API bindings for CiviCRM APIv4
ConsoleApiV3 - Using cv to access CiviCRM APIv3
ConsoleApiV4 - Using cv to access CiviCRM APIv4
All you need to do is to initialize the api of your choice and use it:
from civicrmapi import ConsoleApiV4
api = ConsoleApiV4(cv='/path/to/cv', cwd='/path/to/civicrm/root')
params = {
"contact_type": "Organization",
"organization_name": "pretty org",
}
result = api.Contact.create(params)
Links
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
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 civicrmapi-0.4.tar.gz.
File metadata
- Download URL: civicrmapi-0.4.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdc0489d754947f233a9bd38430da64b3bfeb04589f81bc8d3086bcbb9f7062
|
|
| MD5 |
89ce7d8a60b8d1698411c0d537bab879
|
|
| BLAKE2b-256 |
f2815834638022797329911c406041f16ae39d42953d9e1259d27d8e32b145aa
|
Provenance
The following attestation bundles were made for civicrmapi-0.4.tar.gz:
Publisher:
publish.yml on thomst/civicrmapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civicrmapi-0.4.tar.gz -
Subject digest:
5fdc0489d754947f233a9bd38430da64b3bfeb04589f81bc8d3086bcbb9f7062 - Sigstore transparency entry: 931538032
- Sigstore integration time:
-
Permalink:
thomst/civicrmapi@0737766fbf172278408100ea92eb9dcc7b03190f -
Branch / Tag:
refs/tags/0.4 - Owner: https://github.com/thomst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0737766fbf172278408100ea92eb9dcc7b03190f -
Trigger Event:
push
-
Statement type:
File details
Details for the file civicrmapi-0.4-py3-none-any.whl.
File metadata
- Download URL: civicrmapi-0.4-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0a84870aee0a1c5a4b93f2fabcc03914279b2449ad461cb625ac60e23a241f
|
|
| MD5 |
fc7c8fadf7839433469823f8e0900d26
|
|
| BLAKE2b-256 |
2ce3a6c51fe109ec0e2d6e6057eca1ccfb47d28dd2657ff8ddca2f1e7f36007d
|
Provenance
The following attestation bundles were made for civicrmapi-0.4-py3-none-any.whl:
Publisher:
publish.yml on thomst/civicrmapi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
civicrmapi-0.4-py3-none-any.whl -
Subject digest:
dc0a84870aee0a1c5a4b93f2fabcc03914279b2449ad461cb625ac60e23a241f - Sigstore transparency entry: 931538083
- Sigstore integration time:
-
Permalink:
thomst/civicrmapi@0737766fbf172278408100ea92eb9dcc7b03190f -
Branch / Tag:
refs/tags/0.4 - Owner: https://github.com/thomst
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0737766fbf172278408100ea92eb9dcc7b03190f -
Trigger Event:
push
-
Statement type: