Name | getownip JSON |
Version |
0.0.5
JSON |
| download |
home_page | |
Summary | Get your own ip address |
upload_time | 2023-12-28 22:09:07 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.5 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# getownip - A python script to determine your ip address
Example:
```python
import getownip
print("public IPv4: " + getownip.get(getownip.Public, getownip.IPv4))
print("local IPv6: " + getownip.get(getownip.Local, getownip.IPv6))
```
To retrieve a local ip address, a default route must exist. Otherwise, `None` is returned.
When retrieving a public ip address, a random one of a list of servers is accessed.
Currently, the following list of servers is used:
| service | IPv4 | IPv6 |
|---------------|------|------|
| getmyip.dev | yes | yes |
| icanhazip.com | yes | yes |
| ident.me | yes | yes |
| ipaddress.com | yes | |
| ipify.org | yes | yes |
| ipinfo.io | yes | yes |
| ipy.ch | yes | |
| l2.io | yes | |
| meineipv6.de | yes | yes |
| my-ip.io | yes | yes |
| seeip.org | yes | yes |
| tnedi.me | yes | yes |
If one of these services fails to answer, another one will be tried until every service has failed.
In this case, the last occurred exception will be thrown.
Raw data
{
"_id": null,
"home_page": "",
"name": "getownip",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Lukas F\u00fcrderer <l.fuerderer@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/a7/cb/dbf89fff334f73916e82247a87937b2018f5e039a149d470baa08551aa22/getownip-0.0.5.tar.gz",
"platform": null,
"description": "# getownip - A python script to determine your ip address\n\nExample:\n\n```python\nimport getownip\nprint(\"public IPv4: \" + getownip.get(getownip.Public, getownip.IPv4))\nprint(\"local IPv6: \" + getownip.get(getownip.Local, getownip.IPv6))\n```\n\nTo retrieve a local ip address, a default route must exist. Otherwise, `None` is returned.\n\nWhen retrieving a public ip address, a random one of a list of servers is accessed.\nCurrently, the following list of servers is used:\n\n| service | IPv4 | IPv6 |\n|---------------|------|------|\n| getmyip.dev | yes | yes |\n| icanhazip.com | yes | yes |\n| ident.me | yes | yes |\n| ipaddress.com | yes | |\n| ipify.org | yes | yes |\n| ipinfo.io | yes | yes |\n| ipy.ch | yes | |\n| l2.io | yes | |\n| meineipv6.de | yes | yes |\n| my-ip.io | yes | yes |\n| seeip.org | yes | yes |\n| tnedi.me | yes | yes |\n\nIf one of these services fails to answer, another one will be tried until every service has failed.\nIn this case, the last occurred exception will be thrown.\n",
"bugtrack_url": null,
"license": "",
"summary": "Get your own ip address",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://gitlab.com/lfuerderer1/getownip"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d264533a2a87bf28294cf6e9085305f8ffa01498f708aacb5829df43944b991e",
"md5": "806758d2db5fd3a6ac38e62673f8be51",
"sha256": "ef4f590c439de4979d0245d1c6608a901bb00982100b8bf5656a6e27c229c3ec"
},
"downloads": -1,
"filename": "getownip-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "806758d2db5fd3a6ac38e62673f8be51",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 4179,
"upload_time": "2023-12-28T22:09:06",
"upload_time_iso_8601": "2023-12-28T22:09:06.327017Z",
"url": "https://files.pythonhosted.org/packages/d2/64/533a2a87bf28294cf6e9085305f8ffa01498f708aacb5829df43944b991e/getownip-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a7cbdbf89fff334f73916e82247a87937b2018f5e039a149d470baa08551aa22",
"md5": "da1e63196415f1713c3b0d78a0428b30",
"sha256": "74e890a61b307ef8809aae5c4634954a0c57c3fd5a22142ee5fb981910361f53"
},
"downloads": -1,
"filename": "getownip-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "da1e63196415f1713c3b0d78a0428b30",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 3163,
"upload_time": "2023-12-28T22:09:07",
"upload_time_iso_8601": "2023-12-28T22:09:07.991420Z",
"url": "https://files.pythonhosted.org/packages/a7/cb/dbf89fff334f73916e82247a87937b2018f5e039a149d470baa08551aa22/getownip-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-28 22:09:07",
"github": false,
"gitlab": true,
"bitbucket": false,
"codeberg": false,
"gitlab_user": "lfuerderer1",
"gitlab_project": "getownip",
"lcname": "getownip"
}