trackj


Nametrackj JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/earonesty/trackj
SummaryA simple package for determining shipping carriers and generating tracking URLs.
upload_time2024-09-24 01:32:50
maintainerNone
docs_urlNone
authorErik Aronesty
requires_python<4.0,>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # trackj

A simple Python library for determining shipping carriers and generating tracking URLs from tracking numbers. Supports multiple carriers with regex-based detection.

## Installation

```bash
pip install trackj
```

Or using Poetry:

```bash
poetry add trackj
```

## Usage

Import the `trackj` module and use the available functions to match carriers, generate URLs, or get carrier IDs.

```python
import trackj

# Match a tracking number to a carrier and URL
result = trackj.match("1Z999AA10123456784")
print(result)  # {'carrier': 'ups', 'url': 'http://wwwapps.ups.com/...'}

# Get only the tracking URL
url = trackj.url("1Z999AA10123456784")
print(url)  # 'http://wwwapps.ups.com/...'

# Get only the carrier ID
carrier = trackj.carrier("1Z999AA10123456784")
print(carrier)  # 'ups'

# Access the full mapping of carriers, regex patterns, and URLs
print(trackj.MAP)
```

## Supported Carriers

- UPS
- FedEx
- USPS
- DHL
- Canada Post
- Royal Mail
- Australia Post
- China Post
- Japan Post
- Hermes UK
- GLS
- PostNL
- Correos Spain
- Deutsche Post
- Aramex
- SF Express

## License

MIT License

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/earonesty/trackj",
    "name": "trackj",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Erik Aronesty",
    "author_email": "erik@q32.com",
    "download_url": "https://files.pythonhosted.org/packages/15/e7/586acd15fc66cd58adb8a6e3ff29cf0b918bb58aaf0ad5dfa356e888c0ab/trackj-0.1.0.tar.gz",
    "platform": null,
    "description": "# trackj\n\nA simple Python library for determining shipping carriers and generating tracking URLs from tracking numbers. Supports multiple carriers with regex-based detection.\n\n## Installation\n\n```bash\npip install trackj\n```\n\nOr using Poetry:\n\n```bash\npoetry add trackj\n```\n\n## Usage\n\nImport the `trackj` module and use the available functions to match carriers, generate URLs, or get carrier IDs.\n\n```python\nimport trackj\n\n# Match a tracking number to a carrier and URL\nresult = trackj.match(\"1Z999AA10123456784\")\nprint(result)  # {'carrier': 'ups', 'url': 'http://wwwapps.ups.com/...'}\n\n# Get only the tracking URL\nurl = trackj.url(\"1Z999AA10123456784\")\nprint(url)  # 'http://wwwapps.ups.com/...'\n\n# Get only the carrier ID\ncarrier = trackj.carrier(\"1Z999AA10123456784\")\nprint(carrier)  # 'ups'\n\n# Access the full mapping of carriers, regex patterns, and URLs\nprint(trackj.MAP)\n```\n\n## Supported Carriers\n\n- UPS\n- FedEx\n- USPS\n- DHL\n- Canada Post\n- Royal Mail\n- Australia Post\n- China Post\n- Japan Post\n- Hermes UK\n- GLS\n- PostNL\n- Correos Spain\n- Deutsche Post\n- Aramex\n- SF Express\n\n## License\n\nMIT License\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple package for determining shipping carriers and generating tracking URLs.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/earonesty/trackj"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f73b8605ad24c1b9133efd43b8832f08c08d897ae1943480208b40a04a70085b",
                "md5": "26ba368bf80f8b2a7a4fceb48aba596c",
                "sha256": "70c800c2bf0848593739b4194bd1c6b9cf24e838c0871947d2e96f0e1c7ca4c5"
            },
            "downloads": -1,
            "filename": "trackj-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "26ba368bf80f8b2a7a4fceb48aba596c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2912,
            "upload_time": "2024-09-24T01:32:49",
            "upload_time_iso_8601": "2024-09-24T01:32:49.547548Z",
            "url": "https://files.pythonhosted.org/packages/f7/3b/8605ad24c1b9133efd43b8832f08c08d897ae1943480208b40a04a70085b/trackj-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "15e7586acd15fc66cd58adb8a6e3ff29cf0b918bb58aaf0ad5dfa356e888c0ab",
                "md5": "12895a88d9cbbf6ce7fea2e121b3956a",
                "sha256": "3e7df29e9656beb81db03de4c60d4f6f484ab3b8e9e99a94bed82209b5d1003b"
            },
            "downloads": -1,
            "filename": "trackj-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "12895a88d9cbbf6ce7fea2e121b3956a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 2450,
            "upload_time": "2024-09-24T01:32:50",
            "upload_time_iso_8601": "2024-09-24T01:32:50.661377Z",
            "url": "https://files.pythonhosted.org/packages/15/e7/586acd15fc66cd58adb8a6e3ff29cf0b918bb58aaf0ad5dfa356e888c0ab/trackj-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-24 01:32:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "earonesty",
    "github_project": "trackj",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "trackj"
}
        
Elapsed time: 0.77674s