Skip to main content

keyring_wincred

Windows Credential Manager backend for keyring for WSL.

This package allows Python applications running in WSL (Windows Subsystem for Linux) to store secrets in the Windows Credential Manager.

Installation

git clone https://github.com/ilpianista/keyring_wincred.git
cd keyring_wincred
pip install .

Usage

Once installed, keyring should automatically detect and use this backend when running under WSL. To force it configure ~/.config/python_keyring/keyringrc.cfg like so:

[backend]
default-keyring = keyring_wincred.WinCredKeyring

Instead, in Python:

import keyring

# Store a password
keyring.set_password("myservice", "myuser", "secret123")

# Retrieve a password
password = keyring.get_password("myservice", "myuser")

# Delete a password
keyring.delete_password("myservice", "myuser")

You can also use the keyring CLI:

keyring set myservice myuser
keyring get myservice myuser
keyring del myservice myuser

How it works

This backend uses PowerShell with inline C# code to call the Windows Credential Manager API (advapi32.dll). No external PowerShell modules are required.

Credentials are stored with target names in the format service:username.

Requirements

  • WSL (Windows Subsystem for Linux)
  • Python 3.8+
  • keyring package

License

MIT

Metadata

Release files for keyring-wincred 0.1.0

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

Source distribution (sdist)

Source distribution for keyring-wincred 0.1.0
File Size Uploaded Provenance
keyring_wincred-0.1.0.tar.gz 5.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for keyring-wincred 0.1.0
File Interpreter ABI Platform
keyring_wincred-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / keyring_wincred-0.1.0.tar.gz

Download URL keyring_wincred-0.1.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
55eaf70831eecf81df15a1f21ee6112949b7027cea6c1287fc620ad1aa308bd4
BLAKE2b-256 checksum
How to use checksums
d6cef4d3c9597dc1ea6310c2dc4eedd4337b5990183b4f9dfac2f6ad90aec399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 29, 2025.

Transparency log

Release files / keyring_wincred-0.1.0-py3-none-any.whl

Download URL keyring_wincred-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50673f8d64183e0abda910a0a87df78f8ce7687898cd07cfe1997349e572c8a0
BLAKE2b-256 checksum
How to use checksums
26f55c938324533040c61cf4b3bbb94a91d61b244e2a9976af201e987d432f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 29, 2025.

Transparency log

Security for keyring-wincred 0.1.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for keyring_wincred-0.1.0.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 Dec 29, 2025.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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