Skip to main content

package-track

package-track is an easy to use package tracker that can automate the process of tracking your deliveries and shipments. The release is currently limited to tracking deliveries from USPS, UPS, FEDEX, and other major logistics providers that ship within the United States.

Things to know:

  • When you first run the program, package-track will ask you to grant email access through Gmail. We do not store any of your email information. We have simply built on top of the Gmail API to allow your terminal to have access to your emails. If you don't enable this functionality, the program will not work correctly. The scope and API information is available here: https://developers.google.com/gmail/api/guides.
  • package-track is cobbled together from a bunch of different dependencies. Please ensure that you have them all installed or the program will not work correctly.

Dependencies

For Gmail's API Functionality:

  • pickle, os, google-api-python-client, google-auth-httplib2, google-auth-oauthlib, email, and base64

For Online Searching / Web Scraping:

  • selenium, bs4

For everything else:

  • pandas, csv, re, itertools

Authentication

  • To allow package-track to automatically find tracking numbers from emails you need to set up the Gmail API and authenticate and authorize your application.

Using OAuth Client ID

This is the case where package-track is going to ask the end user (or yourself if you’re running it) to grant access to the user’s data. Here's how to grant access:

  • Enable API Access for a Project if you haven’t done it yet by using this link: https://developers.google.com/gmail/api/quickstart/python.
  • Click "Enable the Gmail API".
  • When prompted to configure your OAuth Client, select "Desktop app" from the dropdown menu.
  • A message will appear telling you that the credentials have been created successfully.
  • Download the credentials by clicking the Download button.
  • Move the downloaded file to ~/.package-track/bin/credentials.json. *Note: The default name for this OAuth client is Quickstart. We recommend changing the name to package-track, but it is by no means necessary for the functionality of the program.

Installation

package-track requires Python v3+ to run.

To install package-track, simply use pip install:

$ pip install package-track

Running package-track

To run package-track, simply open your command line and type in package-track at the prompt line!

Development

Want to contribute? Great!

package-track could definitely use some help. Feel free to email me at idm2114@columbia.edu or send a pull request to the github repository.

Todos

  • Refactor code
  • Add more shipping providers

License

MIT

thank you

Metadata

Release files for package-track 0.2.8

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

Source distribution (sdist)

Source distribution for package-track 0.2.8
File Size Uploaded Provenance Actions
package-track-0.2.8.tar.gz 7.8 kB Without provenance Details for package-track-0.2.8.tar.gz

Release files / package-track-0.2.8.tar.gz

Download URL package-track-0.2.8.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
50e4bc132b68eaa7bf27ac9b1e02e5a8e866cd5f5ad8fdff69ca7d3c3e7a1f12
BLAKE2b-256 checksum
How to use checksums
974c6276239b74a352aa50746f24acb3dbc1d0d4f614b1efe48be5847ed84e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for package-track 0.2.8

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