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.1.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for winregistry-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4be5a488838266b4bf826712d640db3daadd1f97ba46820f834a98868b3bc1 |
|
MD5 | 547c97bd0f391cc4dedaf4dc1fa0ff94 |
|
BLAKE2b-256 | dd6f8903b43c5323b0bdd83e61afaa72ba0bfeff5e51a681585020070322053f |