Library aimed at working with Windows registry
Project description
winregistry
Minimalist Python library aimed at working with Windows Registry.
Installation
pip install winregistry
Usage
from winregistry import WinRegistry
TEST_REG_PATH = r"HKLM\SOFTWARE\_REMOVE_ME_"
if __name__ == "__main__":
with WinRegistry() as client:
client.create_key(TEST_REG_PATH)
client.write_entry(TEST_REG_PATH, "remove_me", "test")
test_entry = client.read_entry(TEST_REG_PATH, "remove_me")
assert test_entry.value == "test"
client.delete_entry(TEST_REG_PATH, "remove_me")
Usage with Robot Testing Framework
Library
*** Settings ***
Library winregistry.robot
*** Test Cases ***
Valid Login
${path} = Set Variable HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run
Write Registry Entry ${path} Notepad notepad.exe
${autorun} = Read Registry Key ${path}
Delete Registry Entry ${path} Notepad
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
winregistry-1.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for winregistry-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18191a8cb65e5a5f02ae1a9a6f99473f3ae33ff3856554a6453ae1afeb259d3a |
|
MD5 | daccdf01705f64f379d6bba0d01e22bc |
|
BLAKE2b-256 | c38de38dbce3883d0f50ea79f0a899539e15a86d8eb57d20d9e25fe4f2362a2d |