Skip to main content

Official Python SDK for the Generect Live API

Project description

generect (Python SDK)

pip install generect
from generect import Generect

g = Generect(api_key="YOUR_API_TOKEN")  # or env GENERECT_API_KEY

count = g.search.database_leads_count(job_titles=["marketing manager"], locations=["Germany"])
leads = g.search.database_leads(job_titles=["marketing manager"], locations=["Germany"], per_page=10)
print(len(leads.data), "leads for", leads.amount_charged, "USD")

email = g.email.find(lead_id=leads.data[0]["id"])   # billed only if a valid email is found

job = g.enrich.database_leads_bulk(items=[{"linkedin_url": u} for u in urls])  # ≤50 items
done = g.enrich.wait_leads_bulk(job.job_id)          # polls until completed / error
  • Automatic retries with exponential backoff on 429/5xx (configurable max_retries).
  • Typed errors: InsufficientBalanceError (402), RateLimitError (429), AuthenticationError (401)…
  • Every response exposes its real USD cost: resp.amount_charged.
  • Any endpoint, even future ones: g.request("POST", "/search/database/leads/", json={...}).

Docs: https://docs.generect.com · Errors: https://docs.generect.com/api-reference/errors

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

generect-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

generect-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for generect-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d9e2f812c9c6fd1386f935fa879b61c6c258270eaeddee518cdca5a67ecd8412
MD5 51c4fb209b73e0921862fe1d80ae8f5d
BLAKE2b-256 a5e26ee699a845f2393d734310020dd94c9603a868511d2777647710b0a02310

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on generect/generect-sdks

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

File details

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

File metadata

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

File hashes

Hashes for generect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7de796e5d049dcef0fd9b81c3d31409443d1408d4672d49d4a0de1b9c3926928
MD5 347fe67a3e134b00f88393c6b762bb51
BLAKE2b-256 e639729fcfc7a83cb6645042848b0e3f8ef3ec2f75c1da0be27614b1759a5986

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on generect/generect-sdks

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