Skip to main content

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.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file tracking-url-0.0.2.tar.gz.

File metadata

  • Download URL: tracking-url-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tracking-url-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e02e0445903d4376752376fff1919ffa52c46ca7bdf0264accbef16f424c0979
MD5 aa295bb73ad0ab96b23102569a0e5b20
BLAKE2b-256 dd6eef0a72c84edba9fd1d4e2fd4796978e63d2acced35cefcc639a8f876e879

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