Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django wrapper around UPS Time In Transit JSON API

Project Description

# Django UPS Time In Transit

django-ups-tnt is a wrapper around UPS's Time In Transit (TNT) API.

This wrapper is necessary because UPS's API is not public and requires Authentication details that cannot be shared
in javascript.

It provides some defaults to make the api easier to work with.
It also provides some form validation before hitting the UPS API and cache

# Installation

Requires djangorestframework>=3.3.0. Tested on Django 1.8 and 1.9.

1. Add `django-ups-tnt` to requirements.txt or pip install.
2. Add `url(r'^api/', include('ups_tnt.urls')),` to
3. Set required settings in

## Settings

### Required




### Override defaults


Default shipping addresses

Example syntax:

"Address": {
"CountryCode": "US",

UPS_BUFFER_DAYS - add buffer to when the item is shipped. Defaults to 0. Set to a int or callable.

UPS_DEFAULT_SHIPMENT_WEIGHT - Set shipment weight. Example

"UnitOfMeasurement": {
"Code": "LBS",
"Description": "Pounds"
"Weight": "90"

UPS_DEFAULT_INVOICE - Set value of shipment

"CurrencyCode": "USD",
"MonetaryValue": "800"

UPS_TEST_LIVE - Set to `True` to make unit tests access actual API instead of mocks

UPS_CACHE_NAME - Set to the name of the cache to use. Defaults to `default`

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.9 kB) Copy SHA256 Hash SHA256
Wheel 3.5 Jul 5, 2016
(4.9 kB) Copy SHA256 Hash SHA256
Source None Jul 5, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate