ipv4v6


Nameipv4v6 JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/myhldh/GetIP
SummaryA model for get ipv4&ipv6 address
upload_time2024-07-21 01:58:53
maintainerNone
docs_urlNone
authorOscarMYH(myhldh)
requires_pythonNone
licenseMIT
keywords python computer vision oscarmyh myhldh lightweight windows mac linux
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Thank you for supporting!

* Function *get_ip()* is used to get your ipv4 address including host and port.

	```

	from ipv4v6 import get_ip

	print(get_ip()) #It'll print something like 117.143.170.80:2653

	```

* Function *get_ipv4()* is used to get your ipv4 address including only host.

	```

	from ipv4v6 import get_ipv4

	print(get_ipv4()) #It'll print something like 117.143.170.80

	```



  **(Tips : If you just want to get ipv4 address, *get_ip()* is a better choice because it's faster than *get_ipv4*)**

 * Function *get_ipv6()* is used to get your ipv6 address including only host.

	 ```

	 from ipv4v6 import get_ipv6

	 print(get_ipv6())

	 #It'll print something like 2409:8a1e:6e81:4280:6456:3051:4f3f:1965

	 ```

 * Function *ip_tuple()* returns a tuple which contains the host and the port of your ipv4 address.

   **(Tips : It can be given to *socket.connect()* as parameter)**

   ```

   from socket import *

   from ipv4v6 import ip_tuple

   sock=socket(AF_INET,SOCK_STREAM)

   sock.connect(ip_tuple())

   ```

* Function *get_ipv4_location()* and *get_ipv6_location* returns the location of your ip address. 

   ```

   from ipv4v6 import get_ipv4_location

   print(get_ipv4_location()) #It'll print the location

   ```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/myhldh/GetIP",
    "name": "ipv4v6",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, computer vision, OscarMYH, myhldh, lightweight, windows, mac, linux",
    "author": "OscarMYH(myhldh)",
    "author_email": "oscarmyh@163.com",
    "download_url": "https://files.pythonhosted.org/packages/39/c2/89502e30e7cd91bf23de1f8be774a0dad0eb38c3d27aa119d7775c3c3e67/ipv4v6-1.1.0.tar.gz",
    "platform": null,
    "description": "\r\n# Thank you for supporting!\r\r\n* Function *get_ip()* is used to get your ipv4 address including host and port.\r\r\n\t```\r\r\n\tfrom ipv4v6 import get_ip\r\r\n\tprint(get_ip()) #It'll print something like 117.143.170.80:2653\r\r\n\t```\r\r\n* Function *get_ipv4()* is used to get your ipv4 address including only host.\r\r\n\t```\r\r\n\tfrom ipv4v6 import get_ipv4\r\r\n\tprint(get_ipv4()) #It'll print something like 117.143.170.80\r\r\n\t```\r\r\n\r\r\n  **(Tips : If you just want to get ipv4 address, *get_ip()* is a better choice because it's faster than *get_ipv4*)**\r\r\n * Function *get_ipv6()* is used to get your ipv6 address including only host.\r\r\n\t ```\r\r\n\t from ipv4v6 import get_ipv6\r\r\n\t print(get_ipv6())\r\r\n\t #It'll print something like 2409:8a1e:6e81:4280:6456:3051:4f3f:1965\r\r\n\t ```\r\r\n * Function *ip_tuple()* returns a tuple which contains the host and the port of your ipv4 address.\r\r\n   **(Tips : It can be given to *socket.connect()* as parameter)**\r\r\n   ```\r\r\n   from socket import *\r\r\n   from ipv4v6 import ip_tuple\r\r\n   sock=socket(AF_INET,SOCK_STREAM)\r\r\n   sock.connect(ip_tuple())\r\r\n   ```\r\r\n* Function *get_ipv4_location()* and *get_ipv6_location* returns the location of your ip address. \r\r\n   ```\r\r\n   from ipv4v6 import get_ipv4_location\r\r\n   print(get_ipv4_location()) #It'll print the location\r\r\n   ```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A model for get ipv4&ipv6 address",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/myhldh/GetIP"
    },
    "split_keywords": [
        "python",
        " computer vision",
        " oscarmyh",
        " myhldh",
        " lightweight",
        " windows",
        " mac",
        " linux"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39c289502e30e7cd91bf23de1f8be774a0dad0eb38c3d27aa119d7775c3c3e67",
                "md5": "8e8e6f9fb59ba41c352ab431875c9fe8",
                "sha256": "12a1aed19850ef9463493eb65d44789d197add11250a2a1ff5835f1bcc2c2159"
            },
            "downloads": -1,
            "filename": "ipv4v6-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8e8e6f9fb59ba41c352ab431875c9fe8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3662,
            "upload_time": "2024-07-21T01:58:53",
            "upload_time_iso_8601": "2024-07-21T01:58:53.698110Z",
            "url": "https://files.pythonhosted.org/packages/39/c2/89502e30e7cd91bf23de1f8be774a0dad0eb38c3d27aa119d7775c3c3e67/ipv4v6-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-21 01:58:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "myhldh",
    "github_project": "GetIP",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ipv4v6"
}
        
Elapsed time: 0.48609s