{"id":23977239,"url":"https://github.com/ijsbol/pygeolocate","last_synced_at":"2025-04-14T00:51:19.373Z","repository":{"id":65960442,"uuid":"603495656","full_name":"ijsbol/pygeolocate","owner":"ijsbol","description":"Get a countries geolocation from its name / country code.","archived":false,"fork":false,"pushed_at":"2023-11-16T13:46:13.000Z","size":83,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T02:08:34.272Z","etag":null,"topics":["geolocation","geolocation-api","python"],"latest_commit_sha":null,"homepage":"https://git.uwu.gal/pygeolocate","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ijsbol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Isabe1le","ko_fi":"uwugal","custom":"pay.1sabelle.dev"}},"created_at":"2023-02-18T17:30:36.000Z","updated_at":"2025-01-31T20:30:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"50dda529-1f6f-44b3-86c1-35d9399489c9","html_url":"https://github.com/ijsbol/pygeolocate","commit_stats":null,"previous_names":["isabe1le/pygeolocate","scrumpyy/pygeolocate","ijsbol/pygeolocate"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijsbol%2Fpygeolocate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijsbol%2Fpygeolocate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijsbol%2Fpygeolocate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ijsbol%2Fpygeolocate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ijsbol","download_url":"https://codeload.github.com/ijsbol/pygeolocate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804773,"owners_count":21164131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geolocation","geolocation-api","python"],"created_at":"2025-01-07T07:29:59.198Z","updated_at":"2025-04-14T00:51:19.345Z","avatar_url":"https://github.com/ijsbol.png","language":"Python","funding_links":["https://github.com/sponsors/Isabe1le","https://ko-fi.com/uwugal","pay.1sabelle.dev"],"categories":[],"sub_categories":[],"readme":"\n# pygeolocate\n \n`pip install -U pygeolocate` or `python -m pip install -U pygeolocate`\n|  |  |\n|--|--|\n| \u003cimg align=\"center\" src=\"https://i.imgur.com/g3Euo2M.png\" height=\"128\" width=\"128\"/\u003e | \u003cimg align=\"center\" src=\"https://img.shields.io/pypi/dm/pygeolocate?style=for-the-badge\"/\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/github/license/scrumpyy/pygeolocate?style=for-the-badge\"/\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/github/issues/scrumpyy/pygeolocate?style=for-the-badge\"/\u003e\u003cbr\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/github/stars/scrumpyy/pygeolocate?style=for-the-badge\"/\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/pypi/v/pygeolocate?style=for-the-badge\"/\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/pypi/pyversions/pygeolocate?style=for-the-badge\"/\u003e |\n\nSupport server: \u003ca href=\"https://discord.gg/v9Y8Yq2k5D\" target=\"_blank\"\u003e\n  \u003cimg draggable=\"false\" style=\"width:119xp;height:20xp;\" src=\"https://discord.com/api/guilds/1103834986194415637/embed.png\"\u003e\n\u003c/a\u003e\n\n## What is pygeolocate?\nPygeolocate is a simple Python module that allows for developers to get the longitude and latitude coordinates of the geographical center of a country based on Googles dataset.\n\nPygeolocate also allows for developers to search for countries based on their country code (and vice versa) as well as search for partial country names.\n\n## Get a country by its full name\n```python\n# pygeolocate/examples/get_country_by_full_name.py\nimport pygeolocate\n\nunited_kingdom = pygeolocate.locate_by_name(\"united kingdom\")[0]\n\nprint(united_kingdom)\nprint(united_kingdom.name)\nprint(united_kingdom.coordinates)\nprint(united_kingdom.coordinates[0])\nprint(united_kingdom.coordinates['long'])\n```\n\n## Get a country by part of its name\n```python\n# pygeolocate/examples/get_country_by_partial_name.py\n\nimport pygeolocate\n\nfor country in pygeolocate.locate_by_name(\"united\"):\n    print(country)\n    print(country.name)\n    print(country.coordinates)\n    print(country.coordinates[0])\n    print(country.coordinates['long'])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijsbol%2Fpygeolocate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fijsbol%2Fpygeolocate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fijsbol%2Fpygeolocate/lists"}