Skip to main content

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 .

Metadata

Release files for tracking-url 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tracking-url 0.0.5
File Interpreter ABI Platform Actions
tracking_url-0.0.5-py3-none-any.whl Python 3 none any Details for tracking_url-0.0.5-py3-none-any.whl

Release files / tracking_url-0.0.5-py3-none-any.whl

Download URL tracking_url-0.0.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d18e1d07ebe315d67b0bc0ad825bd7f242880aa2491b5dff55eb0bc92af54664
BLAKE2b-256 checksum
How to use checksums
cb95182f4eea5a646476ea784e19e6e1469b8e885fdf8b96627763805943b2b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Security for tracking-url 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page