Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getwinbg 0.1.1
File Size Uploaded Provenance Actions
getwinbg-0.1.1.tar.gz 10.6 kB With provenance Details for getwinbg-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getwinbg 0.1.1
File Interpreter ABI Platform Actions
getwinbg-0.1.1-py3-none-any.whl Python 3 none any Details for getwinbg-0.1.1-py3-none-any.whl

Total release size: 16.9 kB

Release files / getwinbg-0.1.1.tar.gz

Download URL getwinbg-0.1.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
03f10b6563a2b0dbd24882ca814bab1c188da3cefac6966a1cf7c84490809267
BLAKE2b-256 checksum
How to use checksums
05753abd2d14d55ceb73a55bcbc46be4f74481b78a2bada3f93f4fe4a4ae5fea
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 9, 2026.

Transparency log

Release files / getwinbg-0.1.1-py3-none-any.whl

Download URL getwinbg-0.1.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6481b9aae12b76e8fcd0639f011c0010a86a4682d48ead3c3ef3d5ac9f5197bd
BLAKE2b-256 checksum
How to use checksums
7f3a6c95f70c0f38369cc48f4505556ffd52d95ae2209ede8c47678b34918a41
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 9, 2026.

Transparency log

Security for getwinbg 0.1.1

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.

Select from 2 files

Attestation for getwinbg-0.1.1.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 9, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page