python-earth-view
Google Earth View is a gallery of at least 2,604 visually appealing satellite images. Each has a resolution of 1800x1200, making them suitable wallpapers or placeholder images. For example, there's a Chrome extension that displays a new Earth View image each time you open a new tab, and a GNOME extension that regularly sets the wallpaper to a new Earth View image.
I wrote this package to make it a little bit easier to hit the ground running with Earth View images. It provides a command-line tool and Python API that make it easy to download images and access their metadata.
How to use
In Python
from earth_view import EarthViewImage
By default, initializing an EarthViewImage will download a random image:
>>> my_image = EarthViewImage()
>>> print(my_image.geocode("establishment"])
Volcán Isluga National Park
If you want, you can request a specific image ID:
# id parameter can be int or str
specific_image = EarthViewImage(1004)
Save it for later:
# if you don't specify path, default is your current working directory
EarthViewImage().save(path="/home/user/Desktop")
Command-line
The earth-view command makes it easy to download a new Earth View image.
# download a random image to the current directory
earth-view
# download a specific image to your Downloads folder, overwriting if file exists
earth-view ~/Downloads --id 1004 --overwrite
A word of warning
This package entirely relies on a free service hosted by Google. At any time, Google may decide to end the service. Enjoy it while it's here.
Contributing
Feel free to file an issue, submit a pull request, or reach out to me directly. I'd love to hear from you.
License
This code is licensed under GPLv3 or any later version. See LICENSE.md for more information.
Metadata
Release files for earth-view-api 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| earth_view_api-0.0.1.tar.gz | 35.3 kB | Without provenance | Details for earth_view_api-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| earth_view_api-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for earth_view_api-0.0.1-py3-none-any.whl |
Total release size: 70.3 kB
Release files / earth_view_api-0.0.1.tar.gz
| Download URL | earth_view_api-0.0.1.tar.gz |
|---|---|
| Size | 35.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ab20148a2001c92a978d90c16a90f0ac221d4e36d39d85ad28cf050ed4b2be5
|
|
BLAKE2b-256 checksum How to use checksums |
ec58d38829508c11be5447fd7cf78cc6d791e3575c215bf62ab5940d31750fc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / earth_view_api-0.0.1-py3-none-any.whl
| Download URL | earth_view_api-0.0.1-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa9b6120bb31538cc01d22a0047ea415d7c5ac834fd3b8cd5ba2f45e71140aee
|
|
BLAKE2b-256 checksum How to use checksums |
46caea1831d41e1d94c5ed4e97675a1e5f08203a0e9e47594bad2b2fb6afa022
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for earth-view-api 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.