Un-Official Sendyit Python wrapper
Project description
Unofficial Sendy python API Wrapper
The wrapper provides convenient access to the Sendy Logistics API from applications written in server-side python.
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
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
pysendyit-0.1.1.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for pysendyit-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35ca3cb3419121ff84503df4faa63f055ef629bbfe8ba6ca9f60ec4b733c4a75 |
|
MD5 | 8efc9634f68c6939f6222cb627c8c8ac |
|
BLAKE2b-256 | 103ba8cfb0c0766b27693c5043c66ac4d0b4e9c15e2b0ee65fad64d6daecfecb |