Skip to main content

A Python wrapper for using the PostNL locations SOAP API

Project description

A Python wrapper for using the PostNL locations SOAP API. You can find the source code here: python-postnl-locations. Coverage


This package is depending on suds-jurko , a fully compatible version of the original package with some bug fixes and speed improvements, and has support for python3 as well. So this package depends on it (suds-py3 still has some compatibility issues).


To use this package follow these steps:

  1. Install this python package someway. (pip install postnl-locations)
  2. In your project, create a settings dictionary with at least the following parameters:
    # this is the testservice wsdl, see the PostNL documentation for the production settings
    'wsdl': "",
    'countrycode': 'NL',
    'username': "my-username",
     # the password is SHA1 hashed
    'password': "my-sha1-hashed-password",
  1. Use the client as following:
from postnl.locations.client import Locations

locations = Locations(settings=MY_SETTINGS)
my_locations = locations.nearest_locations(postalcode="6821AD")

Take a look at the for more options (you can adjust the results with a custom resultstransform claass for example).

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
postnl-locations-0.2.0.tar.gz (7.0 kB) Copy SHA256 hash SHA256 Source None Mar 16, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page