Skip to content

Python REST API Wrapper for ListWise email validation.

License

Notifications You must be signed in to change notification settings

zbarge/listwise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListWise - Python REST API Wrapper for ListWise email validation.

In order to use all of the features of this package you must have an active subscription with listwisehq. https://www.listwisehq.com/email-address-cleaner/index.php

This package was developed during my employment with Kennedy Marketing Group. Thanks to them for giving me permission to open-source this.

  • listwise enables users to easily clean email addresses via the ListWise REST API.
  • Email addresses are pre-cleaned to remove the obviously invalid.
  • All responses are stored in a sqlite database file and can be reused by future requests.

Installation

pip install listwise

Connecting to the API

import listwise

listw = listwise.ListWise("C:/listwise_data.db", username, api_key)

One-off email validation

email = '[email protected]'

deep_cleaned = listw.deep_clean_one(email)

quick_cleaned = listw.quick_clean_one(email)

listw.db.con.commit() #To commit your updates to the database

Bulk e-mail validation using Pandas

import pandas as pd

df = pd.read_csv("C:/path/to/file.csv")

#All updates are automatically committed to SQLite.

deep_cleaned_df = listw.deep_clean_frame(df)

quick_cleaned_df = listw.quick_clean_frame(df)

About

Python REST API Wrapper for ListWise email validation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages