# 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.
Metadata
Release files for addresscleaner 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| addresscleaner-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for addresscleaner-0.1.0.tar.gz |
Release files / addresscleaner-0.1.0.tar.gz
| Download URL | addresscleaner-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1d701db02c512c88d5f90888b5703fa3470f9609b0c91664e907218d5d52954
|
|
BLAKE2b-256 checksum How to use checksums |
35efb02a7c835a04ab9efaf4493b6a3e0e32816311d2bd83a1d01d32e7272e13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for addresscleaner 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.