A Python module meant for cli use which checks whether you are connected to the Internet.
Project description
is_online
Is Online is a Python module meant for cli use which checks whether you are connected to the Internet. By default it creates a request to Cloudflare's DNS at 1.1.1.1
Note:
Is Online
is only meant to be used as a CLI tool. If you need something to monitor online reachability in your own Python scripts, use Reachability
Installation
You can install is_online from PyPI
pip install is-online
How to use
To use, simply run:
$ is_online
You are Online!
$ is_online --host 4.4.4.4 --port 53 --timeout 53
You are Online!
By default, this checks connectivity against Cloudflare's 1.1.1.1 DNS Server
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
is-online-1.0.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for is_online-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 391b819dc62b7ad25384aa25579130952fdabed290fa5275ce4070ca55783e4d |
|
MD5 | 003e38c8033942c95b4bb84d5969474c |
|
BLAKE2b-256 | 66f242fbae4cb62f5b0c292306a752970432eba309da57674e95f6c7219a282c |