Go to file
Raimon Esteve f358a64323 Increase version number 2020-12-02 18:38:28 +01:00
doc Initial commit 2014-03-13 15:18:24 +01:00
mrw Increase version number 2020-12-02 18:38:28 +01:00
CHANGELOG Initial commit 2014-03-13 15:18:24 +01:00
COPYRIGHT Initial commit 2014-03-13 15:18:24 +01:00
INSTALL Initial commit 2014-03-13 15:18:24 +01:00
LICENSE Initial commit 2014-03-13 15:18:24 +01:00
MANIFEST.in Add mrw/template dir in MANIFEST 2014-09-15 09:47:36 +02:00
README Initial commit 2014-03-13 15:18:24 +01:00
setup.py Migrate to py3 2018-09-14 22:54:53 +02:00
test.py Convert bytes to request and pass tests 2020-10-04 16:14:20 +02:00

README

MRW
===

Python API MRW carrier.

Features
--------

- Services
- Test connection
- Create/Send shipments to MRW
- Get label shipment in PDF

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

Example API in test.py file

Services
--------

.. code-block:: python

    from mrw.utils import services
    services()

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

.. code-block:: python

    with API(username, password, franchise, subscriber, department, debug) as mrw_api:
        print mrw_api.test_connection()

Create/send shipment to MRW
---------------------------

.. code-block:: python

    with Picking(username, password, franchise, subscriber, department, debug) as picking_api:
        data = {...}
        reference, error = picking_api.create(data)

Get label shipment in PDF
-------------------------

.. code-block:: python

    with Picking(username, password, franchise, subscriber, department, debug) as picking_api:
        data = {...}
        label = picking_api.label(data)