{ "info": { "author": "David Burke", "author_email": "dburke@thelabnyc.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5" ], "description": "# Django UPS Time In Transit\n\ndjango-ups-tnt is a wrapper around UPS's Time In Transit (TNT) API.\n\nThis wrapper is necessary because UPS's API is not public and requires Authentication details that cannot be shared\nin javascript.\n\nIt provides some defaults to make the api easier to work with.\nIt also provides some form validation before hitting the UPS API and cache\n\n# Installation\n\nRequires djangorestframework>=3.3.0. Tested on Django 1.8 and 1.9.\n\n1. Add `django-ups-tnt` to requirements.txt or pip install.\n2. Add `url(r'^api/', include('ups_tnt.urls')),` to urls.py\n3. Set required settings in settings.py\n\n## Settings\n\n### Required\n\nUPS_USERNAME\n\nUPS_PASSWORD\n\nUPS_ACCESS_LICENSE_NUMBER\n\n### Override defaults\n\nUPS_DEFAULT_SHIP_FROM \nUPS_DEFAULT_SHIP_TO\n\nDefault shipping addresses\n\nExample syntax:\n\n```\n{\n \"Address\": {\n \"CountryCode\": \"US\",\n }\n}\n```\n\nUPS_BUFFER_DAYS - add buffer to when the item is shipped. Defaults to 0. Set to a int or callable.\n\nUPS_DEFAULT_SHIPMENT_WEIGHT - Set shipment weight. Example\n\n```\nUPS_DEFAULT_SHIPMENT_WEIGHT = {\n \"UnitOfMeasurement\": {\n \"Code\": \"LBS\",\n \"Description\": \"Pounds\"\n },\n \"Weight\": \"90\"\n}\n```\n\nUPS_DEFAULT_INVOICE - Set value of shipment\n\n```\nUPS_DEFAULT_INVOICE = {\n \"CurrencyCode\": \"USD\",\n \"MonetaryValue\": \"800\"\n}\n```\n\nUPS_TEST_LIVE - Set to `True` to make unit tests access actual API instead of mocks\n\nUPS_CACHE_NAME - Set to the name of the cache to use. Defaults to `default`\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/thelabnyc/django-ups-tnt", "keywords": null, "license": "ISC", "maintainer": null, "maintainer_email": null, "name": "django-ups-tnt", "package_url": "https://pypi.org/project/django-ups-tnt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-ups-tnt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://gitlab.com/thelabnyc/django-ups-tnt" }, "release_url": "https://pypi.org/project/django-ups-tnt/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Django wrapper around UPS Time In Transit JSON API", "version": "1.0.1" }, "last_serial": 2204612, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c921bc4fe6518226a5f3e899f8c45696", "sha256": "3e9bd25d3a6fda26eb52b73ebcaa8fb8497ef66f057591803e3a034287253008" }, "downloads": -1, "filename": "django_ups_tnt-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c921bc4fe6518226a5f3e899f8c45696", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6876, "upload_time": "2016-05-17T15:16:26", "url": "https://files.pythonhosted.org/packages/92/ca/d6790d5310d5fe4c20f5397ce9afc7b0652628eed3c63df6e8ad64ff114d/django_ups_tnt-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "09496a7b0d71430c3c5a675b5ec1fa77", "sha256": "be7f39bfd88098a69d15075492dd4d38b416bc79f8273531e3470df71c53e6ef" }, "downloads": -1, "filename": "django-ups-tnt-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09496a7b0d71430c3c5a675b5ec1fa77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4861, "upload_time": "2016-05-17T15:15:59", "url": "https://files.pythonhosted.org/packages/72/22/4419439a6165360217a22bcefae2c59c03b34f5bd0e4164667d19f3a7883/django-ups-tnt-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "12e467f9d376550eed3d6417613d2aed", "sha256": "7ee4fa20b8d69aab3f0dc48ce8a3104c63f26391699b165de51550130a121fc3" }, "downloads": -1, "filename": "django_ups_tnt-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "12e467f9d376550eed3d6417613d2aed", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6864, "upload_time": "2016-07-05T21:41:21", "url": "https://files.pythonhosted.org/packages/cc/b4/e1b0fbc18d932662d940cd1f1cb3be11b0fa4a795c21c7a263aa30a0c15c/django_ups_tnt-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a7dee212dc9c5c123bc8bdb76a755d9", "sha256": "b3199cecebe6fa396731836d964f8c831df2b8ce9c73ac2164b081fc966d7273" }, "downloads": -1, "filename": "django-ups-tnt-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5a7dee212dc9c5c123bc8bdb76a755d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4868, "upload_time": "2016-07-05T21:41:17", "url": "https://files.pythonhosted.org/packages/72/f0/fcf8a94c762487e0116ce35e463486e436f1d6ecc4033082b67d80bbc350/django-ups-tnt-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "12e467f9d376550eed3d6417613d2aed", "sha256": "7ee4fa20b8d69aab3f0dc48ce8a3104c63f26391699b165de51550130a121fc3" }, "downloads": -1, "filename": "django_ups_tnt-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "12e467f9d376550eed3d6417613d2aed", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 6864, "upload_time": "2016-07-05T21:41:21", "url": "https://files.pythonhosted.org/packages/cc/b4/e1b0fbc18d932662d940cd1f1cb3be11b0fa4a795c21c7a263aa30a0c15c/django_ups_tnt-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a7dee212dc9c5c123bc8bdb76a755d9", "sha256": "b3199cecebe6fa396731836d964f8c831df2b8ce9c73ac2164b081fc966d7273" }, "downloads": -1, "filename": "django-ups-tnt-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5a7dee212dc9c5c123bc8bdb76a755d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4868, "upload_time": "2016-07-05T21:41:17", "url": "https://files.pythonhosted.org/packages/72/f0/fcf8a94c762487e0116ce35e463486e436f1d6ecc4033082b67d80bbc350/django-ups-tnt-1.0.1.tar.gz" } ] }