waitfornet
A stupid simple python module to check whether you are online or not
Synopsis
waitfornet is a stupid simple script, all it does is check whether you are online or not, and optionally wait until you go online.
On production servers, you don't need such a script because you are always online. But on home PCs or laptops, we plebeians aren't always online! We sometimes have to fiddle with our WiFi connections, we may have a wireless router but we forget to switch them on sometimes. What if I have a scheduled cron job to run at that moment such as this:
$> task1 && task2 && task3
The above won't work properly if the tasks are dependent on an internet connection. With waitfornet, you can do something like this:
$> waitfornet -w && task1 && task2 && task3
The first command will wait until you go online and once you do, it will exit and then your other crons can run!
Installation
pip install waitfornet
Usage
-h, --help show this help message and exit
-w, --wait Wait until online, keep trying
Metadata
Release files for waitfornet 1.0.2
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 |
|---|---|---|---|---|
| waitfornet-1.0.2.tar.gz | 2.7 kB | Without provenance | Details for waitfornet-1.0.2.tar.gz |
Release files / waitfornet-1.0.2.tar.gz
| Download URL | waitfornet-1.0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db9e747ee13bfb421cfb3e02534e9476b694f5423e3dcd62b46b6cc8a67acedd
|
|
BLAKE2b-256 checksum How to use checksums |
eed1750db2cb1f409a484e305d7392a5db675c5f21fad50846189df75751057b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6
|
Security for waitfornet 1.0.2
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.