UPS shipping interface
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-ups-0.0.4.tar.gz
(7.5 kB
view details)
File details
Details for the file python-ups-0.0.4.tar.gz
.
File metadata
- Download URL: python-ups-0.0.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b5ff8aad92ec93c685a2057613e884590719c064032dfe31542b845d666fb2 |
|
MD5 | 54850db01f19ef03797321e410ed6e11 |
|
BLAKE2b-256 | bc42fec5dc9cc537dc724d7cd4a5a36721f151153df09e8b6f430dd9932df060 |