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.2.tar.gz (2.6 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.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for canadapostwrapper-0.4.2.tar.gz
Algorithm Hash digest
SHA256 8f4689a9b15a9ab60b4a2d8e5a43f7693ac890b195aed6d0836c03433cb04338
MD5 b05974522a18e79a6231cbb41a659cc6
BLAKE2b-256 46c763570c67f417cf48e11425649e97be816c806e287e535790511660bd50df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for canadapostwrapper-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4faa61d89df01e07b9ab0d2df4a792cce155992030213a8670725970de6a07
MD5 96065f3c41da46f0331c8500b9e79702
BLAKE2b-256 b404112a1354433ea4fff96e562536889076743cc8a9dc9052c16907cdadb6e4

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