Skip to main content

A lib to use MyDelivengo API

Project description


Build Status

pydelivengo is a Python library using the MyDelivengo API


PyDelivengo :

MyDelivengo (La Poste API documentation) :

You can find the list of parameters for each function into this documentation.

How to use

api = PyDelivengo(api_authorization="your_mydelivengo_api_key")
api.get_user_info()  # Get your user info
api.get_envois()  # get all your "envois"
api.get_pli(11437479, print_pdf=True)  # Get the "pli" with ID 11437479 and generate PDF to print
api.get_depots(params={'date[from]':'30/11/2017'})  # Get the "depots" from November 30th

Looks to MyDelivengo documentation to see all parameters.


Decode and save PDF from API

An example for decode and save the Base64 Encoded String return by the MyDelivengo API:

import os
from base64 import decodebytes

with open(os.path.expanduser('path/test.pdf'), 'wb') as f:

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

pydelivengo-1.6.tar.gz (4.4 kB view hashes)

Uploaded source

Built Distribution

pydelivengo-1.6-py3-none-any.whl (5.2 kB view hashes)

Uploaded py3

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