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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaramex-0.0.2-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file pyaramex-0.0.2.tar.gz.

File metadata

  • Download URL: pyaramex-0.0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for pyaramex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 96b97f358867e77e65f2311dafe523f9a25e809b04a954d4afb7ebf6a9613806
MD5 df9507aa07230e610c83e39b61b7108b
BLAKE2b-256 4c83437c8d241ed98b7c72070dc40ca58fb47d73ca16ae699e197e8c9ffa58d1

See more details on using hashes here.

File details

Details for the file pyaramex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyaramex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for pyaramex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0a58861d71bff0593db6f161c99e9e6ccd2d3294100b1e1f187d822db80556
MD5 3163be1f744688ea6c7b8226d4038128
BLAKE2b-256 03a801df8ed7cb859d91fb099243354fb31fb5a5ea126bb660adefb888173fb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page