addresscleaner-0.1.0
توضیحات
Utility for normalizing (Prisoner-centric) street addresses
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | addresscleaner-0.1.0 |
| نام | addresscleaner |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Charlie DeTar |
| ایمیل نویسنده | cfd@media.mit.edu |
| آدرس صفحه اصلی | https://github.com/yourcelf/btb-address-cleaner |
| آدرس اینترنتی | https://pypi.org/project/addresscleaner/ |
| مجوز | BSD |
# 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.
نحوه نصب
نصب پکیج whl addresscleaner-0.1.0:
pip install addresscleaner-0.1.0.whl
نصب پکیج tar.gz addresscleaner-0.1.0:
pip install addresscleaner-0.1.0.tar.gz