sebst / py-easyaddress

Python wrapper for easyaddress.io API.

Home Page:https://easyaddress.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/)

About

Python wrapper for easyaddress.io API.

https://easyaddress.io

License:MIT License


Languages

Language:Python 100.0%