{"id":42093010,"url":"https://github.com/marcoesposito1988/trackingmore-python","last_synced_at":"2026-01-26T11:10:11.046Z","repository":{"id":57476827,"uuid":"90548942","full_name":"marcoesposito1988/trackingmore-python","owner":"marcoesposito1988","description":"Python wrapper for the TrackingMore API","archived":false,"fork":false,"pushed_at":"2019-01-10T00:09:40.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T23:44:15.692Z","etag":null,"topics":["courier","python-wrapper","tracking-api","trackingmore-api"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcoesposito1988.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-07T17:14:38.000Z","updated_at":"2021-10-20T18:10:19.000Z","dependencies_parsed_at":"2022-09-14T12:31:19.495Z","dependency_job_id":null,"html_url":"https://github.com/marcoesposito1988/trackingmore-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marcoesposito1988/trackingmore-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoesposito1988%2Ftrackingmore-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoesposito1988%2Ftrackingmore-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoesposito1988%2Ftrackingmore-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoesposito1988%2Ftrackingmore-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcoesposito1988","download_url":"https://codeload.github.com/marcoesposito1988/trackingmore-python/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcoesposito1988%2Ftrackingmore-python/sbom","scorecard":{"id":618048,"data":{"date":"2025-08-11","repo":{"name":"github.com/marcoesposito1988/trackingmore-python","commit":"1df969346796902526b629eec67709920af8dafc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T04:30:39.319Z","repository_id":57476827,"created_at":"2025-08-21T04:30:39.319Z","updated_at":"2025-08-21T04:30:39.319Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28776618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T09:42:00.929Z","status":"ssl_error","status_checked_at":"2026-01-26T09:42:00.591Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["courier","python-wrapper","tracking-api","trackingmore-api"],"created_at":"2026-01-26T11:10:09.173Z","updated_at":"2026-01-26T11:10:11.041Z","avatar_url":"https://github.com/marcoesposito1988.png","language":"Python","readme":"[![PyPI version](https://badge.fury.io/py/trackingmore.svg)](https://badge.fury.io/py/trackingmore)\n[![Build Status](https://travis-ci.org/marcoesposito1988/trackingmore-python.svg?branch=master)](https://travis-ci.org/marcoesposito1988/trackingmore-python)\n[![codecov](https://codecov.io/gh/marcoesposito1988/trackingmore-python/branch/master/graph/badge.svg)](https://codecov.io/gh/marcoesposito1988/trackingmore-python)\n\n# pytrackingmore\nPython wrapper for the TrackingMore API\n\nThis library supports the following methods of the TrackingMore API:\n\n- Creating a new tracking item, given the courier code and the tracking number\n- Creating a batch of tracking items, given the courier code and the tracking number\n- Updating a tracking item, given the courier code and the tracking number\n- Deleting a tracking item, given the courier code and the tracking number\n- Querying the tracking data for an item from the courier API in real time\n- Detecting the courier from the tracking number\n\n## Installation\n```pip install trackingmore```\n\n## Setup\nYou need a TrackingMore account in order to use the API. You can then \ngenerate an API token, which you \nwill need to pass to the trackingmore module. \n\nYou can just do it once somewhere in the program, before using the API.\n\n```$xslt\nimport trackingmore\n\ntrackingmore.set_api_key('my-api-key')\n\n```\n\n## Creating tracking items\nBefore accessing information about a shipment, you must create a tracking item \nin TrackingMore's system. It will then be also visible in the dashboard.\n\n### Creating a single tracking item\nEach shipment is identifiable through its courier code and tracking number.\n \n```$xslt\n\u003e\u003e\u003e td = trackingmore.create_tracking_data('poste-italiane', '1234567890')\n\u003e\u003e\u003e trackingmore.create_tracking_item(td)\n\n{\n    \"id\": \"b6321d71ad627cbf8c141ccc25fc659f\",\n    \"tracking_number\": \"1234567890\",\n    \"carrier_code\": \"poste-italiane\",\n    \"status\": \"pending\",\n    \"created_at\": \"2017-05-20T17:39:21+08:00\",\n    \"customer_email\": \"null\",\n    \"customer_name\": \"null\",\n    \"order_id\": \"null\",\n    \"title\": null\n}\n```\n\nHowever, while creating a tracking item, it is possible to provide additional \nmetadata to be stored in TrackingMore's database, to facilitate your own operations. \nThe trackingmore module includes a helper function to create a TrackingData object.\n\n```$xslt\n\u003e\u003e\u003e td = trackingmore.create_tracking_data(\n        carrier_code='poste-italiane', \n        tracking_number='0987654321', \n        title='my_first_package', \n        customer_name='Marco Esposito',\n        customer_email='marcoesposito1988@gmail.com', \n        order_id='my_order_id', \n        lang='it'\n    )\n    \n\u003e\u003e\u003e trackingmore.create_tracking_item(td)\n\n{\n    \"id\": \"b6321d71ad627cbf8c141ccc25fc6600\",\n    \"tracking_number\": \"0987654321\",\n    \"carrier_code\": \"poste-italiane\",\n    \"status\": \"pending\",\n    \"created_at\": \"2017-05-20T17:39:23+08:00\",\n    \"customer_email\": \"marcoesposito1988@gmail.com\",\n    \"customer_name\": \"Marco Esposito\",\n    \"order_id\": \"my_order_id\",\n    \"title\": \"my_first_package\"\n}\n```\n\n### Batch creation\nIt is possible to create multiple tracking items with a single API call.\n\n```$xslt\n\u003e\u003e\u003e tds = [\n        trackingmore.create_tracking_data('poste-italiane', '1234567890'),\n        trackingmore.create_tracking_data('dhl', 'abc123456')\n    ]\n    \n\u003e\u003e\u003e trackingmore.create_tracking_items_batch(tds)\n[\n    {\n        \"id\": \"b6321d71ad627cbf8c141ccc25fc6601\",\n        \"tracking_number\": \"1234567890\",\n        \"carrier_code\": \"poste-italiane\",\n        \"status\": \"pending\",\n        \"created_at\": \"2017-05-20T17:39:26+08:00\",\n        \"customer_email\": \"null\",\n        \"customer_name\": \"null\",\n        \"order_id\": \"null\",\n        \"title\": null\n    },\n    {\n        \"id\": \"b6321d71ad627cbf8c141ccc25fc6602\",\n        \"tracking_number\": \"abc123456\",\n        \"carrier_code\": \"dhl\",\n        \"status\": \"pending\",\n        \"created_at\": \"2017-05-20T17:39:26+08:00\",\n        \"customer_email\": \"null\",\n        \"customer_name\": \"null\",\n        \"order_id\": \"null\",\n        \"title\": null\n    }\n]\n```\n\n## Updating tracking items\nIt is also possible to update the tracking item metadata after creation. \n\n```$xslt\n\u003e\u003e\u003e td = trackingmore.create_tracking_data(\n        carrier_code='poste-italiane', \n        tracking_number='1234567890', \n        customer_name='Marco Esposito',\n        customer_email='marcoesposito1988@gmail.com'\n    )\n    \n\u003e\u003e\u003e trackingmore.update_tracking_item(td)\n{\n    \"id\": \"b6321d71ad627cbf8c141ccc25fc659f\",\n    \"tracking_number\": \"1234567890\",\n    \"carrier_code\": \"poste-italiane\",\n    \"status\": \"pending\",\n    \"created_at\": \"2017-05-20T17:39:21+08:00\",\n    \"customer_email\": \"marcoesposito1988@gmail.com\",\n    \"customer_name\": \"Marco Esposito\",\n    \"order_id\": \"null\",\n    \"title\": null\n}\n```\n\n## Fetching information about tracking items\nOnce a tracking item has been created, it will synchronize periodically \n(every few hours) with the courier's system. \n\n### Normal query\nIt is possible to fetch the latest information from the TrackingMore \nservers by providing the courier code and tracking number.\n\n```$xslt\n\u003e\u003e\u003e trackingmore.get_tracking_item('ups', '1Z97X17XYW06605211')\n{\n    \"id\": \"ac9326a212b9b8660759f55bac89df2b\",\n    \"tracking_number\": \"1Z97X17XYW06605211\",\n    \"carrier_code\": \"ups\",\n    \"status\": \"transit\",\n    \"created_at\": \"2015-11-20T21:01:30+08:00\",\n    \"updated_at\": \"2015-11-21T15:27:26+08:00\",\n    \"original_country\": \"United States\",\n    \"itemTimeLength\": null,\n    \"origin_info\": {\n        \"weblink\": \"http:\\/\\/www.ups.com\\/content\\/us\\/en\\/contact\\/index.html?WT.svl=Footer\",\n        \"phone\": null,\n        \"carrier_code\": \"ups\",\n        \"trackinfo\": [{\n            \"Date\": \"2015-11-06 09:46:00\",\n            \"StatusDescription\": \"package transferred to post office.\",\n            \"Details\": \"\"\n        }, {\n            \"Date\": \"2015-11-06 05:41:00\",\n            \"StatusDescription\": \"destination scan\",\n            \"Details\": \"US,BALDWIN PARK\"\n        }, \n        ...\n        ]\n    }\n}\n```\n\n### Realtime query\nThis method forces the TrackingMore server to fetch the latest information available \nfrom the courier's system. A rate limit applies.\n\n```$xslt\n\u003e\u003e\u003e td = trackingmore.create_tracking_data('china-ems', 'LK664578623CN')\n    \n\u003e\u003e\u003e trackingmore.realtime_tracking(td)\n\n{\n    \"items\": [{\n        \"id\": \"442f798ea35749e7605d1a73d4181a01\",\n        \"tracking_number\": \"RE113184005HK\",\n        \"carrier_code\": \"hong-kong-post\",\n        \"status\": \"transit\",\n        \"original_country\": \"Hong Kong [CN]\",\n        \"destination_country\": \"Colombia\",\n        \"itemTimeLength\": null,\n        \"origin_info\": {\n            \"weblink\": \"http:\\/\\/www.hongkongpost.hk\\/\",\n            \"phone\": \"852 2921 2222\",\n            \"carrier_code\": \"hong-kong-post\",\n            \"trackinfo\": [{\n                \"Details\": \"CO\",\n                \"StatusDescription\": \"The item ( RE113184005HK ) left Hong Kong for its destination on  10-Oct-2015 \",\n                \"Date\": \"2015-10-09 00:00\"\n            }]\n        },\n        \"destination_info\": {\n            \"weblink\": \"http:\\/\\/www.4-72.com.co\\/\",\n            \"phone\": \"(57-1) 4722000\",\n            \"carrier_code\": \"colombia-post\",\n            \"trackinfo\": [{\n                \"Date\": \"2015-10-22 20:52\",\n                \"StatusDescription\": \"DIGITALIZADO\",\n                \"Details\": \"CTP.CENTRO A\"\n            }, {\n                \"Date\": \"2015-10-22 17:02\",\n                \"StatusDescription\": \"Registro de entrega exitosa\",\n                \"Details\": \"\"\n            }, {\n                \"Date\": \"2015-10-22 16:55\",\n                \"StatusDescription\": \"ENTREGADO\",\n                \"Details\": \"CD.MONTEVIDEO\"\n            },\n            ...\n            ]\n        }\n    \"lastEvent\": \"DIGITALIZADO,CTP.CENTRO A,2015-10-22 20:52\",\n    \"lastUpdateTime\": \"2015-10-22 20:52\"\n    }]\n}\n```\n\n## Deleting a tracking item\nIt is possible to delete a tracking item when it is not needed any more. It can \nbe added again later at no additional cost (TrackingMore charges per package).\n\n```$xslt\n\u003e\u003e\u003e trackingmore.delete_tracking_item('ups', '1Z97X17XYW06605211')\n[]\n```\n\n## Notes\n\nThe author is not affiliated to TrackingMore. Every responsibility is declined.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoesposito1988%2Ftrackingmore-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcoesposito1988%2Ftrackingmore-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcoesposito1988%2Ftrackingmore-python/lists"}