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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roulier-1.0.0.tar.gz.
File metadata
- Download URL: roulier-1.0.0.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d247b9bea083325177c8fd1f2441083af6c3c8ab06717d6d571d378f0ac6888
|
|
| MD5 |
c5e870b80cc58b67e8d6b7cc1e126c10
|
|
| BLAKE2b-256 |
3e07d1be090e99e24c58cd0429e76cdbfb8ca4a70e102c95b16cdbb311cf11a0
|
File details
Details for the file roulier-1.0.0-py3-none-any.whl.
File metadata
- Download URL: roulier-1.0.0-py3-none-any.whl
- Upload date:
- Size: 80.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b24c157077488338bac38bf1a33f9448af50c10087792a9552975b6cb00e0a5
|
|
| MD5 |
1e53f49ad75c493b04c0de038fd1b612
|
|
| BLAKE2b-256 |
92e41fa9e911b8589a1c3dc4ff3f88af72b40bf13bfe9ffdcc312248ac31ad94
|