Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

rodneyosodo/sendyit-python

Repository files navigation

Unofficial Sendy python API Wrapper

The wrapper provides convenient access to the Sendy Logistics API from applications written in server-side python.

Testing Creating a Release Upload Python Package to PYPI Build Status Coverage Status Maintainability

Installation

pip install pysendyit

Usage

In order to run the demo, export the the following values to your environment. They can be found/generated at the API Dashboard.

export API_USERNAME="{your-api-username}"
export API_KEY="{your-api-key}"
export BASE_URL="{your-base-url}"
from pysendyit.pysendyit import Sendy
import os

# Creating an instance of the Sendy Class
sendy = Sendy(api_username=os.getenv('API_USERNAME'), api_key=os.getenv('API_KEY'), base_url=os.getenv('BASE_URL'))

# Printing response
print(sendy.track_or_cancel_delivery(command="track", order_no="AA2395374", request_token_id="request_token_id"))

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Sendy Logistics