# Python Email Verification SDK & API Guide | MailVeri

> Verify emails in Python using the official zero-dependency mailveri PyPI SDK (Sync & AsyncMailVeri). Block disposable and bouncing emails from $0.0002/check.

- **Source**: https://mailveri.com/docs/guides/python
- **AI Reference**: https://mailveri.com/llms-full.txt

---

Backend Languages · python

Integrate real-time and 1M-row batch email verification in Python using the zero-dependency mailveri PyPI package with full sync and asyncio support.

## Why Syntax Validation Alone Is Not Enough

Python regex checks cannot verify whether an MX server resolves, whether a domain is a rotating burner inbox, or whether the recipient mailbox exists via SMTP.

## 1. Setup & Package Installation

Set `MAILVERI_API_KEY` in your server environment (claim up to 1,000 free credits with no card required) and install:

```bash
pip install mailveri
```

## 2. Real-Time Signup Verification Example

Reject `INVALID` and `DISPOSABLE` accounts prior to user creation while letting `UNKNOWN` fail open at 0 credit cost:

```python
import os
from mailveri import MailVeri

client = MailVeri(api_key=os.environ["MAILVERI_API_KEY"])

def can_register(email: str) -> tuple[bool, str]:
    result = client.verify(email)
    status = result.get("status", "UNKNOWN")
    if status in {"INVALID", "DISPOSABLE"}:
        return False, f"Blocked {status.lower()} email address"
    return True, status
```

## 3. Production Integration & Batch Verification

```python
import asyncio
from mailveri import AsyncMailVeri

client = AsyncMailVeri()

async def clean_leads(emails: list[str]):
    job = await client.submit_batch(emails)
    print("Queued job:", job["job_id"])
    balance = await client.get_balance()
    print("Remaining credits:", balance["available_credits"])

asyncio.run(clean_leads(["alice@company.com", "bob@example.com"]))
```

## Production Implementation Best Practices

- Block INVALID and DISPOSABLE immediately during account signup or trial activation.
- Allow VALID and ROLE_ACCOUNT for B2B lead routing, or isolate ROLE_ACCOUNT in cold outreach.
- Fail open on UNKNOWN (0 credits charged) when a remote corporate MX server temporarily defers.

## Frequently Asked Questions

### Does the official Python mailveri package support asyncio?

Yes. The mailveri PyPI package ships both synchronous MailVeri and asynchronous AsyncMailVeri clients with zero third-party runtime dependencies.

### Does MailVeri charge credits if a Python verification call returns UNKNOWN?

No. Any check resolving to UNKNOWN deducts 0 credits so transient remote timeouts never waste your balance.

### How do I verify a large CSV list from Python?

Call client.submit_batch() for up to 100,000 unique emails directly from Python, or POST multipart CSV/XLSX/TXT files to https://api.mailveri.com/v1/verify-mails/ with up to 1,000,000 rows per job ($59 per 100K, $299 per 1M).

## More Language & Framework Guides

[All Guides](https://mailveri.com/docs/guides)

[Node.js & TypeScript Email Verification SDKBackend Languages](https://mailveri.com/docs/guides/nodejs-typescript)

## Explore Related Verification Benchmarks, Integrations & Deliverability Hubs

Compare live 10K–5M verification rate cards, connect MailVeri to your outreach stack, or inspect domain-level SMTP rules.

Verifier Comparisons

[All 36 →](https://mailveri.com/compare)

- [MailVeri vs Mailfloss100K checks: $59 vs $300](https://mailveri.com/compare/mailveri-vs-mailfloss)
- [MailVeri vs BounceBan100K checks: $59 vs $300](https://mailveri.com/compare/mailveri-vs-bounceban)
- [MailVeri vs AtData (TowerData)Compare 10K–1M pricing & accuracy](https://mailveri.com/compare/mailveri-vs-atdata)
- [MailVeri vs QuickEmailVerification100K checks: $59 vs $320](https://mailveri.com/compare/mailveri-vs-quickemailverification)
- [MailVeri vs Findymail100K checks: $59 vs $849/mo](https://mailveri.com/compare/mailveri-vs-findymail)
- [MailVeri vs ExactVerify100K checks: $59 vs $220](https://mailveri.com/compare/mailveri-vs-exactverify)

CRM & Stack Guides

[All 21 →](https://mailveri.com/integrations)

- [HubSpot Marketing Contacts AuditPrevent 3% CRM bounce locks](https://mailveri.com/integrations/hubspot)
- [Google Sheets Apps ScriptVerify cells directly in Sheets](https://mailveri.com/integrations/google-sheets)
- [GoHighLevel (LC Email) ShieldSave 76% vs native LC validation](https://mailveri.com/integrations/gohighlevel)
- [Mailchimp Audience HygieneAvoid Omnivore holds & dead tiers](https://mailveri.com/integrations/mailchimp)
- [Amazon SES & Sendy ProtectionStay safely below 5% SES probation](https://mailveri.com/integrations/aws-ses)
- [Salesforce CRM VerificationClean Leads & Contacts at $59/100K](https://mailveri.com/integrations/salesforce)

Solutions & Free Tools

[All Tools →](https://mailveri.com/tools)

- [Outbound & Lead Gen Agencies$299/1M bulk + 30% affiliate rev](https://mailveri.com/industries/outbound-agencies)
- [Free DKIM Record LookupAuto-probe selectors & key bits](https://mailveri.com/tools/dkim-lookup)
- [ESP Overpayment CalculatorMeasure wasted CRM contact costs](https://mailveri.com/tools/esp-overpayment-calculator)
- [Node.js & TypeScript SDKStrict types & HMAC webhooks](https://mailveri.com/docs/guides/nodejs-typescript)
- [Free Disposable Email CheckerDetect burner domains & relays](https://mailveri.com/tools/disposable-email-checker)
- [DNSBL Blacklist CheckerScan Spamhaus, Barracuda & SORBS](https://mailveri.com/tools/blacklist-checker)

Glossary & Domains

[Glossary](https://mailveri.com/glossary) · [Domains →](https://mailveri.com/domain)

- [Unsubscribe RateList Hygiene & Campaign Metrics definition](https://mailveri.com/glossary/unsubscribe-rate)
- [Disposable EmailVerification & Address Types definition](https://mailveri.com/glossary/disposable-email)
- [Email ValidationVerification & Address Types definition](https://mailveri.com/glossary/email-validation)
- [clay.com GTM Domain ProfileB2B corporate MX & catch-all rules](https://mailveri.com/domain/clay.com)
- [comcast.net (Xfinity) Mail RulesUS cable ISP bounce thresholds](https://mailveri.com/domain/comcast.net)
- [tempr.email Disposable ReportWildcard temp-mail MX detection](https://mailveri.com/domain/tempr.email)
