A CLI utility to extract, download, and reset Windows Spotlight and Bing daily images.
Project description
winspot
winspot is a Python utility and command-line tool to export, reset, and download Windows Spotlight images. Additionally, it can download Bing's daily images.
Installation
Install directly from PyPI using pip or pipx:
pip install winspot
# or
pipx install winspot
Or install the latest version from source:
git clone https://github.com/l1asis/winspot.git
cd winspot
pip install .
If you want to download Bing/Spotlight images, make sure to install the optional dependencies:
pip install winspot[dl]
# or from source
pip install .[dl]
Usage
CLI
winspot uses subcommands to organize different operations:
Extract Windows Spotlight
# Save all images (cached, desktop, lockscreen)
winspot extract
# Save only cached images
winspot extract --cached
# Save only desktop image
winspot extract --desktop
# Save only lock screen image
winspot extract --lockscreen
# Save only landscape images with duplicate prevention
winspot extract --orientation landscape --prevent-duplicates
Download Spotlight Images
# Download images from Spotlight API
winspot download
# Download from both API versions (v3 and v4)
winspot download --api-version both
# Download and organize by orientation or resolution
winspot download --orientation both --organize-by orientation
winspot download --orientation both --organize-by resolution
Download Bing Daily Images
# Download today's Bing image in 4K
winspot bing
# Download the last 7 days of images
winspot bing --count 7
# Download in 1080p with specific locale
winspot bing --resolution 1920x1080 --locale de-DE
Reset Windows Spotlight
# Reset with confirmation prompt
winspot --reset
# Force reset without confirmation
winspot --reset --force
For complete help:
winspot --help
winspot extract --help
winspot bing --help
As a Library
import winspot
# Save with default settings (all sources)
winspot.extract_images()
# Save only cached images
winspot.extract_images(desktop=False, lockscreen=False)
# Save only landscape images with duplicate prevention
winspot.extract_images(
orientation="landscape",
prevent_duplicates=True
)
# Save with conflict resolution
winspot.extract_images(
on_conflict="skip", # or "overwrite", "rename"
)
# Download Spotlight API images
winspot.download_images(
orientation="landscape",
organize_by="resolution",
prevent_duplicates=True
)
# Download Bing daily images
winspot.download_bing_daily_images(
count=7,
resolution="3840x2160",
locale="en-US",
prevent_duplicates=True
)
# Reset Windows Spotlight settings
winspot.reset_windows_spotlight()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Acknowledgments
- Thanks to Paulo Scardine for the
get_image_size.pyscript used in this project.
License
Distributed under the MIT License. See LICENSE for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winspot-0.3.2.tar.gz.
File metadata
- Download URL: winspot-0.3.2.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35f0e7440822db5be5a564a01da3f1afc135315259754fc4d62736d1d5d3f34
|
|
| MD5 |
20b72e2c1cef332b866299b49dde588e
|
|
| BLAKE2b-256 |
6151c9c64a4cfe0e2b973eda4edd3e50192e47feb587f4b3b8b1646e0422b0b2
|
Provenance
The following attestation bundles were made for winspot-0.3.2.tar.gz:
Publisher:
publish-to-pypi.yml on l1asis/winspot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winspot-0.3.2.tar.gz -
Subject digest:
d35f0e7440822db5be5a564a01da3f1afc135315259754fc4d62736d1d5d3f34 - Sigstore transparency entry: 953249058
- Sigstore integration time:
-
Permalink:
l1asis/winspot@2d75d64e1cdeee006d2aaffee65d50ff462b5bd4 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/l1asis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d75d64e1cdeee006d2aaffee65d50ff462b5bd4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file winspot-0.3.2-py3-none-any.whl.
File metadata
- Download URL: winspot-0.3.2-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3fe184a8c5a1a6734bb61f55dd9d04a531418aad4d77da6db1fd825ce50030e
|
|
| MD5 |
e915bc4a5697d1deed7f28a740b60f67
|
|
| BLAKE2b-256 |
1963859fa554804d1d4a7d7c856028f7d691405ae3e7dd55e617bfa63afce4a9
|
Provenance
The following attestation bundles were made for winspot-0.3.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on l1asis/winspot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winspot-0.3.2-py3-none-any.whl -
Subject digest:
c3fe184a8c5a1a6734bb61f55dd9d04a531418aad4d77da6db1fd825ce50030e - Sigstore transparency entry: 953249060
- Sigstore integration time:
-
Permalink:
l1asis/winspot@2d75d64e1cdeee006d2aaffee65d50ff462b5bd4 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/l1asis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@2d75d64e1cdeee006d2aaffee65d50ff462b5bd4 -
Trigger Event:
push
-
Statement type: