Skip to main content

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.

big picture

  • 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


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 details)

Uploaded Source

Built Distribution

roulier-1.0.0-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

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

Hashes for roulier-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1d247b9bea083325177c8fd1f2441083af6c3c8ab06717d6d571d378f0ac6888
MD5 c5e870b80cc58b67e8d6b7cc1e126c10
BLAKE2b-256 3e07d1be090e99e24c58cd0429e76cdbfb8ca4a70e102c95b16cdbb311cf11a0

See more details on using hashes here.

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

Hashes for roulier-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b24c157077488338bac38bf1a33f9448af50c10087792a9552975b6cb00e0a5
MD5 1e53f49ad75c493b04c0de038fd1b612
BLAKE2b-256 92e41fa9e911b8589a1c3dc4ff3f88af72b40bf13bfe9ffdcc312248ac31ad94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page