Skip to content

marcelnicolay/python-ups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

UPS shipping interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages