Skip to content

A python wrapper to the USPS api, currently only supports the address information api

License

Notifications You must be signed in to change notification settings

wangluyi1982/python-usps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python USPS

Looking For Authors! This project is currently looking for a user to take it over. If that sounds like you, send a note to derek at stegelman dot com or open up an issue in this repository.

This is a fork of the python-usps library https://github.com/cuker/python-usps. A lot of the library was removed and refactored to be more simple as the only practical application of the USPS library thus far has been address validation.

Installation

pip install python-usps2

This package is a fork of the original python-usps by Jason Kraus, so I have named the package differently on Pypi to account for this.

Usage

from usps.addressinformation import *


address_validation = Address(user_id='YOUR_USER_ID')
response = address_validation.validate(address1='500 E. third st', city='Loveland', state='CO')

If an address is invalid (Doesn't exist) will raise USPSXMLError

Note

python-usps is not at all endorsed by the USPS in any way.

About

A python wrapper to the USPS api, currently only supports the address information api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%