Detect package carrier from tracking number and generate tracking url
Project description
Description
Detect package carrier from tracking number and generate tracking url.
Requirements
python >= 3.2
Installation
$ pip install tracking_url
Usage
import tracking_url
match = tracking_url.guess_carrier('0123456789')
if match is None:
print('No matching carrier found')
else:
print('Number:', match.number)
print('Carrier:', match.carrier)
print('Url:', match.url)
Thanks
This code is a simple python port of the identically named node module.
Big thanks to https://github.com/wankdanker for the original code and research.
Issues
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/sereema/tracking-url/issues .
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
tracking-url-0.0.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for tracking_url-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eab39cd8c2c6fe4578222b789c84f8645a6d973b42d359659efb0a4510e7f65 |
|
MD5 | b2bbc159c306410eb839e103b05e2287 |
|
BLAKE2b-256 | 57c209db9eb00bdc63a5730a2a1271b7cd651c40ee0a4141ee4661c82aee2b8e |