Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Utility for normalizing (Prisoner-centric) street addresses

Project Description

# Betwen the Bars address cleaner

This is a simple library to clean and normalize textual addresses. It is biased toward the sorts of addresses people in prison are given.

## Example usage

from addresscleaner import parse_address, format_address

>>> parsed = parse_address("""John Dough
... #1234567
... 7819 228th St.
... Raiford, FL 32026-1120""")
>>> print parsed
{'name': 'John Dough', 'address1': '#1234567', 'address2': '7819 228th St.', 'city': 'Raiford',  'state': 'FL', 'zip': '32026-1120'}
>>> format_address(parsed)
u'John Dough\n#1234567\n7819 228th St.\nRaiford, FL  32026-1120'

An exception of type addresscleaner.AddressException is raised if the parser is unable to figure out something about the address. The exception’s message tries to explain as much as possible where it went wrong.

Release History

Release History

This version
History Node

0.0.4

History Node

0.0.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
addresscleaner-0.0.4.tar.gz (5.0 kB) Copy SHA256 Checksum SHA256 Source Apr 15, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting