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
- ???
Metadata
Release files for autowallpaper 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| autowallpaper-0.0.2.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autowallpaper-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / autowallpaper-0.0.2.tar.gz
| Download URL | autowallpaper-0.0.2.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99372e21a3abff31150b10a1de70d61e355f4fa6a6eeb3c0a6079b9cf9e71a45
|
|
BLAKE2b-256 checksum How to use checksums |
30cb3e9ee216da150a9ced8e47ecf0a40c317a8793e79a7f4e920a2ce7399d1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / autowallpaper-0.0.2-py3-none-any.whl
| Download URL | autowallpaper-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b150744212b3bd3c1b191c2dc69f2c4d1f00cf3d4158240d26f0121eb603117
|
|
BLAKE2b-256 checksum How to use checksums |
68a80b3327b4b03f729a0a848ccb406840199aa0586bba2579e8efbf595dd319
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for autowallpaper 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.