Package that helps you create your own wallpaper changing service
Project description
autowallpaper
A python module that allows you to create your own wallpaper setting service.
Installation
$ pip install autowallpaper
Basic Usage
- Create a new Python file.
- In the file, write your own function (say,
my_image_function()).This function should return the URL or file path of the image to be set as wallpaper. This function will be called every time the wallpaper is to be changed. - Create an object of
AutoWallpaperwith your function as the argument. - Run it with
from autowallpaper import AutoWallpaper autowallpaper = AutoWallpaper( my_image_function, # other arguments ) autowallpaper.start() # Starts the daemon autowallpaper.restart() # Restarts the daemon autowallpaper.stop() # Stops the daemon
- (OPTIONAL) You can extend class
AutoWallpaperand overriderun()to make your own scheduler, that changes wallpaper more frequently, less frequently, etc.
You can change where downloaded images and logs are stored using arguments to AutoWallpaper.
Demo - NASA APOD
A working demo implementation is available in demo/nasa_wallpaper.py. This changes the wallpaper every 24 hours to the image featured on NASA's Astronomy Picture of the Day.
Usage
- Get an API key from the NASA API website. Save it in a file or just copy it.
- Move
demo/nasa_wallpaper.pyin the parent directory (so the imports work fine). - Run using
$ python nasa_wallpaper.py -k [KEY | PATH_TO_KEYFILE] start|stop|restart - Use
$ python nasa_wallpaper.py -hto see additional options
TODOs
- Add support to source automatically from a folder
- Simplify command for demo
- Add option to save all downloaded images instead of only the latest one
- Make logging optional
- Change paths for Windows
- Test Windows and Linux environments
- Add support for more environments
- ???
Project details
Release history Release notifications | RSS feed
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 autowallpaper-0.0.1.tar.gz.
File metadata
- Download URL: autowallpaper-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f9740d1840dbfa9c1ef48ca15c6fc4012a0faed54d2ff72db879b99c0bc65b
|
|
| MD5 |
eb3ad0202d160197520d892c117b4e61
|
|
| BLAKE2b-256 |
5c5aa6331781d25b262984f9b2e19b4da8c944ae086b4b7c9e7157c66fe94362
|
File details
Details for the file autowallpaper-0.0.1-py3-none-any.whl.
File metadata
- Download URL: autowallpaper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a64a9cca05ce18291d3e9e0e016051084b2a679e93794b6bff9ca290383be1
|
|
| MD5 |
3a67ad6f611dbbccc00b94d2857d08c3
|
|
| BLAKE2b-256 |
905c2f25cea69a70c0b3a185b9da315c730678b88c236b088a352ea3ae6b216e
|