Skip to content

sebst/py-easyaddress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-easyaddress

py-easyaddress by [easyaddress.io](https://easyaddress.io/)

Installation

$ pip install easyaddress

Get an API Key

Usage

>>> from easyaddress import API
>>> api = easyaddress.API("<API_KEY>", "<API_SECRET>")
>>> api.validate_email("example@example.org")
$ export EASYADDRESS_API_KEY=<API_KEY>
$ export EASYADDRESS_API_SECRET=<API_SECRET>
>>> from easyaddress import validate_email
>>> validate_email("example@example.org")
>>> from easyaddress import API
>>> api = easyaddress.API("<API_KEY>", "<API_SECRET>")
>>> api.validate(Address(street_number='2630', street='Hegal Place', zipcode='23242', city='Alexandria', country=Country.US, province=USRegion.VA))

Running Tests

$ python -m unittest discover

Licence: MIT © 2021 [easyaddress.io](https://easyaddress.io/)