django_shipments-2.0.1
توضیحات
Shipping interface for multiple carriers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django_shipments-2.0.1 |
| نام | django_shipments |
| نسخه کتابخانه | 2.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brian Lee |
| ایمیل نویسنده | blee93@live.com |
| آدرس صفحه اصلی | http://github.com/therealblee/django-ship |
| آدرس اینترنتی | https://pypi.org/project/django_shipments/ |
| مجوز | OSI |
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)
نحوه نصب
نصب پکیج whl django_shipments-2.0.1:
pip install django_shipments-2.0.1.whl
نصب پکیج tar.gz django_shipments-2.0.1:
pip install django_shipments-2.0.1.tar.gz