Skip to main content

Parse, normalize and render postal addresses.

Project description

Python module to parse, normalize and render postal addresses.

Stable release: Last release Python versions Software license Requirements freshness

Development: Unit-tests status Documentation Status Coverage Status Code Quality

Motivation

« What ties us to territory is tax. » – Kevin Deldycke, 2014-11-07

The reason above is why we need fine-grained and meticulous territory management and normalization. This project aims to solve this problem once for all.

Don’t get me wrong, this work is a huge undertaking. Postal address parsing, normalization and rendering is hard. See the collection of falsehoods programmers believe about postal addresses.

This library is still in its early stages, but is good enough to implement the new European Directives on VAT, which requires all e-commerce shops to guess the locality of their EU customers depending on their billing address.

Changes for v1.3.4 (2017-09-29)

  • Restrict Faker to 0.8.3 as the next release seems to mess up production of territory subdivisions. See #19 and #22.

  • Add cache on supported_*_codes() functions.

Full changelog.

Download files

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

Source Distribution

postal-address-1.3.4.tar.gz (29.0 kB view details)

Uploaded Source

Built Distributions

postal_address-1.3.4-py2.py3-none-any.whl (24.4 kB view details)

Uploaded Python 2 Python 3

postal_address-1.3.4-py2.7.egg (21.7 kB view details)

Uploaded Source

File details

Details for the file postal-address-1.3.4.tar.gz.

File metadata

File hashes

Hashes for postal-address-1.3.4.tar.gz
Algorithm Hash digest
SHA256 4d6c677b37cb7a9541b42f9035dc34127682d0e07ef434c678801f19622e7b7a
MD5 5aa0ca1ec34085810440d6dd82c8da94
BLAKE2b-256 b32b6e6b89881fbf7d3718933d60c33deeeb5e97fc83f054e635b9394b856ceb

See more details on using hashes here.

File details

Details for the file postal_address-1.3.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for postal_address-1.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 997b63f8e15afbc79e8406ca9ca58941ff8e2df5309d19c7996ff23485b79d5d
MD5 38bca272f5139b6dacbb11fe86eb6d7d
BLAKE2b-256 abdaa2cc92d2aaa2c17ea98622a10c3ba869fa47055297450ce58e1d476e550d

See more details on using hashes here.

File details

Details for the file postal_address-1.3.4-py2.7.egg.

File metadata

File hashes

Hashes for postal_address-1.3.4-py2.7.egg
Algorithm Hash digest
SHA256 b52d56f5d47b658a439a1ad033a34c2b8d9c964a95a2395743b0e2e0d8d02167
MD5 6de79e1c6a2f14e1f6eebddd840b7ae7
BLAKE2b-256 a376cb9b49e3b722592ff9b5e48df49ba92ecda13e43a506ebc9f3bea57bb3e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page