Skip to main content

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 details)

Uploaded Source

Built Distribution

winregistry-1.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file winregistry-1.1.1.tar.gz.

File metadata

  • Download URL: winregistry-1.1.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.6 Windows/10

File hashes

Hashes for winregistry-1.1.1.tar.gz
Algorithm Hash digest
SHA256 942fecad3751c1b78b9e6b0a520266903c3023f104668ce1bdbf381ec993ad8b
MD5 68c7f323002ea8fec1db19ce55461e88
BLAKE2b-256 f2c6fa09b3d76f8b4b69af00988be763400d448f43e5542a9a4cdbca72213fff

See more details on using hashes here.

File details

Details for the file winregistry-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: winregistry-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.6 Windows/10

File hashes

Hashes for winregistry-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4be5a488838266b4bf826712d640db3daadd1f97ba46820f834a98868b3bc1
MD5 547c97bd0f391cc4dedaf4dc1fa0ff94
BLAKE2b-256 dd6f8903b43c5323b0bdd83e61afaa72ba0bfeff5e51a681585020070322053f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page