skip to navigation
skip to content

Not Logged In

seur 0.0.5

Python API Seur carrier

Latest Version: 0.0.7

Python API Seur carrier, Spain.

Features

  • Services
  • Test connection
  • Get cities by zio
  • Create/Send shipments to Seur
  • Get info delivery (shipment)
  • Get list deliveries (shipments) from date

Usage Examples

Example API in test.py file

Services

from seur.utils import services
services()

Test connection

with API(username, password, vat, franchise, seurid, ci, ccc, context) as seur_api:
    print seur_api.test_connection()

Create/send shipment to Seur

context['printer'] = 'ZEBRA'
context['printer_model'] = 'LP2844-Z'
context['ecb_code'] = '2C'
with Picking(username, password, vat, franchise, seurid, ci, ccc, context) as picking_api:
    reference, label, error = picking_api.create(data)

To get PDF label file pass pdf value in context:

context['pdf'] = True
with Picking(username, password, vat, franchise, seurid, ci, ccc, context) as picking_api:
    reference, label, error = picking_api.create(data)

Get Picking Info

with Picking(username_expedicion, password_expedicion, vat, franchise, seurid, ci, ccc, context) as picking_api:
    data = {}
    data['expedicion'] = 'S'
    data['public'] = 'N'
    data['reference'] = 'SEURREFERENCE'
    info = picking_api.info(data)

Get Picking List

with Picking(username_expedicion, password_expedicion, vat, franchise, seurid, ci, ccc, context) as picking_api:
    data = {}
    data['expedicion'] = 'S'
    data['public'] = 'N'
    data['from'] = '19-03-2014'
    data['to'] = '19-03-2014'
    shipments = picking_api.list(data)

If don’t pass from or to values, get today date.

Get city or zip exist from Seur API

with Picking(username_expedicion, password_expedicion, vat, franchise, seurid, ci, ccc, context) as picking_api:

    city = 'Granollers' # or upper
    options = picking_api.city(city)

    zip = '08720'
    options =  picking_api.zip(zip)

Return dict values from seur. These methods are important to call when create a new/send picking because Seur validate city value and requires city exist in their system.

 
File Type Py Version Uploaded on Size
seur-0.0.5.tar.gz (md5) Source 2014-05-28 24KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 128 downloads in the last week
  • 422 downloads in the last month