Skip to main content

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)

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.2.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

django_shipments-0.0.2.linux-x86_64.tar.gz (43.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page