Change your wallpaper every day
Project description
wallme
Description
Wallme is a python tool to change your wallpaper every day based on websites. You can check WEBSITES.md for a full list ad supported websites (comming soon).
From GUI
Install
Download the latest release on github.
Usage
Double click the exe file to open the GUI.
From CLI
Install / Update
From PyPi :
pip install wallme -U
Uninstall
pip uninstall wallme
Usage
Open the GUI:
wallme
Display the help:
wallme -h
List all the available websites:
wallme -list
Open the webpage on which the image is taken from:
wallme -info <website>
Retrieve the image url from the website:
wallme -url <website>
Change the wallpaper:
wallme -set <website>
Change your wallpaper on startup:
wallme -set-startup <website>
Stop changing your wallpaper on startup:
wallme -unset-startup
Prank your friends:
wallme -prank
Contribute by adding a new website
-
Fork
-
Create a new branch and checkout
-
Create a new file from template
# coding: utf8
from .website import Website
class Nasa(Website):
key = 'nasa'
description = 'Pictures related to Nasa\'s missions'
url = 'https://www.nasa.gov/multimedia/imagegallery/iotd.html'
def process(self, date, subkey):
json = self.get_json_from_url('https://www.nasa.gov/api/2/ubernode/_search?size=1&from=0&sort=promo-date-time%3Adesc&q=((ubernode-type%3Aimage)%20AND%20(routes%3A1446))&_source_include=promo-date-time%2Cmaster-image%2Cnid%2Ctitle%2Ctopics%2Cmissions%2Ccollections%2Cother-tags%2Cubernode-type%2Cprimary-tag%2Csecondary-tag%2Ccardfeed-title%2Ctype%2Ccollection-asset-link%2Clink-or-attachment%2Cpr-leader-sentence%2Cimage-feature-caption%2Cattachments%2Curi')
uri = json['hits']['hits'][0]['_source']['master-image']['uri']
return "https://www.nasa.gov/sites/default/files/styles/full_width_feature/public/" + uri.replace("public://", "")
-
Import your file in
__init__.py -
Create a new test from template
# coding: utf8
from .test_website import TestWebsite
class TestNasa(TestWebsite):
def test_info(self):
self._test_info("nasa")
def test_url(self):
self._test_url("nasa")
def test_set(self):
self._test_set("nasa")
def test_set_unset_startup(self):
self._test_set_unset_startup("nasa")
- Test your code by calling
pytest test/test_nasa.py
- Commit and pull request
Contact
Please contact @LucBerge for more informations.
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 wallme-1.7.tar.gz.
File metadata
- Download URL: wallme-1.7.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f337ad06edc9be10e0306f0a19887b621fb787aa6b8616f0791e44280f90cf4a
|
|
| MD5 |
cd57edadd527e31b1c08cefbcac6085d
|
|
| BLAKE2b-256 |
5b764f7506e0bc6eca3cdc50da6412d8b406931242f8748a25f8f775be10b530
|
File details
Details for the file wallme-1.7-py3-none-any.whl.
File metadata
- Download URL: wallme-1.7-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
170adcf2f2711872ac92df2cc001ad16b639f3a39ccae746c42b7a9085d1342c
|
|
| MD5 |
64633b27766a189259eb2c17ac497941
|
|
| BLAKE2b-256 |
89d19eabf54b4d86dabe8293457e23ed4508480843c30302726de70bd3b72e7c
|