Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

carstickers/python-usps

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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%

AltStyle によって変換されたページ (->オリジナル) /