Skip to main content

PurplShip Multi-carrier Shipping API Python client library

Project description

purplship

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

Requirements.

Python 3.4+

Installation & Usage

pip install

pip install purplship-python

Then import the package:

import purplship 

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import purplship
from purplship.rest import ApiException
from pprint import pprint

# Configure API key authorization: Token
purplship.api_key = 'YOUR_API_KEY'
purplship.host = 'https://instance.purplship.api/v1'

try:
    configured_carriers = purplship.Carriers.retrieve()
    pprint(configured_carriers)
except ApiException as e:
    print("Exception when calling Carriers->retrieve: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://instance.purplship.api/v1

Class Method HTTP request Description
Carriers retrieve GET /carriers
Rates fetch POST /proxy/rates
Shipments create POST /proxy/shipments
Tracking retrieve GET /proxy/tracking/{carrier_name}/{tracking_number}
Utils get_reference GET /references
Utils print_label POST /labels

Documentation For Models

Documentation For Authorization

Token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

PurplShip Team | hello@purplship.com | purplship.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

purplship_python-2020.6.2-py3-none-any.whl (93.3 kB view hashes)

Uploaded Python 3

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