Go to file
Raimon Esteve be33400be9 Initial commit 2018-03-09 12:16:48 +01:00
doc Initial commit 2018-03-09 12:16:48 +01:00
mondialrelay Initial commit 2018-03-09 12:16:48 +01:00
CHANGELOG Initial commit 2018-03-09 12:16:48 +01:00
COPYRIGHT Initial commit 2018-03-09 12:16:48 +01:00
INSTALL Initial commit 2018-03-09 12:16:48 +01:00
LICENSE Initial commit 2018-03-09 12:16:48 +01:00
MANIFEST.in Initial commit 2018-03-09 12:16:48 +01:00
README Initial commit 2018-03-09 12:16:48 +01:00
setup.py Initial commit 2018-03-09 12:16:48 +01:00
test.py Initial commit 2018-03-09 12:16:48 +01:00

README

MondialRelay
============

Python API MondialRelay carrier.

Features
--------

- Services
- Test connection
- Create/Send shipments to MondialRelay
- Label shipment - PDF

Usage Examples
--------------

Example API in test.py file

Test connection
---------------

.. code-block:: python

    with Picking(username, password, mondialrelay_customerid,
            debug=debug) as mondialrelay_api:
        print mondialrelay_api.test_connection()

Create/send shipment to MondialRelay
------------------------------------

.. code-block:: python

    with Picking(username, password, mondialrelay_customerid,
            debug=debug) as mondialrelay_api:
        data = {...}
        reference, label, error = mondialrelay_api.create(data)

Get label shipment
------------------

.. code-block:: python

    with Picking(username, password, mondialrelay_customerid,
            debug=debug) as mondialrelay_api:
        data = {...}
        label = mondialrelay_api.label(data)