

h, -help show this help message and exit You can use arguments to change the output format, like so: usps-tracking-tool -h Please verify your tracking number and try again later. The Postal Service could not locate the tracking information for your request. ├ Processed Through Facility, July 4, 2017, 8:01 pm, TOKYO INT, JAPAN ├ Processed Through Facility, July 5, 2017, 6:20 am, TOKYO INT CONTAINER 1, JAPAN ├ Processed Through Facility, July 5, 2017, 6:41 pm, ISC NEW YORK NY(USPS) ├ Arrived at USPS Destination Facility, July 6, 2017, 2:00 am, PHILADELPHIA, PA 19176 ├ Arrived at Post Office, July 6, 2017, 8:05 am, PHILADELPHIA, PA 19104 ├ Available for Pickup, July 6, 2017, 8:29 am, PHILADELPHIA, PA 19101 Your item was delivered at 6:14 pm on Jin PHILADELPHIA, PA 19104. ├ Processed Through Facility, June 10, 2017, 6:00 am, TOKYO INT V BAG 2, JAPAN ├ Processed Through Facility, June 15, 2017, 1:29 am, ISC NEW YORK NY(USPS) ├ Arrived at USPS Facility, June 17, 2017, 2:22 pm, PHILADELPHIA, PA 19116 ├ Departed USPS Facility, June 17, 2017, 2:40 pm, PHILADELPHIA, PA 19116 Your item arrived at the PHILADELPHIA, PA 19101 post office at 11:02 am on Jand is ready for pickup. Examples usps-tracking-toolĮnter tracking numbers separated by spaces: ABC1234567890 DEF1234567890 GHI1234567890

If you run the program without a tracking number, it will prompt you for a tracking number (you may input multiple tracking numbers by separating them with spaces). You can track single/multiple shipment(s) by executing the program as follows: usps-tracking-tool In that case, please substitute the usps-tracking-tool command in the below examples with python3 tracking.py. If running from the project directory, the program is available in the usps_tracking_tool folder. $Env:USPS_API_KEY = "your_api_key_here" Usage You can set the API key in your CLI by using the below commands (matching your OS/terminal): Providing API key as an environment variable If an API key is not found in any of these places, the program will output an error and exit. API key provided in the environment variable USPS_API_KEY.API key provided in the config.json file.API key passed in via the -a parameter.This program checks for the USPS API key using the following order: InstallationĪfter installing, you can run this program by using the command usps-tracking-tool. You may provide the USPS API key in the config.json file or as anĮnvironment variable: USPS_API_KEY, please see the Providing API key IMPORTANT: You must provide your API key first before using. Command line utility to track your packages using the USPS Track Request API.Ī simple CLI package tracking tool with no Python dependencies required.
