Skip to main content

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


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)

Uploaded Source

Built Distribution

pyaramex-0.0.2-py3-none-any.whl (1.6 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