Python API Correos carrier
Project description
Python API Correos carrier.
Features
Services
Test connection
Create/Send shipments to Correos
Get label shipment in PDF
Usage Examples
Example API in test.py file
Services
from correos.utils import services
services()
Test connection
with API(username, password, code, debug) as correos_api:
print correos_api.test_connection()
Oficinas
Get Correos offices by zip
with API(username, password, code, debug) as correos_api:
zip = '08720'
print correos_api.oficinas(zip)
Create/send shipment to Correos
with Picking(username, password, code, debug) as picking_api:
data = {...}
reference, label, error = picking_api.create(data)
Get label shipment
with Picking(username, password, code, debug) as picking_api:
data = {...}
label = picking_api.label(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
correos-0.0.6.tar.gz
(26.4 kB
view details)
File details
Details for the file correos-0.0.6.tar.gz
.
File metadata
- Download URL: correos-0.0.6.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3dbe53f0ba65891f3789a03aa2d1b91ced1d32cccc75b881b96f83d14dcb28 |
|
MD5 | a04f99c7dc92199a924e98162ffb17b0 |
|
BLAKE2b-256 | 4e24f6c39ed521f68cec867f0a0383e8a6d320f6760c82f0531d353ff203f718 |