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-0.0.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for django_shipments-0.0.1.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d631eb63841ee016282d324becaa7a09ee5754a7d92abd985994eb35428a11d2 |
|
MD5 | 51acd39c6e57e1e99cf87aa8a4a47522 |
|
BLAKE2b-256 | 57074261e2f0ef3ed1ae2460c27af033736ff43ee13a82e2175de991e3c0ee4f |