Introduction
Now get a hold on the beautiful lock screen wallpapers displayed under the spotlight project for windows 10.Use this tool to either store the cached images in a folder you specify, or get their PIL.Image.Image object to transform them the way you like.
Installation
Install using
pip install spotlightpy
Usage
Windows X operating system is must for executing this module. All the methods reside in “spotlight” submodule of spotlightpy.Firstly, import spotlight
>>> from spotlightpy import spotlight
The spotlight module has two methods.
getimages :
getimages(None) –: List(PIL.Image.Image)
this method returns a list of PIL.Image.Image objects of the cached images with each object representing a spotlight image of resolution 1920*1080.
>>> spotlight.getimages() [<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1920x1080 at 0x34305F0>, <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1920x1080 at 0x3430F70>, <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1920x1080 at 0x1518030>, ...]
- storeimages(destination_path = “C:\spotlight”)
Store the spotlight images from your PC to the path specified by the argument.If no path is provided then a new folder at “C:\spotlight” is constructed and images are stored there.If the given argument does not represent any existing folder then a new folder is created to stores images.If given string does not qualify as valid path for even a new folder or a file already exists with same absolute path, then “ValueError” will be raised.
>>> spotlight.storeimages("C:\\MySpotlightImages")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file spotlightpy-0.6.tar.gz.
File metadata
- Download URL: spotlightpy-0.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54657cf0fbcbeeabe6a37af9d8347946d6ade2bffc113f32dc36d504da721f9a
|
|
| MD5 |
951a68488fc40743335d21a8a373b0a5
|
|
| BLAKE2b-256 |
bfbd973dafcc942a888e0ef833e91ec9e3973d6439e1dcbeba798ba3441c2aa2
|