django-moova
Starting
These instructions will allow you to install the library in your python project.
Current features
- Create shipment.
- Get tracking info.
- Get shipping label.
Pre-requisitos
- Python >= 3.7
- Django >= 3
- requests >= 2
Installation
- To get the latest stable release from PyPi:
pip install corona-moova
or
- From a build
git clone git@gitlab.com:linets-projects/python-libraries/django-moova.git
cd {{project}}
python setup.py sdist
and, install in your project django
pip install {{path}}/django-moova/dist/{{tar.gz file}}
- Settings in django project
DJANGO_MOOVA = {
'MOOVA': {
'BASE_URL': '<MOOVA_BASE_URL>',
'SECRET': '<MOOVA_SECRET_TOKEN>',
'KEY': '<MOOVA_SECRET_KEY>',
'CURRENCY': 'CLP',
'TYPE': 'regular',
'FLOW': 'manual',
},
'REMITENTE': {
'ADDRESS': '<ADDRESS>',
'COUNTRY': 'CHL',
'INSTRUCTIONS': 'Call before delivery',
'FIRST_NAME': '<FIRST_NAME>',
'LAST_NAME': '<LAST_NAME>',
'EMAIL': '<EMAIL>',
'PHONE': '<PHONE>',
},
}
Usage
- Create shipment:
from moova.handler import MoovaHandler
handler = MoovaHandler()
default_data = handler.get_default_payload(instance)
default_data["currency"] = "CLP" # eg. (Optional)
response = handler.create_shipping(default_data)
- Get tracking info:
from moova.handler import MoovaHandler
handler = MoovaHandler()
tracking_info = handler.get_tracking(<identifier>)
- Get shipping label:
from moova.handler import MoovaHandler
handler = MoovaHandler()
label_info = handler.get_shipping_label(<shipping_id>)
Output:
'https://moova-user-data-test.s3.amazonaws.com/etiqueta-10x15.pdf'
Metadata
Release files for corona-logistica-moova 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| corona_logistica_moova-1.0.9.tar.gz | 6.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| corona_logistica_moova-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / corona_logistica_moova-1.0.9.tar.gz
| Download URL | corona_logistica_moova-1.0.9.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
029d7e4334f4c476d0d297efbc0ee34773c7c5d4ea9b7063025c3dbbcba8fa76
|
|
BLAKE2b-256 checksum How to use checksums |
fa914e927b4ca1142f0f387c2e6b9ca51d429a89f59dc6cde6d56a4f9a9f1cce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Release files / corona_logistica_moova-1.0.9-py3-none-any.whl
| Download URL | corona_logistica_moova-1.0.9-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6d6244fb812b0d3171ec97aedbf2142eba7c864839d9ac08808338a256eeac9
|
|
BLAKE2b-256 checksum How to use checksums |
5a559c842ca09ac6d2bae20675eaca223ed8d736aab16f2eabdd4735f7c81f83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.3
|
Security for corona-logistica-moova 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.