karrioapi / karrio-python

Universal Shipping API Python library (Canada Post, DHL, FedEx, UPS, Purolator and more)

Home Page:https://docs.karrio.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is not maintained anymore. Chat with us if you want to help maintain a Python client for Karrio at https://github.com/karrioapi/karrio

karrio-python

Karrio is a Multi-carrier Shipping API that simplifies the integration of logistic carrier services.

Visit karrio.io to deploy your private cloud multi-carrier shipping API instance.

Documentation

See the full Python API docs.

Requirements

Python >= 3.6

Installation & Usage

pip install

pip install karrio-python

Then import the package:

import karrio

Usage

Please follow the installation procedure and then run the following:

from __future__ import print_function
import karrio
from karrio.rest import ApiException
from pprint import pprint

# Configure API key authorization: Token
karrio.api_key = 'YOUR_API_KEY'
karrio.host = 'https://api.karrio.io'

try:
    api_response = karrio.carriers.list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling karrio.carriers->list: %s\n" % e)

Documentation For Models

Author

Team Karrio | hello@karrio.io | karrio.io

About

Universal Shipping API Python library (Canada Post, DHL, FedEx, UPS, Purolator and more)

https://docs.karrio.io/

License:MIT License


Languages

Language:Python 99.9%Language:Shell 0.1%