Skip to main content

Python SDK for Contackd Sync

Project description

contackd-sync

Python SDK for the Contackd Sync API.

Installation

pip install requests urllib3

Or install the package from this repository once published as a build artifact.

Quick Start

from contackd_sync import ContackdClient, Contact

client = ContackdClient(
    api_key="sk-your-key",
    base_url="https://api.yourapp.com/v1",
)

contact = client.contacts.upsert(Contact(email="alice@example.com", first_name="Alice"))
print(contact)

Public API

The package exports the main client, typed resource wrappers, models, sync helpers, and exceptions from contackd_sync.

  • ContackdClient
  • ContactsResource, LeadsResource, ProspectsResource
  • Contact, Lead, Prospect
  • LeadStatus, PipelineStage
  • SyncEngine, SyncResult, BulkResult
  • ContackdError and specialized exceptions

API Key Provisioning

Create and revoke SDK keys from backend auth endpoints:

  1. Create key (JWT required):
curl -X POST http://localhost:8000/api/v1/auth/api-keys \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"name":"py-sdk"}'
  1. Delete/revoke key:
curl -X DELETE http://localhost:8000/api/v1/auth/api-keys/<API_KEY_ID> \
  -H "Authorization: Bearer <ACCESS_TOKEN>"

Use returned api_key as api_key when creating ContackdClient.

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

contackd_sync-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

contackd_sync-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file contackd_sync-0.1.0.tar.gz.

File metadata

  • Download URL: contackd_sync-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for contackd_sync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0542d2c781d4cdd7426ddf08c7f1917d2297c97c5651bc7a9f66416c8beb9b64
MD5 406ac56050f2a40c213abaf443a9741d
BLAKE2b-256 4654160702e091a2d2e5c274468c85c27c19cc6eb55b672d5080b1771d3c9efb

See more details on using hashes here.

File details

Details for the file contackd_sync-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: contackd_sync-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for contackd_sync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a58ade1001570bdb7d888cc3fff84b5645c1866a2b171134dae48f1db08dce39
MD5 8bd82dd77a9d3dcc689c3f56b8b5546a
BLAKE2b-256 abd5c7e88a7d1feeb2632a7eef30845162ccf9e384c778609f85306075909999

See more details on using hashes here.

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