Skip to main content

A CLI utility to export and reset Windows Spotlight 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 .

Usage

CLI

winspot uses subcommands to organize different operations:

Extract Windows Spotlight

# Save all wallpapers (cached, desktop, lockscreen)
winspot extract

# Save only cached wallpapers
winspot extract --cached

# Save only desktop wallpaper
winspot extract --desktop

# Save only lock screen wallpaper
winspot extract --lockscreen

# Save only landscape wallpapers with duplicate prevention
winspot extract --orientation landscape --prevent-duplicates

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_wallpapers()

# Save only cached wallpapers
winspot.extract_wallpapers(desktop=False, lockscreen=False)

# Save only landscape wallpapers with duplicate prevention
winspot.extract_wallpapers(
    orientation="landscape",
    prevent_duplicates=True
)

# Save with conflict resolution
winspot.extract_wallpapers(
    on_conflict="skip",  # or "overwrite", "rename"
)

# 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.py script 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

winspot-0.2.2.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winspot-0.2.2-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file winspot-0.2.2.tar.gz.

File metadata

  • Download URL: winspot-0.2.2.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for winspot-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0b8053b4f1ca84c0e89c385824509f37047c8c06769af4f2800e4e6d39760c6f
MD5 78403c811ca451543b2db3a08aabd0e3
BLAKE2b-256 387da9e4801940e2495befbb146b604a321764e39a70e1c7d57ac4f75cb6c7fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for winspot-0.2.2.tar.gz:

Publisher: publish-to-pypi.yml on l1asis/winspot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winspot-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: winspot-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for winspot-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4784d68c03ba5ec90ac9a2b35fc3f80da39a30b996b1df11aaf46c26506ac290
MD5 91341fc956417c9b97c04c902ab0a003
BLAKE2b-256 7b95189bacea9f8c7d360cb1614aef34b3569a009a18614773d6501124c74828

See more details on using hashes here.

Provenance

The following attestation bundles were made for winspot-0.2.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on l1asis/winspot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page