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

Uploaded Source

Built Distribution

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

tracking_url-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tracking-url-0.0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for tracking-url-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bfbc3fdfb41eb6158d22e776dcccd2f46cad126f02f099ab01bde46a53fb0375
MD5 86b2011536e9b0bfa78a8368b22d0723
BLAKE2b-256 7146862977a281f5bb2df12bd423d8a7adeda5a911f7cc564a3c476d2585e423

See more details on using hashes here.

File details

Details for the file tracking_url-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: tracking_url-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for tracking_url-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2eab39cd8c2c6fe4578222b789c84f8645a6d973b42d359659efb0a4510e7f65
MD5 b2bbc159c306410eb839e103b05e2287
BLAKE2b-256 57c209db9eb00bdc63a5730a2a1271b7cd651c40ee0a4141ee4661c82aee2b8e

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