A wrapper for tracking packages with Canada Post
Project description
Canada Post Wrapper
A Python wrapper for tracking packages with Canada Post.
Installation
You can install the package using pip:
pip install canadapostwrapper
pypi https://pypi.org/project/canadapostwrapper/0.4.0/
Usage
Here’s an example of how to use the CanadaPostTracker class to track a package:
python
Replace 'YOUR_TRACKING_ID' with your actual tracking ID
from canadapostwrapper.canadapost import CanadaPostTracker
tracker = CanadaPostTracker(tracking_id='YOUR_TRACKING_ID')
tracker.start_tracking()
Example Output
The start_tracking method will continuously check the status of your package and print the shipping information:
json { "Sent From": "Origin Information", "Shipping To": "Destination Information", "Status": "ITEM PICKED UP BY CARRIER", "Expected Delivery Date": "Friday, October 15, 2021", "Tracking Number": "YOUR_TRACKING_ID", "Status Detail": "Detailed Status Information" }
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
If you would like to contribute to this project, please fork the repository and submit a pull request.
Author
shibakek - wilhemnorman732@gmail.com
Acknowledgments
- Thanks to the developers of the
requestslibrary for making HTTP requests in Python easy.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canadapostwrapper-0.4.2.tar.gz.
File metadata
- Download URL: canadapostwrapper-0.4.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f4689a9b15a9ab60b4a2d8e5a43f7693ac890b195aed6d0836c03433cb04338
|
|
| MD5 |
b05974522a18e79a6231cbb41a659cc6
|
|
| BLAKE2b-256 |
46c763570c67f417cf48e11425649e97be816c806e287e535790511660bd50df
|
File details
Details for the file canadapostwrapper-0.4.2-py3-none-any.whl.
File metadata
- Download URL: canadapostwrapper-0.4.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f4faa61d89df01e07b9ab0d2df4a792cce155992030213a8670725970de6a07
|
|
| MD5 |
96065f3c41da46f0331c8500b9e79702
|
|
| BLAKE2b-256 |
b404112a1354433ea4fff96e562536889076743cc8a9dc9052c16907cdadb6e4
|