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
django_shipments-2.0.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for django_shipments-2.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19aabe1dc5771131045d2664730abf717f309a45ab607801710b11fbf9a8aa4c |
|
MD5 | 9f909d708bd3bb79dbdc5a6a1c925c7e |
|
BLAKE2b-256 | c5c9202aa5cd68582f1590e4ef171fce97ee25c12a6b4a15ad78508fcd059719 |