Skip to main content

Connect with the CiviCRM APIv3 and APIv4 via HTTP and cv.

Project description

python: 3.8+ Tests Coveralls

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:

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)

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

civicrmapi-0.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

civicrmapi-0.4-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

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

Hashes for civicrmapi-0.4.tar.gz
Algorithm Hash digest
SHA256 5fdc0489d754947f233a9bd38430da64b3bfeb04589f81bc8d3086bcbb9f7062
MD5 89ce7d8a60b8d1698411c0d537bab879
BLAKE2b-256 f2815834638022797329911c406041f16ae39d42953d9e1259d27d8e32b145aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for civicrmapi-0.4.tar.gz:

Publisher: publish.yml on thomst/civicrmapi

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

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

Hashes for civicrmapi-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dc0a84870aee0a1c5a4b93f2fabcc03914279b2449ad461cb625ac60e23a241f
MD5 fc7c8fadf7839433469823f8e0900d26
BLAKE2b-256 2ce3a6c51fe109ec0e2d6e6057eca1ccfb47d28dd2657ff8ddca2f1e7f36007d

See more details on using hashes here.

Provenance

The following attestation bundles were made for civicrmapi-0.4-py3-none-any.whl:

Publisher: publish.yml on thomst/civicrmapi

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

Supported by

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