bouncelayer (Python SDK)
Official Python library for BounceLayer — real-time email verification with direct TCP port 25 SMTP handshakes.
Installation
pip install bouncelayer
Quickstart
from bouncelayer import BounceLayer
import os
client = BounceLayer(api_key=os.environ.get("BOUNCELAYER_API_KEY"))
# Single real-time verification (<150ms)
result = client.verify.single("alex@stripe.com")
print(result.status) # "valid"
print(result.confidence_score) # 98
print(result.is_disposable) # False
print(result.smtp_checked) # True
Bulk Verification
# Submit a list of up to 10,000 addresses
job = client.verify.bulk([
"sarah@linear.app",
"john@workmail.com",
"disposable@burner.org"
], webhook_url="https://api.myapp.com/webhooks/bouncelayer")
# Wait for job completion automatically
completed = client.verify.wait_for_job(job["job_id"])
print(f"Valid: {completed.valid_count}, Invalid: {completed.invalid_count}")
Webhook Verification (Flask / FastAPI)
from bouncelayer import BounceLayer
# In your webhook route
is_valid = BounceLayer.verify_webhook_signature(
raw_body_bytes,
request.headers.get("X-BounceLayer-Signature"),
secret="whsec_..."
)
License
MIT
Metadata
Release files for bouncelayer 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bouncelayer-1.0.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bouncelayer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / bouncelayer-1.0.0.tar.gz
| Download URL | bouncelayer-1.0.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8996662880cb43f0c3ed049585572b80cbda5f3b4105ad84f1dcbeaf88070ea
|
|
BLAKE2b-256 checksum How to use checksums |
2d06a066ec5486c62cfd4e93e820b8013258770d6e22714f13680df3a799900a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Release files / bouncelayer-1.0.0-py3-none-any.whl
| Download URL | bouncelayer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
381ac3fedd240d9ae6307cc9e081935cb5fab58eba3cea06224c730e7cd94d33
|
|
BLAKE2b-256 checksum How to use checksums |
cf8834b8a748985b7b5a12e94a4c502e4de7309d4cfd9109adb28630eecb4a70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|