Skip to main content

La Poste SDK

Project description

https://travis-ci.org/geelweb/laposte-python-sdk.svg?branch=master https://coveralls.io/repos/github/geelweb/laposte-python-sdk/badge.svg?branch=master https://img.shields.io/badge/python-2.7%2C%20~3.3-blue.svg

LaPosteSDK is a Python client library to work with La Poste API

Installation

pip install lapostesdk

Requirements

  • requests

Dev requirements

  • responses

Configuration

from lapostesdk.laposteapi import LaPosteApi
api = LaPosteApi(api_key='YourApiKey')

Test suite

python -m unittest test

Apis

ControlAdresse

The ControlAdresse Api

Address look up

response = api.controladresse.search('116 avenue du Président Kennedy 75220 Paris Cedex 16')

Address details

adresse = api.controladresse.get(‘adresses/12280852’) print adresse.codePostal

Suivi

The Suivi Api

suivi = api.suivi.get('1111111111111')
print suivi.status

Project details


Download files

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

Source Distribution

lapostesdk-0.1.3.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file lapostesdk-0.1.3.tar.gz.

File metadata

  • Download URL: lapostesdk-0.1.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lapostesdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0779449d124c1a8acba861a4a4ff15fe376cb7c42c45b4695993c563ac7281a4
MD5 bdb10253661725a508072c2d6cc23987
BLAKE2b-256 75e2f7653cd657cced87e5841f04c56118cfdcfc252802a5de2ff4fbe899ce45

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