Skip to main content

Identity resolution as code

Project description

kanoniv

Python client for the Kanoniv identity resolution API.

Installation

pip install kanoniv

Quick Start

import kanoniv

client = kanoniv.Client(
    api_key="kn_abc123",
    base_url="https://api.kanoniv.com",
)

# Resolve an identity
result = client.resolve(system="salesforce", external_id="003xxx")
print(result["canonical_data"])

# Search entities
results = client.entities.search(q="john@acme.com")

# Ingest records
client.ingest("source-uuid", records=[
    {"id": "ext_1", "type": "contact", "name": "John", "email": "john@acme.com"},
])

# Dashboard stats
stats = client.stats()
print(f"{stats['total_canonical_entities']} canonical entities")

Async Usage

async with kanoniv.AsyncClient(api_key="kn_...") as client:
    result = await client.resolve(system="crm", external_id="sf_123")
    entities = await client.entities.search(q="jane")

Authentication

# API key (recommended for programmatic use)
client = kanoniv.Client(api_key="kn_abc123")

# JWT bearer token
client = kanoniv.Client(access_token="eyJ...")

Resources

Resource Methods
client.entities search(), get(), get_linked(), history()
client.sources list(), get(), create(), update(), delete(), sync(), preview()
client.rules list(), create(), history()
client.jobs list(), get(), run(), cancel()
client.reviews list(), decide()
client.overrides list(), create(), delete()
client.audit list(), entity_trail()
client.specs list(), get(), ingest()

Error Handling

from kanoniv import NotFoundError, RateLimitError

try:
    entity = client.entities.get("nonexistent")
except NotFoundError:
    print("Entity not found")
except RateLimitError as e:
    print(f"Rate limited, retry after {e.retry_after}s")

License

Apache-2.0

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

kanoniv-0.2.7.tar.gz (155.1 kB view details)

Uploaded Source

Built Distributions

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

kanoniv-0.2.7-cp311-cp311-macosx_11_0_arm64.whl (898.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

kanoniv-0.2.7-cp311-cp311-macosx_10_12_x86_64.whl (933.5 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

kanoniv-0.2.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file kanoniv-0.2.7.tar.gz.

File metadata

  • Download URL: kanoniv-0.2.7.tar.gz
  • Upload date:
  • Size: 155.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for kanoniv-0.2.7.tar.gz
Algorithm Hash digest
SHA256 91bb19c283b68624eb0ee8f651f995fa437e92bfedfcf467b1862da3eafb1c28
MD5 1c885e41fb024153fd739fd33d62b331
BLAKE2b-256 213edec9500dca1a7d9964f8d25e557b1b80a477fe41f8609fc4f924a042b049

See more details on using hashes here.

File details

Details for the file kanoniv-0.2.7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kanoniv-0.2.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18b4df420cb1bc6661c3ba05e543ddccc19628c78cd4ce36ba554da05cd0a76c
MD5 5a82ee805005ad8225ec7d167ba6d151
BLAKE2b-256 8abe581bff5327bf223de4552a599d1459acce7f65afc9f5c916dbae6e1ec657

See more details on using hashes here.

File details

Details for the file kanoniv-0.2.7-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kanoniv-0.2.7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d05566964816fa4dc06468219c79a0d68dbcc373ca0055531f20fcb14169259a
MD5 a36a982377232f134bca7abf25cce890
BLAKE2b-256 4753d9fa053c22441e8fc0ae392cdaf2309c559a2a368124cd3a1b952e24867b

See more details on using hashes here.

File details

Details for the file kanoniv-0.2.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kanoniv-0.2.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68c42bd54026be28c7f756d8ba20b1ec02b4cb36b611d2db14db301d712722ee
MD5 28a3edf53995d31e0e15f6601580f62e
BLAKE2b-256 f304dde4a6512e48a7ccdce80ca272274d49fe2d5a0a3fe3811bceef0ae8a712

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