Skip to main content

Official Python SDK for the DiscoLike API

Project description

discolike

Official Python SDK for the DiscoLike API — discover lookalike companies, enrich domain lists, match company names to domains, and find contacts, from typed Python.

For the terminal, see discolike-cli (pip install discolike-cli or uvx --from discolike-cli discolike).

Installation

pip install discolike

Requires Python 3.10+.

Authentication

export DISCOLIKE_API_KEY="dl_..."

Create a key at app.discolike.com/account/management/keys. You can also pass api_key=... explicitly to Discolike().

Quickstart

from discolike import Discolike

client = Discolike()

companies = client.discover(
    icp_text="Cybersecurity for SMBs, managed IT services, endpoint protection",
    country=["US"],
    max_records=25,
)
for company in companies:
    print(company.domain, company.name, company.similarity)

The client is a context manager if you want deterministic cleanup:

with Discolike() as client:
    ...

Async

Every resource has an async twin on AsyncDiscolike:

import asyncio
from discolike import AsyncDiscolike

async def main() -> None:
    async with AsyncDiscolike() as client:
        companies = await client.discover(icp_text="B2B SaaS for logistics", max_records=10)
        print([c.domain for c in companies])

asyncio.run(main())

Long-running jobs

Bulk operations (match.bulk, segment, validate_icp, contacts.bulk_match) return a Job handle instead of blocking:

job = client.segment(domains=["stripe.com", "adyen.com", "checkout.com"])
result = job.wait()

Job.status() polls without blocking, Job.cancel() aborts, and wait() raises JobFailedError / JobTimeoutError on failure.

Links

License

MIT

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

discolike-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

discolike-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discolike-0.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discolike-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8a9b73517314ce51092ce4aa7c1e5dc8aec9a52186ff19d3c935509ea5622bff
MD5 a9f26e651603dbfb193f4b776b4bbed4
BLAKE2b-256 495548ca62134eb0e7263ae3724c84aaa4e1a33220c4ac3ee90caf0fed5145a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for discolike-0.1.0.tar.gz:

Publisher: publish.yml on discolike/discolike-python

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

File details

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

File metadata

  • Download URL: discolike-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for discolike-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c990504312478695395d82270a51cebb65683671a3f680c5fbed93f478af06
MD5 9cc067862cda96871dfde4efcf201eaa
BLAKE2b-256 1d1c7a9c16f0b286376c9a1c5faaff62162d5ff148bff46ea4580501054e7066

See more details on using hashes here.

Provenance

The following attestation bundles were made for discolike-0.1.0-py3-none-any.whl:

Publisher: publish.yml on discolike/discolike-python

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