Libreria para conseguir cotizaciones sobre envio de paquetes con la API de shipengine (FedEx)
Project description
Libreria para conseguir cotizaciones sobre envio de paquetes con la API de shipengine (FedEx)
from fedexrates.rates import Rate
quote_params = {
"address_from": {
"zip": "64000",
"country": "MX"
},
"address_to": {
"zip": "64000",
"country": "MX"
},
"parcel": {
"length": 25.0,
"width": 28.0,
"height": 46.0,
"distance_unit": "cm",
"weight": 6.5,
"mass_unit": "kg"
}
}
credentials = "TEST_DR6z1zWA0vFKnL+Znjk3FpRlLBEKGpKDg7N/yF7AShY"
rate = Rate(quote_params=quote_params, credentials=credentials)
print(rate.get_rate())
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
fedexrates-0.9.tar.gz
(2.9 kB
view hashes)