Label parcels without pain
Project description
Roulier
Roulier is a shipping library written in Python for sending parcels. Roulier will get a label + tracking number to your carrier for you.
- Roulier runs on your server and call each carrier API directly.
- You have to use your own credentials provided by each carriers.
- Roulier is Open Source software, AGPL-3
- Roulier integrate a multitude of carriers : Laposte, Geodis, DPD, K&N... more to come.
Installation
This is not compatible with python 2.7. Please use version < 1.0.0 (python2 branch) in that case.
Usage
from roulier import roulier
payload= {
"auth": {
"login": "12345",
"password": "password",
},
"service": {
"productCode": "COL"
},
"parcels": [{
"weight": 3.4,
}],
"to_address": {
"firstName": "Hparfr"
"street1": "35 b Rue Montgolfier"
"city": "Villeurbanne"
"country": "FR",
"zip": "69100"
},
"from_address": {
"fristName": "Akretion France"
"street1": "35 b Rue Montgolfier"
"city": "Villeurbanne"
"country": "FR",
"zip": "69100"
},
}
# first parameter is the carrier type.
# second is the action and then the parameters needed by the action
response = roulier.get('laposte_fr', 'get_label', payload)
print(response)
Get supported carriers and related actions:
from roulier import roulier
print(roulier.get_carriers_action_available())
Contributors
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
roulier-1.0.0.tar.gz
(43.2 kB
view hashes)
Built Distribution
roulier-1.0.0-py3-none-any.whl
(80.3 kB
view hashes)