Skip to main content

winregmgr

PyPI

Helper library that allows to read/write from/to Windows Registry via simplified syntax of Python contextmanager.

Install:

$ pip install winregmgr

Usage Samples:

from winregmgr import OpenKey
import winreg   # for accessing constants

# Read parameter from Registry:
with OpenKey(winreg.HKEY_CURRENT_USER, r"SOFTWARE\ODBC\ODBC.INI\MS Access Database\\") as reg_key:
  value = reg_key.get_value("Driver")

# If parameter is read only - optional access type has to be explicitly set:
with OpenKey(winreg.HKEY_LOCAL_MACHINE, "Read Only Path", access=winreg.KEY_READ) as reg_key:
  value = reg_key.get_value("Driver")

# Read all parameters under given path into dictionary
with OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\\") as reg_key:
  values = reg_key.get_values()

# Write Parameter if path does not exist - creates it
with OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\\") as reg_key:
  reg_key.set_value("Parameter", "Its value")

# Delete Parameter
with OpenKey(winreg.HKEY_CURRENT_USER, r"PATH\TO\PARAMETER\\") as reg_key:
  reg_key.delete_value("Parameter")

Metadata

Release files for winregmgr 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 winregmgr 0.1.1
File Size Uploaded Provenance Actions
winregmgr-0.1.1.tar.gz 3.2 kB Without provenance Details for winregmgr-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.1 kB

Release files / winregmgr-0.1.1.tar.gz

Download URL winregmgr-0.1.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f0eda807996b6b099082cba5043860b411a28f6396d53cdb84f23df053e0e1b8
BLAKE2b-256 checksum
How to use checksums
060bde340e6101ca246c10a63a8df6ea6f022f93417d4090f8699ad6dafda5e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

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

Download URL winregmgr-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9942e85da0ade293c85ac0ffc348750d2f728149bca01405917bf4479b52b15
BLAKE2b-256 checksum
How to use checksums
b73112fc565d617e435ded1b4ab5af5a97d5b5071f9407df8802ea5e1cf27ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

Security for winregmgr 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

2 release files No 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