Million Verifier Python Client
Python client for Million Verifier. API documentation can be found here.
Setup
It is advised that million-verifier-client is installed within a virtual environment
(e.g., Poetry, venv, etc.).
Once in an activated virtual environment, million-verifier-client can be installed with the following commands:
Pip:
pip install million-verifier-client
Poetry:
poetry add million-verifier-client
Example Usage
import os
from million_verifier import MillionVerifierClient
client = MillionVerifierClient(
api_key=os.getenv("MILLION_VERIFIER_API_KEY"),
)
client.list_files()
Output:
{
"files": [
{
"file_id": 25645547490,
"file_name": "test-emails-1.txt",
"status": "finished",
"unique_emails": 0,
"updated_at": "2023-11-25 12:12:21",
"createdate": "2023-11-25 12:12:16",
"percent": 100,
"total_rows": 10,
"verified": 9,
"unverified": 1,
"ok": 8,
"catch_all": 0,
"disposable": 0,
"invalid": 1,
"unknown": 0,
"reverify": 0,
"credit": 10,
"estimated_time_sec": 0,
"error": ""
}
],
"total": 1
}
Development
Testing
Tests can be run using Pytest:
pytest
Or, using Pytest within a Poetry environment:
poetry run pytest
In order to run tests successfully, make sure you have a valid API key declared as a MILLION_VERIFIER_API_KEY
environment variable. This can be done by adding a .env.local file to the root directory of this project:
MILLION_VERIFIER_API_KEY="<YOUR_API_KEY>"
Release files for million-verifier-client 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| million_verifier_client-0.1.2.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| million_verifier_client-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / million_verifier_client-0.1.2.tar.gz
| Download URL | million_verifier_client-0.1.2.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1f5493f5633090f13554511db9822baa62f6576b35858b372e5d83a1b27e25c
|
|
BLAKE2b-256 checksum How to use checksums |
73a602275fd2797dce10fd5e7e6d28be668532dbc95ef3e6ae20edc077e2c9b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.8 Darwin/23.1.0
|
Release files / million_verifier_client-0.1.2-py3-none-any.whl
| Download URL | million_verifier_client-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21babe5501412d73685f0324892f431e6982fa1a79d5802d3f5f987ca3b92f59
|
|
BLAKE2b-256 checksum How to use checksums |
b30c818ad6f277030663e4ec363e506838a19da41fdfe14295794680f8dc012b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.8 Darwin/23.1.0
|