Skip to main content

No project description provided

Project description

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>"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

million_verifier_client-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

million_verifier_client-0.1.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file million_verifier_client-0.1.2.tar.gz.

File metadata

  • Download URL: million_verifier_client-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.8 Darwin/23.1.0

File hashes

Hashes for million_verifier_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e1f5493f5633090f13554511db9822baa62f6576b35858b372e5d83a1b27e25c
MD5 14f577f1f04781382921877314c9f76d
BLAKE2b-256 73a602275fd2797dce10fd5e7e6d28be668532dbc95ef3e6ae20edc077e2c9b6

See more details on using hashes here.

File details

Details for the file million_verifier_client-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for million_verifier_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 21babe5501412d73685f0324892f431e6982fa1a79d5802d3f5f987ca3b92f59
MD5 316412f756c6a31bdeb240b4dd4d2e3d
BLAKE2b-256 b30c818ad6f277030663e4ec363e506838a19da41fdfe14295794680f8dc012b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page