Getting Started
Install the Python email verification SDK by running pip install ev-email-verifier in your terminal. We recommend using a virtual environment to isolate dependencies. The package supports Python 3.7 and above, including the latest Python 3.12 release. For projects using Poetry, run poetry add ev-email-verifier. The SDK uses the requests library for HTTP communication in the synchronous client and aiohttp for the async client. Both dependencies are installed automatically when you install the package.
After installation, import the EmailVerifier class and initialize it with your API key. For production deployments, set the EV_API_KEY environment variable and the SDK will read it automatically without requiring you to pass it in code. The client constructor accepts optional parameters including timeout (default 30 seconds), max_retries (default 3), sandbox mode for testing, and base_url for custom endpoints. The SDK integrates seamlessly with Django, Flask, and FastAPI. For Django, a custom form field validator is included. For Flask, middleware can be added to validate emails on incoming requests automatically.