A lightweight Python wrapper around Aramex web services.
Project description
pyaramex
A lightweight, unifying Python wrapper around Aramex web services.
- Supports the Tracking, Location, Shipping and Rates API's
- Lazy-loading of WSDL files
Requirements
- Client Info, which must be obtained from Aramex directly
- All requests must be made via HTTPS - for more information, visit the Aramex Web Developer documentation
Installation
$ pip install pyaramex
Getting started
Initialising the client
ClientInfo can either be provided to the client using environment variables or by initialising them directly when you initialise the Aramex object.
from pyaramex import Aramex
aramex = Aramex()
Making requests
All Aramex services are named as they appear in the respective Web Services albeit using Python underscore syntax.
"""
The rates client and Rates WSDL are loaded only when called, thereafter they're cached for the duration of the session
"""
rate_response = aramex.rates.get_rate()
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
pyaramex-0.0.2.tar.gz
(1.7 kB
view hashes)