Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ecno92/myip
CLI tool which displays your public IP / Experimental project
https://github.com/ecno92/myip
cli-app docker ip make pipenv python3 travis-ci
Last synced: 2 months ago
JSON representation
CLI tool which displays your public IP / Experimental project
- Host: GitHub
- URL: https://github.com/ecno92/myip
- Owner: Ecno92
- License: other
- Created: 2018-06-27T19:21:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:34:54.000Z (about 2 years ago)
- Last Synced: 2024-08-10T20:01:16.273Z (5 months ago)
- Topics: cli-app, docker, ip, make, pipenv, python3, travis-ci
- Language: Python
- Homepage:
- Size: 96.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# whatsmyip | myip
[![Build Status](https://travis-ci.org/Ecno92/myip.svg?branch=master)](https://travis-ci.org/Ecno92/myip)
[![pypi release](https://img.shields.io/pypi/v/whatsmyip.svg)](https://pypi.org/project/whatsmyip/)
[![Coverage Status](https://coveralls.io/repos/github/Ecno92/myip/badge.svg?branch=master)](https://coveralls.io/github/Ecno92/myip?branch=master)## Installation and usage
As a CLI tool:
```
$ pip3 install whatsmyip
$ myip
240.0.0.0
```As a library:
```
>>> from whatsmyip.ip import get_ip
>>> from whatsmyip.providers import GoogleDnsProvider # Or any other provider
>>> get_ip(GoogleDnsProvider)
'240.0.0.0'
```## Supported providers
* Google DNS
* httpbin.org
* Cloudflare
- DNS
- HTTP## Goal of this project
The goal of this project is not to become the best tool to check your IP address.
In that case I recommend you to use something more simple like:`curl https://httpbin.org/ip`
I've developed this project to have something simple to experiment with when explorering new ideas or techniques.