Skip to main content

pygeolocate

pip install pygeolocate

Get a country by its full name

# pygeolocate/examples/get_country_by_full_name.py
import pygeolocate

united_kingdom = pygeolocate.locate_by_name("united kingdom")[0]

print(country)
print(country.name)
print(country.coordinates)
print(country.coordinates[0])
print(country.coordinates['long'])

Get a country by part of its name

# pygeolocate/examples/get_country_by_partial_name.py

import pygeolocate

for country in pygeolocate.locate_by_name("united"):
    print(country)
    print(country.name)
    print(country.coordinates)
    print(country.coordinates[0])
    print(country.coordinates['long'])

Metadata

Release files for pygeolocate 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygeolocate 1.0.11
File Size Uploaded
pygeolocate-1.0.11.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pygeolocate 1.0.11
File Interpreter ABI Platform
pygeolocate-1.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / pygeolocate-1.0.11.tar.gz

Download URL pygeolocate-1.0.11.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d8d0ff0d80d43ba482cefa7a68f0f4eebdf18d75fc7f953d2f4bfb3a46a1662
BLAKE2b-256 checksum
How to use checksums
e8af8fa414fb2bce62fffa58d44dcbc96b15127e85c1d2f1339a142e7a75c469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / pygeolocate-1.0.11-py3-none-any.whl

Download URL pygeolocate-1.0.11-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9cbef5ea29d166e3f20de9544390172a2fec4e8740a1af32609b9282e9a23fd4
BLAKE2b-256 checksum
How to use checksums
ce628f3255d63083fd84d1f5b8d2dd6698e6ddb9bb6632c52bc0c1579f4f3b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.11 This release

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page