{ "info": { "author": "Leetao", "author_email": "leetao94cn@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# wallpaper\n\n> Get or set the desktop wallpaper\n\nWorks on macOS 10.12+ and Windows 10+, inspired by [wallpaper node](https://github.com/sindresorhus/wallpaper)\n\n## Install\n\nonly python3 is supported\n\n```\npip install py-wallpaper\n```\n\n## Usage\n\n```python\nfrom wallpaper import get_wallpaper, set_wallpaper\n\n# get current wallpaper's path\nprint(get_wallpaper())\n# /Users/leetao/Workspace/py/wallpaper/tests/bg.jpg # your wallpaper path\n\n# set your photo\nset_wallpaper(\"your photo's path\")\n```\n\n## API\n\n### .get_wallpaper(options?)\n\nReturns the path of the current desktop wallpaper.\n\n#### options\n\nType: `object`\n\n##### screen *(macOS only)*\n\nType: `string | number`
\nValues: `'all'`, `'main'`, or the index of a screen from `.screens()`
\nDefault: `'main'`\n\nThe screen to get the wallpaper from.\n\nIf you set `'all'` then `.get_wallpaper` will return a list.\n\n### .set_wallpaper(imagePath, options?)\n\nReturns a object.\n\n#### imagePath\n\nType: `string`\n\nThe path to the image to set as the desktop wallpaper.\n\n#### options\n\nType: `object`\n\n##### screen *(macOS only)*\n\nType: `string | number`
\nValues: `'all'`, `'main'`, or the index of a screen from `.screens()`\nDefault: `'all'`\n\nThe screen to set the wallpaper on.\n\n##### scale *(macOS only)*\n\nType: `string`
\nValues: `'auto' | 'fill' | 'fit' | 'stretch' | 'center'`
\nDefault: `'auto'`\n\nScaling method.\n\n## TODO\n\nwallpaper on Linux\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.leetao94.cn", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "py-wallpaper", "package_url": "https://pypi.org/project/py-wallpaper/", "platform": "", "project_url": "https://pypi.org/project/py-wallpaper/", "project_urls": { "Homepage": "https://www.leetao94.cn" }, "release_url": "https://pypi.org/project/py-wallpaper/0.0.1/", "requires_dist": null, "requires_python": ">=3.0.*", "summary": "Python wallpaper for Humans.", "version": "0.0.1" }, "last_serial": 5662039, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5b98fd848f2cc806138e5b26284cf7e5", "sha256": "24765fe7876e5ce7736c8214ba9d883ddd9363542a95ac2ee736a42915878a0b" }, "downloads": -1, "filename": "py_wallpaper-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5b98fd848f2cc806138e5b26284cf7e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0.*", "size": 3654622, "upload_time": "2019-08-11T12:35:10", "url": "https://files.pythonhosted.org/packages/cb/ad/49ba39a271cf9e171ce3de1b9ad2ca071b971161b9ead7853ac64feabd30/py_wallpaper-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2001e6e52f21af3c4dd0615f7f18f4e4", "sha256": "e0d8fb7748d87fa48761489f0dfa69c033c420b893280523292bcdc60784d5be" }, "downloads": -1, "filename": "py-wallpaper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2001e6e52f21af3c4dd0615f7f18f4e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0.*", "size": 2575, "upload_time": "2019-08-11T12:35:13", "url": "https://files.pythonhosted.org/packages/3b/28/aabb3f9d566fe40fd839727f51c1db5393a0ea02193572e1877e48216d2f/py-wallpaper-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5b98fd848f2cc806138e5b26284cf7e5", "sha256": "24765fe7876e5ce7736c8214ba9d883ddd9363542a95ac2ee736a42915878a0b" }, "downloads": -1, "filename": "py_wallpaper-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5b98fd848f2cc806138e5b26284cf7e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0.*", "size": 3654622, "upload_time": "2019-08-11T12:35:10", "url": "https://files.pythonhosted.org/packages/cb/ad/49ba39a271cf9e171ce3de1b9ad2ca071b971161b9ead7853ac64feabd30/py_wallpaper-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2001e6e52f21af3c4dd0615f7f18f4e4", "sha256": "e0d8fb7748d87fa48761489f0dfa69c033c420b893280523292bcdc60784d5be" }, "downloads": -1, "filename": "py-wallpaper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "2001e6e52f21af3c4dd0615f7f18f4e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0.*", "size": 2575, "upload_time": "2019-08-11T12:35:13", "url": "https://files.pythonhosted.org/packages/3b/28/aabb3f9d566fe40fd839727f51c1db5393a0ea02193572e1877e48216d2f/py-wallpaper-0.0.1.tar.gz" } ] }