nvc-dhl-tracker
Automatically track and record records for NVC shipments!
Installation
pip install nvc-dhl-tracker
Or clone from github and run
pip install -e "."
Usage
Follow the gspread documentation to create a service account: https://docs.gspread.org/en/latest/
Copy the URL of the google spreadsheet
Create a new sheet in the document and copy the ID out of the URL, this will be the tracking sheet ID.
Then run
i129f_nvc_tracker
And answer the questions it asks. You should be able to let this run indefinitely, but eventually the database will fill up.
As a SystemD service
Before running as a systemd service you should run the command with a –start-number to seed the database. Otherwise if the service crashes it will restart from the previous start number which may be significantly out of date.
/root/i129fvenv/bin/python -m i129f.nvc_dhl_tracker.cli --no-input --dhl-keys [..., ...] --start-number [...] --google-spreadsheet-url [...] --google-sheet-id [...]
The command below does not include –start-number to make it easier to copy and paste.
[Unit] Description=i129f SystemD Service [Service] ExecStart=/root/i129fvenv/bin/python -m i129f.nvc_dhl_tracker.cli --no-input --dhl-keys [..., ...] --google-spreadsheet-url [...] --google-sheet-id [...] Restart=on-failure [Install] WantedBy=multi-user.target
no-input: This disables any input from the command, so that it won’t interrupt a daemonized service
dhl-keys: The keys to use with the DHL API
start-number: The number from which to start polling
google-spreadsheet-url: The URL of the Google spreadsheet
google-sheet-id: The ID of the sheet in the spreadsheet to use. This is appended to the URL if you view the spreadsheet in your browser.
Making Changes & Contributing
This project uses pre-commit, please make sure to install it before making any changes:
pip install pre-commit cd nvc-dhl-tracker pre-commit install
It is a good idea to update the hooks to the latest version:
pre-commit autoupdate
Don’t forget to tell your contributors to also install and use pre-commit.
Note
This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.
Metadata
Release files for nvc-dhl-tracker 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nvc-dhl-tracker-0.1.15.tar.gz | 31.4 kB | Without provenance | Details for nvc-dhl-tracker-0.1.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nvc_dhl_tracker-0.1.15-py3-none-any.whl | Python 3 | none | any | Details for nvc_dhl_tracker-0.1.15-py3-none-any.whl |
Total release size: 50.2 kB
Release files / nvc-dhl-tracker-0.1.15.tar.gz
| Download URL | nvc-dhl-tracker-0.1.15.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
323b84451d2752d114e17105bb407d8b18352522fedc58f1363b5c100bb204c6
|
|
BLAKE2b-256 checksum How to use checksums |
77f2acff3f475c54443cf96d94b50957355b135f1f6a51be7b1b576fb6ab1c40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / nvc_dhl_tracker-0.1.15-py3-none-any.whl
| Download URL | nvc_dhl_tracker-0.1.15-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ba561338c10112a999c6fd24be7a79357dcf440037289148e2881f158cc1585
|
|
BLAKE2b-256 checksum How to use checksums |
bc6b0a7c35a7d0cb577e8dbd57fb8603577401fca560fb0f30787ec9b1d80e10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for nvc-dhl-tracker 0.1.15
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.