correos-0.0.6
توضیحات
Python API Correos carrier
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | correos-0.0.6 |
| نام | correos |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Zikzakmedia SL |
| ایمیل نویسنده | zikzak@zikzakmedia.com |
| آدرس صفحه اصلی | https://www.zikzakmedia.com |
| آدرس اینترنتی | https://pypi.org/project/correos/ |
| مجوز | GPL-3 |
Correos
=======
Python API Correos carrier.
Features
--------
- Services
- Test connection
- Create/Send shipments to Correos
- Get label shipment in PDF
Usage Examples
--------------
Example API in test.py file
Services
--------
.. code-block:: python
from correos.utils import services
services()
Test connection
---------------
.. code-block:: python
with API(username, password, code, debug) as correos_api:
print correos_api.test_connection()
Oficinas
--------
Get Correos offices by zip
.. code-block:: python
with API(username, password, code, debug) as correos_api:
zip = '08720'
print correos_api.oficinas(zip)
Create/send shipment to Correos
-------------------------------
.. code-block:: python
with Picking(username, password, code, debug) as picking_api:
data = {...}
reference, label, error = picking_api.create(data)
Get label shipment
------------------
.. code-block:: python
with Picking(username, password, code, debug) as picking_api:
data = {...}
label = picking_api.label(data)
نحوه نصب
نصب پکیج whl correos-0.0.6:
pip install correos-0.0.6.whl
نصب پکیج tar.gz correos-0.0.6:
pip install correos-0.0.6.tar.gz