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.0.1.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file winregistry-1.0.1.tar.gz
.
File metadata
- Download URL: winregistry-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570c568eed22c6a1bc669d6b0d2ebc7a60b9a2cf0902ff83510bac424025a8bc |
|
MD5 | 0e5846d6a5eac5331365cefe50e5658b |
|
BLAKE2b-256 | fa30419b6e0eacfed387198031ab57e14bfef55daaa399aa7a3d69a51fe4fb1e |
Provenance
File details
Details for the file winregistry-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: winregistry-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4e7040fef22a93b4cf172600a022c1fb11546b71b80d3f98cec332c57c4f5d |
|
MD5 | 9bb40d604b9e632c8d47b6df84c31958 |
|
BLAKE2b-256 | b69e4e7c1778f18b32c7dd98249f33e63c41d18a66e36d76325343649e8d001b |