Skip to main content

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 requests library 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

canadapostwrapper-0.4.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

canadapostwrapper-0.4.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file canadapostwrapper-0.4.1.tar.gz.

File metadata

  • Download URL: canadapostwrapper-0.4.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for canadapostwrapper-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2a6fa1b5376670ffcbdbf0179196e4e0a78196dc9df6e9bf2551c41d87245030
MD5 bf368d5b7dc835ee877735bf0fb2baf8
BLAKE2b-256 636e216933fcc0423a76cd8d6e08dce018d3f6a0fbbcaa21890a08aea3c6e873

See more details on using hashes here.

File details

Details for the file canadapostwrapper-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for canadapostwrapper-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1466bbf340a85f6948e596581c2fcaaf0e89c09394dd0d099642887cd93a9cce
MD5 735ab78743148001ccc9ba062ceec571
BLAKE2b-256 0bc659d1b470fee3f55d5301d6589e615301763ac4c1a97beb79ae231ef06a1b

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