getwinbg
Retrieve Windows background image paths from Python or the command line.
getwinbg is a lightweight Windows utility for accessing the current desktop background path.
Features
- Retrieve the current Windows desktop background path
- Simple Python API
- Command-line interface
- Fully typed package (
py.typed)
Installation
PyPI
pip install getwinbg
From Source
git clone https://github.com/ViratiAkiraNandhanReddy/getwinbg.git
cd getwinbg
pip install .
Usage
CLI
getwinbg background
Example output:
$$\ $$\ $$\
$$ | \__| $$ |
$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$\ $$\ $$$$$$$\ $$$$$$$\ $$$$$$\
$$ __$$\ $$ __$$\\_$$ _| $$ | $$ | $$ |$$ |$$ __$$\ $$ __$$\ $$ __$$\
$$ / $$ |$$$$$$$$ | $$ | $$ | $$ | $$ |$$ |$$ | $$ |$$ | $$ |$$ / $$ |
$$ | $$ |$$ ____| $$ |$$\ $$ | $$ | $$ |$$ |$$ | $$ |$$ | $$ |$$ | $$ |
\$$$$$$$ |\$$$$$$$\ \$$$$ |\$$$$$\$$$$ |$$ |$$ | $$ |$$$$$$$ |\$$$$$$$ |
\____$$ | \_______| \____/ \_____\____/ \__|\__| \__|\_______/ \____$$ |
$$\ $$ | $$\ $$ |
\$$$$$$ | \$$$$$$ |
\______/ \______/
Retrieve Windows background image paths • vX.X.X
╭───────────────────────────────── getwinbg ─────────────────────────────────╮
│ Current desktop background │
│ │
│ C:\Users\User\Pictures\wallpaper.jpg │
╰────────────────────────────────────────────────────────────────────────────╯
Python API
from getwinbg import get_background
path = get_background()
print(path)
Example output:
C:\Users\User\Pictures\wallpaper.jpg
Metadata
Release files for getwinbg 0.1.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 | Actions |
|---|---|---|---|---|
| getwinbg-0.1.2.tar.gz | 12.3 kB | With provenance | Details for getwinbg-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| getwinbg-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for getwinbg-0.1.2-py3-none-any.whl |
Total release size: 19.4 kB
Release files / getwinbg-0.1.2.tar.gz
| Download URL | getwinbg-0.1.2.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b5e9dc1e66932ca00c8269374eafd6bbb9fce42d8665e0148224b9c5d63aec
|
|
BLAKE2b-256 checksum How to use checksums |
5145dcbfe9bfd421a187bd4db6709f968e3e825435459e1281c922069bf3d6c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / getwinbg-0.1.2-py3-none-any.whl
| Download URL | getwinbg-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bab2f0fe1d4fb8bb4f8761797b8f3c05afa7a5edf769c2b0ae653804ed46397
|
|
BLAKE2b-256 checksum How to use checksums |
aaaffc62fb119d69ed5dc6c8ecbf36a3a8f2829ead60d0f5a38a5da622945515
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for getwinbg 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for getwinbg-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.