Python application tracking your shipments
Project description
Trackbert
A simple Python script for tracking shipments, primarily through KeyDelivery.
If your system provides notify-send
, you will get a desktop notification when the status of your shipment changes.
Status information is stored in a SQLite database.
Currently supported tracking providers
- KeyDelivery (paid, provides tracking for most carriers)
- Austrian Post
Requirements
The script was developed and tested on Arch Linux using Python 3.11. The "Never" type hint is used, so I suppose it will not work on older Python versions. It should work on any Linux distribution. You can technically run it on Windows and macOS as well, but you will not get desktop notifications.
In order to get desktop notifications, you need to have notify-send
installed. On Arch Linux, this is provided by the libnotify
package. If your desktop environment does not provide a notification server, you have to install one yourself. How to do this is beyond the scope of this README.
Installation
git clone https://kumig.it/kumitterer/trackbert.git
cd trackbert
python -m venv venv
source venv/bin/activate
pip install .
Then copy config.dist.ini
to config.ini
and fill in your KeyDelivery API details, which you can find in your KeyDelivery API management. You can find your API key in your KeyDelivery account settings.
Usage
First, assure that the virtual environment is activated:
source venv/bin/activate
To add a new shipment, run trackbert --tracking-number <tracking-number> --carrier <carrier-id>
. Find the required carrier ID in the KeyDelivery API management.
To run the main loop, run trackbert
. This will check the status of all shipments every 5 minutes, and print the status to the console. If the status of a shipment changes, you will get a desktop notification.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trackbert-0.1.1.tar.gz
.
File metadata
- Download URL: trackbert-0.1.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5aea754e8ab6a717ae06c18cea405b37cddb5100a600201ca9993cb67ec7363 |
|
MD5 | 7c13e2d8f745713fe40f8559abbfa58f |
|
BLAKE2b-256 | cc956d0ce4c662110bbb6c00b4dad579028b2a1616eddb1ddfbf6d813a9f6c74 |
File details
Details for the file trackbert-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: trackbert-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7485982cd1fe0b40c6b868e62ee80d6e5d31be1a6dd2dc25b11829e612e8e56 |
|
MD5 | 33ed6dd3e7322893962238c349d4f14c |
|
BLAKE2b-256 | 256292a3860a5dba11eaa56830c9c11f6ef90e1a286f178c6054be103156fbe2 |