Shipping interface for multiple carriers
Project description
python-ups
==========
UPS shipping interface
Using
=======
from ups.client import UPSClient
from ups.model import Package, Address
credentials = {
'username': '',
'password': '',
'access_license': '',
'shipper_number': ''
}
shipper = Address(name='shipper address name', city='rio de janeiro',
address='', state='', zip='',
country='brazil')
recipient = Address(name='shipper address name', city='rio de janeiro',
address='', state='', zip='',
country='brazil')
packages = [Package(2, 3, 4, 5)]
ups = UPSClient(credentials)
response = ups.rate(packages=packages, packaging_type='2a',
shipper=shipper, recipient=recipient)
==========
UPS shipping interface
Using
=======
from ups.client import UPSClient
from ups.model import Package, Address
credentials = {
'username': '',
'password': '',
'access_license': '',
'shipper_number': ''
}
shipper = Address(name='shipper address name', city='rio de janeiro',
address='', state='', zip='',
country='brazil')
recipient = Address(name='shipper address name', city='rio de janeiro',
address='', state='', zip='',
country='brazil')
packages = [Package(2, 3, 4, 5)]
ups = UPSClient(credentials)
response = ups.rate(packages=packages, packaging_type='2a',
shipper=shipper, recipient=recipient)
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
Built Distribution
Close
Hashes for django_shipments-0.1.15.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fac3cfe40182a1f9de0c17ea3ed0409cf8de1b697f822aca1a7ec047da39da |
|
MD5 | 8927cd0be8ce1fa624390a4e5e08c085 |
|
BLAKE2b-256 | 4707b9c8de871742ac2cb6e7f349a68bff47ec29d376d961629cb3015eabacda |