# pyiplocation
[![Downloads](https://static.pepy.tech/badge/pyiplocation)](https://pepy.tech/project/pyiplocation)
A simple python package to geolocate IPs without the need for a paid/limited API.<br>
## Usage
This code snippet :
```py
from pyiplocation import geolocate
geolocate("42.34.78.123")
```
will return a dictionary containing : <br>
- The IP
- The Hostname
- The Continent Code
- The Continent Name
- The Country Codes
- The Country Name
- The Country Capital
- The State/Province
- The District/County
- The City
- The Zip Code
- The City's Latitude
- The City's Longitude
- The Geoname ID
- A Boolean indicating whether or not the IP is in the EU
- The Calling Code
- The Country TLD
- The Country Languages
- The ISP
- The Connection Type
- The Organization
- The AS Number
- The Country's Currency (name, code, symbol)
- The Timezone (name, offset, current time etc..)
### And more!
Raw data
{
"_id": null,
"home_page": "https://github.com/gugu256/gugu256",
"name": "pyiplocation",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "ip location",
"author": "gugu256",
"author_email": "gugu256@mail.com",
"download_url": "https://files.pythonhosted.org/packages/83/c8/49c6299fd4def8a60e1eb6ec51e3a971598f8f5d26d0acd376d94ff3b96b/pyiplocation-1.0.tar.gz",
"platform": null,
"description": "# pyiplocation\r\n\r\n[![Downloads](https://static.pepy.tech/badge/pyiplocation)](https://pepy.tech/project/pyiplocation)\r\n\r\nA simple python package to geolocate IPs without the need for a paid/limited API.<br>\r\n\r\n## Usage\r\n\r\nThis code snippet :\r\n```py\r\nfrom pyiplocation import geolocate\r\n\r\ngeolocate(\"42.34.78.123\")\r\n```\r\nwill return a dictionary containing : <br>\r\n- The IP\r\n- The Hostname\r\n- The Continent Code\r\n- The Continent Name\r\n- The Country Codes\r\n- The Country Name\r\n- The Country Capital\r\n- The State/Province\r\n- The District/County\r\n- The City\r\n- The Zip Code\r\n- The City's Latitude\r\n- The City's Longitude\r\n- The Geoname ID\r\n- A Boolean indicating whether or not the IP is in the EU\r\n- The Calling Code\r\n- The Country TLD\r\n- The Country Languages\r\n- The ISP\r\n- The Connection Type\r\n- The Organization\r\n- The AS Number\r\n- The Country's Currency (name, code, symbol)\r\n- The Timezone (name, offset, current time etc..)\r\n\r\n### And more!\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package for geolocating IPs",
"version": "1.0",
"project_urls": {
"Homepage": "https://github.com/gugu256/pyiplocation"
},
"split_keywords": [
"ip",
"location"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1f28935880de33b0fd679d99a2835f0f13389a9e57739ceb5cdabb229dd69d05",
"md5": "411bdfd4f7d7d194880c6e24dacf1f86",
"sha256": "73029f509ef251f10818d3a64d6d04290f898be88c520a2f1c4632438cb3556c"
},
"downloads": -1,
"filename": "pyiplocation-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "411bdfd4f7d7d194880c6e24dacf1f86",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3311,
"upload_time": "2023-08-06T13:51:17",
"upload_time_iso_8601": "2023-08-06T13:51:17.709873Z",
"url": "https://files.pythonhosted.org/packages/1f/28/935880de33b0fd679d99a2835f0f13389a9e57739ceb5cdabb229dd69d05/pyiplocation-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "83c849c6299fd4def8a60e1eb6ec51e3a971598f8f5d26d0acd376d94ff3b96b",
"md5": "8d2cde6d7b14e01ccbfd4429efc9a1d8",
"sha256": "1609642a3aaff2c0cb4f2517f656b5d568bf1598c3dda9a1c56f71a9b40b1cb8"
},
"downloads": -1,
"filename": "pyiplocation-1.0.tar.gz",
"has_sig": false,
"md5_digest": "8d2cde6d7b14e01ccbfd4429efc9a1d8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3055,
"upload_time": "2023-08-06T13:51:19",
"upload_time_iso_8601": "2023-08-06T13:51:19.569014Z",
"url": "https://files.pythonhosted.org/packages/83/c8/49c6299fd4def8a60e1eb6ec51e3a971598f8f5d26d0acd376d94ff3b96b/pyiplocation-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-06 13:51:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gugu256",
"github_project": "gugu256",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyiplocation"
}