Klozeo Python SDK
Official Python client for the Klozeo Lead Management API.
Installation
pip install klozeo
Requires Python 3.10+.
Quick Start
from klozeo import Klozeo, Lead
client = Klozeo("sk_live_your_api_key")
# Create a lead
resp = client.create(Lead(
name="Acme Corporation",
source="website",
city="San Francisco",
email="contact@acme.com",
rating=4.5,
tags=["enterprise", "saas"],
))
print(f"Created: {resp.id}")
# List with filters
from klozeo import city, rating, SortField, SortOrder
result = client.list(
city().eq("Berlin"),
rating().gte(4.0),
sort_by=SortField.RATING,
sort_order=SortOrder.DESC,
limit=20,
)
for lead in result.leads:
print(f"{lead.name} — score: {lead.score}")
# Paginate automatically
for lead in client.iterate(city().eq("Berlin")):
print(lead.name)
Async Client
import asyncio
from klozeo import AsyncKlozeo, Lead
async def main():
async with AsyncKlozeo("sk_live_your_api_key") as client:
resp = await client.create(Lead(name="Acme", source="website"))
async for lead in client.iterate(city().eq("Berlin")):
print(lead.name)
asyncio.run(main())
Error Handling
from klozeo import NotFoundError, RateLimitedError, ForbiddenError, KlozeoError
try:
lead = client.get("cl_nonexistent")
except NotFoundError:
print("Lead not found")
except RateLimitedError as e:
print(f"Rate limited. Retry after {e.retry_after}s")
except ForbiddenError:
print("Leads limit reached — upgrade your plan")
except KlozeoError as e:
print(f"HTTP {e.status_code}: {e.message}")
Links
- Documentation: https://docs.klozeo.com
- API Reference: https://docs.klozeo.com/api/leads
- PyPI: https://pypi.org/project/klozeo
License
MIT. See LICENSE.
Metadata
Release files for klozeo 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| klozeo-0.1.4.tar.gz | 15.7 kB | With provenance | Details for klozeo-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| klozeo-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for klozeo-0.1.4-py3-none-any.whl |
Total release size: 37.3 kB
Release files / klozeo-0.1.4.tar.gz
| Download URL | klozeo-0.1.4.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb576d1e2652733316b2f19462eb2157bd49db93ec4aece8fe452a1767ad019f
|
|
BLAKE2b-256 checksum How to use checksums |
e5a3c6d4776eaeefbd4ef6f988ef1141d27248fe8ca8745e6e8325376c86e196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / klozeo-0.1.4-py3-none-any.whl
| Download URL | klozeo-0.1.4-py3-none-any.whl |
|---|---|
| Size | 21.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
914dbf3bdb014bd81d295217fbe8e289ce3499d06b9a8870fdf2b405f35ba768
|
|
BLAKE2b-256 checksum How to use checksums |
830e92d756990b6e22c0d459068666e4019d639bf7ca090c4d8456a321fd1842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logSecurity for klozeo 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for klozeo-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.