getmyip46


Namegetmyip46 JSON
Version 24.12.28 PyPI version JSON
download
home_pagehttps://github.com/Glocktober/getmyip
Summaryprint the external ip address (v4 or v6)
upload_time2024-12-28 18:41:56
maintainerNone
docs_urlNone
authorgunville
requires_python>=3.6
licenseNone
keywords 'ip network'
VCS
bugtrack_url
requirements requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
## getmyip46 - Get My External IP Address

Retrieve the external ipv4 and/or ipv6 IP address 

## getmyip Command Usage and Options

Install with pip:

```bash
% pip install gitmyip46
```

```bash
% getmyip -h

usage: app.py [-h] [-v] [-4] [-6]

Report external IP address

options:
  -h, --help     show this help message and exit
  -v, --version  show program's version number and exit
  -4, --ipv4     Find public IPv4 address (default)
  -6, --ipv6     Find public IPv6 address

getmyip gunville 2024 v1
```

#### Method of IP address detection:

By default `getmyip` automatically detects the public IP address by sending an HTTP request to [ipv4.icanhazip.com](http://ipv4.icanhazip.com) for IPv4. and [ipv4.icanhazip.com](http://ipv6.icanhazip.com) for IPv6.

You can optionally use a different site to autodetect the public ip by setting the environment variable `IPAPIURL` to that URL:
```bash
% IPAPIURL='http://api.ipify.org'
% getmyip
````
You can do the same for IPv6 using the `IPV6APIURL` environment variable.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Glocktober/getmyip",
    "name": "getmyip46",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "'ip network'",
    "author": "gunville",
    "author_email": "rk13088@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/a2/98109796210925226f9b6f8c8d841e9670cacf6825daf455a1cc92847a83/getmyip46-24.12.28.tar.gz",
    "platform": null,
    "description": "\n## getmyip46 - Get My External IP Address\n\nRetrieve the external ipv4 and/or ipv6 IP address \n\n## getmyip Command Usage and Options\n\nInstall with pip:\n\n```bash\n% pip install gitmyip46\n```\n\n```bash\n% getmyip -h\n\nusage: app.py [-h] [-v] [-4] [-6]\n\nReport external IP address\n\noptions:\n  -h, --help     show this help message and exit\n  -v, --version  show program's version number and exit\n  -4, --ipv4     Find public IPv4 address (default)\n  -6, --ipv6     Find public IPv6 address\n\ngetmyip gunville 2024 v1\n```\n\n#### Method of IP address detection:\n\nBy default `getmyip` automatically detects the public IP address by sending an HTTP request to [ipv4.icanhazip.com](http://ipv4.icanhazip.com) for IPv4. and [ipv4.icanhazip.com](http://ipv6.icanhazip.com) for IPv6.\n\nYou can optionally use a different site to autodetect the public ip by setting the environment variable `IPAPIURL` to that URL:\n```bash\n% IPAPIURL='http://api.ipify.org'\n% getmyip\n````\nYou can do the same for IPv6 using the `IPV6APIURL` environment variable.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "print the external ip address (v4 or v6)",
    "version": "24.12.28",
    "project_urls": {
        "Homepage": "https://github.com/Glocktober/getmyip",
        "overview": "https://github.com/Glocktober/getmyip/blob/master/README.md",
        "repo": "https://github.com/Glocktober/getmyip.git"
    },
    "split_keywords": [
        "'ip",
        "network'"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ccc6213ff2ea68591cae9d3605f71530c4a28aed7f444394a9e4cff0c9f4547",
                "md5": "fd4dd8e4b3bac4768894994c1dbc2879",
                "sha256": "53dbd132df94896cac1bedf75a6b3c8f025019672fcd17de9807b2ea759d9fb8"
            },
            "downloads": -1,
            "filename": "getmyip46-24.12.28-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fd4dd8e4b3bac4768894994c1dbc2879",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4355,
            "upload_time": "2024-12-28T18:41:54",
            "upload_time_iso_8601": "2024-12-28T18:41:54.070339Z",
            "url": "https://files.pythonhosted.org/packages/3c/cc/6213ff2ea68591cae9d3605f71530c4a28aed7f444394a9e4cff0c9f4547/getmyip46-24.12.28-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c2a298109796210925226f9b6f8c8d841e9670cacf6825daf455a1cc92847a83",
                "md5": "bfb3d13c18a3245bc05dcfaa8c13b6fe",
                "sha256": "2a8f4f5ddaaf37edbcf58ff7d195fc26966535e987851ad7802775ec0f286388"
            },
            "downloads": -1,
            "filename": "getmyip46-24.12.28.tar.gz",
            "has_sig": false,
            "md5_digest": "bfb3d13c18a3245bc05dcfaa8c13b6fe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3696,
            "upload_time": "2024-12-28T18:41:56",
            "upload_time_iso_8601": "2024-12-28T18:41:56.385174Z",
            "url": "https://files.pythonhosted.org/packages/c2/a2/98109796210925226f9b6f8c8d841e9670cacf6825daf455a1cc92847a83/getmyip46-24.12.28.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-28 18:41:56",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Glocktober",
    "github_project": "getmyip",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.32.1"
                ]
            ]
        }
    ],
    "lcname": "getmyip46"
}
        
Elapsed time: 1.88197s