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.4.0 (2018-09-11)

  • Unfreeze pycountry version and bump to pycountry >= 18.5.26.

  • Refactor country aliases with better categories.

  • Some subdivisions names were updated, such as FR-O to FR-HDF.

  • Drop support for Python 3.3.

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.4.0.tar.gz (30.2 kB view details)

Uploaded Source

Built Distributions

postal_address-1.4.0-py2.py3-none-any.whl (24.2 kB view details)

Uploaded Python 2 Python 3

postal_address-1.4.0-py2.7.egg (47.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: postal-address-1.4.0.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for postal-address-1.4.0.tar.gz
Algorithm Hash digest
SHA256 dc8059f6c6fffd59dc4de7a4c03cb9d4e4cad21bb5868ef49f7031b60d31f11f
MD5 158a14bc211fe773ea45299fd3402ecd
BLAKE2b-256 2a50187d56dea91900e2c1346410be3dbe219dad6fcc7e0be6ba7fb390a021ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for postal_address-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7633d7f79ac23e9382fd0ffde526651bfb332a65298cc483ed7431feab2dd220
MD5 54b2d986693e7cbc370feb74a5f9f650
BLAKE2b-256 d7261ff75be383fce75f90a2c51284e73b7b6547ffcca512a6f094df87eabc9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: postal_address-1.4.0-py2.7.egg
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for postal_address-1.4.0-py2.7.egg
Algorithm Hash digest
SHA256 db624e6229f28e8bfdfb1bb628dd3b38f10c424b30c457d599a993a3042d8a9f
MD5 bc1434b54e6162ec7fcd28e00554628d
BLAKE2b-256 43e423269198dca24d278abbcb05f6d8127fa00cfe7a92ad721e743835047894

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