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
    • French La Poste
    • French DPD
    • French GLS
    • French Chronopost
    • more to come... (geodis, kuehne...)

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

Known Issues

French GLS carrier :

  • The glsbox webservice only manage Basic products : BP, EBP, GBP
  • In the rest webservice, the incoterms don't work

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.1.0.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

roulier-1.1.0-py3-none-any.whl (99.5 kB view details)

Uploaded Python 3

File details

Details for the file roulier-1.1.0.tar.gz.

File metadata

  • Download URL: roulier-1.1.0.tar.gz
  • Upload date:
  • Size: 57.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

File hashes

Hashes for roulier-1.1.0.tar.gz
Algorithm Hash digest
SHA256 96cdc2cefda1d527a98159dafb60ab390643ebe7fb5ce513e9fdd837db6a11e8
MD5 bd46cdc8c4bcf12378c5632e78d28ff6
BLAKE2b-256 7a6bffefbfbdf8418f047786cdac090e49b64fd104374314f66f5640be630ec5

See more details on using hashes here.

File details

Details for the file roulier-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: roulier-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.7

File hashes

Hashes for roulier-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68dcc1f0bcc450c57a9a709be71c7f8f11d5ebbc98416c347cfa7a55c975df7d
MD5 feb7722165150e11f4eaf4689de8a813
BLAKE2b-256 183b2457dc65313475e010893724973d90479cc66d7fa0f73ca96e6c5d9a3ffb

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