Skip to content

Detect package carrier from tracking number and generate tracking url.

License

Notifications You must be signed in to change notification settings

vahidkowsari/tracking-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Detect package carrier from tracking number and generate tracking url.

Requirements

  • python >= 3.4

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 .

About

Detect package carrier from tracking number and generate tracking url.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%