Need help with pypostal?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

561 Stars 65 Forks MIT License 88 Commits 37 Opened issues


Python bindings to libpostal for fast international address parsing/normalization

Services available


Need anything else?

Contributors list


Build Status PyPI version License

These are the official Python bindings to, a fast statistical parser/normalizer for street addresses anywhere in the world.


from postal.expand import expand_address
expand_address('Quatre vingt douze Ave des Champs-Élysées')

from postal.parser import parse_address parse_address('The Book Club 100-106 Leonard St, Shoreditch, London, Greater London, EC2A 4RH, United Kingdom')


Before using the Python bindings, you must install the libpostal C library. Make sure you have the following prerequisites:

On Ubuntu/Debian

sudo apt-get install curl autoconf automake libtool python-dev pkg-config
sudo yum install curl autoconf automake libtool python-devel pkgconfig
On Mac OSX
brew install curl autoconf automake libtool pkg-config

Installing libpostal

git clone
cd libpostal
./configure --datadir=[...some dir with a few GB of space...]
sudo make install

On Linux it's probably a good idea to run

sudo ldconfig

To install the Python library, just run:

pip install postal


pypostal supports Python 2.7+ and Python 3.4+. These bindings are written using the Python C API and thus support CPython only. Since libpostal is a standalone C library, support for PyPy is still possible with a CFFI wrapper, but is not a goal for this repo.


Make sure you have nose installed, then run:

python build_ext --inplace
nosetests postal/tests


build_ext --inplace
business is needed so the C extensions build in the source checkout directory and are accessible/importalbe by the Python modules.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.