Skip to main content

Python API Envialia carrier

Project description

Python API Envialia carrier.

Features

  • Services

  • Test connection

  • List all shipments (by date)

  • Create/Send shipments to Envialia

  • Get shipment info (details)

  • Get shipment state

  • Delete shipment

Usage Examples

Example API in test.py file

Services

from envialia.utils import services
services()

Test connection

with API(agency, customer, password, debug) as envialia_api:
     envialia_api.test_connection()

List all shipments by date

with Picking(agency, customer, password, debug) as picking_api:
    date = None  # date YYYY/MM/DD
    print picking_api.list(date)

Create/Send shipments to Envialia

with Picking(agency, customer, password, debug) as picking_api:
    data = {...}
    reference = picking_api.create(data)

Get shipment info (details)

with Picking(agency, customer, password, debug) as picking_api:
    reference = '123456'
    data = {}
    data['agency_origin'] = agency
    data['agency_cargo'] = agency
    picking_api.info(reference, data)

Get shipment state

with Picking(agency, customer, password, debug) as picking_api:
    reference = '123456'
    data = {}
    data['agency_origin'] = agency
    data['agency_cargo'] = agency
    picking_api.state(reference, data)

Delete shipment

with Picking(agency, customer, password, debug) as picking_api:
    reference = '123456'
    data = {}
    data['agency_origin'] = agency
    data['agency_cargo'] = agency
    picking_api.delete(reference, data)

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

envialia-0.0.3.tar.gz (19.4 kB view details)

Uploaded Source

File details

Details for the file envialia-0.0.3.tar.gz.

File metadata

  • Download URL: envialia-0.0.3.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for envialia-0.0.3.tar.gz
Algorithm Hash digest
SHA256 21587e49691f65732a2f5629a4391a1fd4ec492be9b542ea133cf0a8f1d173fa
MD5 4395ebb18e15c02ad8f004f219a53805
BLAKE2b-256 e0ae880e8783cbb05e5abd1b8a90cecdbcd45fe1ff2e3782e9fadc22e83b00b4

See more details on using hashes here.

Supported by

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