Skip to main content

A library to access Mondial Relay Web Service from Python.

Project description

mondialrelay_pyt

A Python library to access Mondial Relay API V2 (WEB SERVICE DUAL CARRIER), in order to create shipping labels for outbound/return parcels.

Installation

Install it using pip. In a terminal :

pip install mondialrelay-pyt

Usage

Call make_shipping_label() function from mondialrelay_pyt giving it a dictionary.

The dictionary must contain the following keys:

"Login", 
"Password", 
"CustomerId", 
"Culture", 
"OutputFormat",
"DeliveryMode", 
"DeliveryLocation", 
"CollectionMode", 
"ParcelWeight",
"SenderStreetname",
"SenderPostCode",
"SenderCity",
"SenderAddressAdd1",
"SenderCountryCode",
"RecipientStreetname",
"RecipientPostCode",
"RecipientCity",
"RecipientAddressAdd1",
"RecipientCountryCode",

The dictionary can contain the following optional keys :

"OrderNo",
"CustomerNo",
"SenderHouseNo",
"SenderAdressAdd2",
"SenderAdressAdd3",
"SenderPhoneNo",
"SenderEmail",
"RecipientHouseNo",
"RecipientAdressAdd2",
"RecipientAdressAdd3",
"RecipientPhoneNo",
"RecipientEmail",

Check the Mondial Relay documentation to see the expected values.

API Documentation

Mondial Relay API V2 documentation : https://www.mondialrelay.fr/media/123861/web-service-dual-carrier-v-27.pdf

Credits

This is a fork from initial Akretion mondialrelay_pyt, made by Sébastien BEAU and Aymeric LECOMTE, thanks for their work that helped me a lot. This fork was made by Henri DEWILDE.

Copyright and License

mondialrelay_pyt is copyright (c) 2012 Akretion

mondialrelay_pyt is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

mondialrelay_pyt is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with mondialrelay_pyt. If not, see GNU licenses.

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

mondialrelay_pyt-0.2.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mondialrelay_pyt-0.2.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mondialrelay_pyt-0.2.2.tar.gz.

File metadata

  • Download URL: mondialrelay_pyt-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for mondialrelay_pyt-0.2.2.tar.gz
Algorithm Hash digest
SHA256 57c1a34e791cc5f2a6d76e968e87281dc4a501c60c26f12d87ecc717d9635ad5
MD5 a9eecc77f0d77f4c0cbfeef78bb9314a
BLAKE2b-256 7205c77ecdcf5dca1f00c8b1c9069f5b0121bed6a15074d24a85778c9aa88125

See more details on using hashes here.

File details

Details for the file mondialrelay_pyt-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mondialrelay_pyt-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1fd7bb15b6a5138d10476f3b44ea7f7b39bbc5b363f7d80a2fad53f5bb5b27
MD5 5afe6181b25be22e58c58d3aabcdff44
BLAKE2b-256 d5bd1c85409b252bb1ed360cf0b7b25bb2009a71afba3a3010122fc26077722b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page