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.3.tar.gz (12.2 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.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file civicrmapi-0.3.tar.gz.

File metadata

  • Download URL: civicrmapi-0.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for civicrmapi-0.3.tar.gz
Algorithm Hash digest
SHA256 0b2800823ceb53f389bff34770a00d9340edfbf365f3d5f0b60a7d4f8c095d08
MD5 74492e99e4e8b74879eed3cc95bbb8a2
BLAKE2b-256 5e2a0a9b7fd12151e6a8fff15f5731cdfb93e7088e779eb1fbb9454447552358

See more details on using hashes here.

Provenance

The following attestation bundles were made for civicrmapi-0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: civicrmapi-0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10d55423c6eb97d5922c5a27918edf1364d48205242347f2a773b2d7e3f77d4d
MD5 89813ea56d8f9d4a01f159afa5e2ba60
BLAKE2b-256 2046aa7f152247b686242358a7132bf3c8c6eebf7c4b093495835685869f5e48

See more details on using hashes here.

Provenance

The following attestation bundles were made for civicrmapi-0.3-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