| Name | python-geoacumen-city JSON |
| Version |
2023.4.15
JSON |
| download |
| home_page | |
| Summary | Library to access/distribute DB-IP IP to City Lite Database |
| upload_time | 2023-04-15 04:20:20 |
| maintainer | |
| docs_url | None |
| author | Kevin Chung |
| requires_python | |
| license | Apache 2.0 |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# python-geoacumen-city
## Installation
```
pip install python-geoacumen-city
```
## Usage
```
>>> import geoacumen_city
>>> import maxminddb
>>> reader = maxminddb.open_database(geoacumen_city.db_path)
>>> reader.get("1.1.1.1")
{'city': {'names': {'en': 'Sydney'}},
'continent': {'code': 'OC',
'geoname_id': 6255151,
'names': {'de': 'Ozeanien',
'en': 'Oceania',
'es': 'Oceanía',
'fa': 'اقیانوسیه',
'fr': 'Océanie',
'ja': 'オセアニア',
'ko': '오세아니아',
'pt-BR': 'Oceania',
'ru': 'Океания',
'zh-CN': '大洋洲'}},
'country': {'geoname_id': 2077456,
'is_in_european_union': False,
'iso_code': 'AU',
'names': {'de': 'Australien',
'en': 'Australia',
'es': 'Australia',
'fa': 'استرالیا',
'fr': 'Australie',
'ja': 'オーストラリア',
'ko': '오스트레일리아',
'pt-BR': 'Austrália',
'ru': 'Австралия',
'zh-CN': '澳大利亚'}},
'location': {'latitude': -33.8688, 'longitude': 151.209},
'subdivisions': [{'names': {'en': 'New South Wales'}}]}
>>>
```
Note that you must still comply with the requirements of the DB-IP license specified here: https://db-ip.com/db/download/ip-to-city-lite
That is the following:
> You are free to use this IP to City Lite database in your application, provided you give attribution to DB-IP.com for the data.
>
> In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet below into your code :
>
> `<a href='https://db-ip.com'>IP Geolocation by DB-IP</a>`
Raw data
{
"_id": null,
"home_page": "",
"name": "python-geoacumen-city",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Kevin Chung",
"author_email": "kchung@nyu.edu",
"download_url": "https://files.pythonhosted.org/packages/08/d3/8b446b53e0f305f380850e2c8f7100ea5bbacdf6a250e82d0a78bbb1d05e/python-geoacumen-city-2023.4.15.tar.gz",
"platform": null,
"description": "# python-geoacumen-city\n\n## Installation\n\n```\npip install python-geoacumen-city\n```\n\n## Usage\n\n```\n>>> import geoacumen_city\n>>> import maxminddb\n>>> reader = maxminddb.open_database(geoacumen_city.db_path)\n>>> reader.get(\"1.1.1.1\")\n{'city': {'names': {'en': 'Sydney'}},\n 'continent': {'code': 'OC',\n 'geoname_id': 6255151,\n 'names': {'de': 'Ozeanien',\n 'en': 'Oceania',\n 'es': 'Ocean\u00eda',\n 'fa': '\u0627\u0642\u06cc\u0627\u0646\u0648\u0633\u06cc\u0647',\n 'fr': 'Oc\u00e9anie',\n 'ja': '\u30aa\u30bb\u30a2\u30cb\u30a2',\n 'ko': '\uc624\uc138\uc544\ub2c8\uc544',\n 'pt-BR': 'Oceania',\n 'ru': '\u041e\u043a\u0435\u0430\u043d\u0438\u044f',\n 'zh-CN': '\u5927\u6d0b\u6d32'}},\n 'country': {'geoname_id': 2077456,\n 'is_in_european_union': False,\n 'iso_code': 'AU',\n 'names': {'de': 'Australien',\n 'en': 'Australia',\n 'es': 'Australia',\n 'fa': '\u0627\u0633\u062a\u0631\u0627\u0644\u06cc\u0627',\n 'fr': 'Australie',\n 'ja': '\u30aa\u30fc\u30b9\u30c8\u30e9\u30ea\u30a2',\n 'ko': '\uc624\uc2a4\ud2b8\ub808\uc77c\ub9ac\uc544',\n 'pt-BR': 'Austr\u00e1lia',\n 'ru': '\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u044f',\n 'zh-CN': '\u6fb3\u5927\u5229\u4e9a'}},\n 'location': {'latitude': -33.8688, 'longitude': 151.209},\n 'subdivisions': [{'names': {'en': 'New South Wales'}}]}\n>>>\n```\n\nNote that you must still comply with the requirements of the DB-IP license specified here: https://db-ip.com/db/download/ip-to-city-lite\n\nThat is the following:\n\n> You are free to use this IP to City Lite database in your application, provided you give attribution to DB-IP.com for the data.\n>\n> In the case of a web application, you must include a link back to DB-IP.com on pages that display or use results from the database. You may do it by pasting the HTML code snippet below into your code :\n>\n> `<a href='https://db-ip.com'>IP Geolocation by DB-IP</a>`\n\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Library to access/distribute DB-IP IP to City Lite Database",
"version": "2023.4.15",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f5b8829cd8219ca85be2396907e843d968bcbfb7082b6865eabef509adbf9baf",
"md5": "24584c00542cb283774e700d8c445edc",
"sha256": "3b7ecd4072b97a9a3d68ac8eff2ac855aa3d8188f89892b01df8c6bf572a4a73"
},
"downloads": -1,
"filename": "python_geoacumen_city-2023.4.15-py3-none-any.whl",
"has_sig": false,
"md5_digest": "24584c00542cb283774e700d8c445edc",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 48810736,
"upload_time": "2023-04-15T04:20:15",
"upload_time_iso_8601": "2023-04-15T04:20:15.121828Z",
"url": "https://files.pythonhosted.org/packages/f5/b8/829cd8219ca85be2396907e843d968bcbfb7082b6865eabef509adbf9baf/python_geoacumen_city-2023.4.15-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "08d38b446b53e0f305f380850e2c8f7100ea5bbacdf6a250e82d0a78bbb1d05e",
"md5": "98f24d1a56779e20f371c62bbd804672",
"sha256": "7be290b86d12884fb2c65a359fde499e7a9ec9fdcb7e988321ae4fac5c6a0b54"
},
"downloads": -1,
"filename": "python-geoacumen-city-2023.4.15.tar.gz",
"has_sig": false,
"md5_digest": "98f24d1a56779e20f371c62bbd804672",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 48508378,
"upload_time": "2023-04-15T04:20:20",
"upload_time_iso_8601": "2023-04-15T04:20:20.838847Z",
"url": "https://files.pythonhosted.org/packages/08/d3/8b446b53e0f305f380850e2c8f7100ea5bbacdf6a250e82d0a78bbb1d05e/python-geoacumen-city-2023.4.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-15 04:20:20",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "python-geoacumen-city"
}