Skip to main content

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.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.3.2.tar.gz (21.0 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.3.2-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for winspot-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d35f0e7440822db5be5a564a01da3f1afc135315259754fc4d62736d1d5d3f34
MD5 20b72e2c1cef332b866299b49dde588e
BLAKE2b-256 6151c9c64a4cfe0e2b973eda4edd3e50192e47feb587f4b3b8b1646e0422b0b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for winspot-0.3.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.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

Hashes for winspot-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3fe184a8c5a1a6734bb61f55dd9d04a531418aad4d77da6db1fd825ce50030e
MD5 e915bc4a5697d1deed7f28a740b60f67
BLAKE2b-256 1963859fa554804d1d4a7d7c856028f7d691405ae3e7dd55e617bfa63afce4a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for winspot-0.3.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