Skip to main content

PostNL Locations

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

https://travis-ci.org/maerteijn/python-postnl-locations.svg?branch=master Coverage

Compatibility

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).

Usage

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:

MY_SETTINGS = {
    # this is the testservice wsdl, see the PostNL documentation for the production settings
    'wsdl': "https://testservice.postnl.com/CIF_SB/LocationWebService/2_0/?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 settings.py for more options (you can adjust the results with a custom resultstransform claass for example).

Metadata

Release files for postnl-locations 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for postnl-locations 0.2.0
File Size Uploaded Provenance
postnl-locations-0.2.0.tar.gz 7.0 kB Without provenance Details

Release files / postnl-locations-0.2.0.tar.gz

Download URL postnl-locations-0.2.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
58d37bb23bda74a8f8bf5cc894a1987d2bd2272c6ac2a3d8f71af83f7d795c4f
BLAKE2b-256 checksum
How to use checksums
9ab3c8fcd81e0955cba4b11304f78376c96f626e9b5d2defb1f73c6c5f18c909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for postnl-locations 0.2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page