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.1.tar.gz (6.5 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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: generect-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 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.1.tar.gz
Algorithm Hash digest
SHA256 fb01c0062438e7e013ed452f1f6291b50fbd61dc0e78e338c6c851458c42bb0d
MD5 5bca17dd63593acca324f36d9b0d79cc
BLAKE2b-256 9b713210de9286bcce7869602478ead931c4795e3e1712d3e2d0688dd7117766

See more details on using hashes here.

Provenance

The following attestation bundles were made for generect-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: generect-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 310d7beb9c49c9dedf3be83762d83ca690e6a7c73aca152e72b4aa21ce78b76c
MD5 f4f9d5ac7e277ca37bbaed9ac5ea25c6
BLAKE2b-256 5fff622240af0b3b37b4ba4bf99daaa4a7a908206b1f5a89aa63446882d4eb0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for generect-0.1.1-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