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)
| File | Size | Uploaded | |
|---|---|---|---|
| pygeolocate-1.0.11.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|