Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Shpak committed Nov 12, 2024
1 parent b91092a commit f87febd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions winregistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def connect(cls, root, host=None, wow64_32=False) -> tp.Self:
def read_registry_key(
key: str,
wow64_32: bool = False,
host=None,
) -> RegKey:
"""Reading registry key"""
with WinRegistry() as client:
Expand All @@ -139,6 +140,7 @@ def read_registry_key(
def create_registry_key(
key: str,
wow64_32: bool = False,
host=None,
) -> None:
"""Creating registry key"""
with WinRegistry() as client:
Expand All @@ -148,6 +150,7 @@ def create_registry_key(
def delete_registry_key(
key: str,
wow64_32: bool = False,
host=None,
) -> None:
"""Deleting registry key"""
with WinRegistry() as client:
Expand All @@ -158,6 +161,7 @@ def read_registry_value(
key: str,
value: tp.Any,
wow64_32: bool = False,
host=None,
) -> RegEntry:
"""Reading value from registry"""
with WinRegistry() as client:
Expand All @@ -170,6 +174,7 @@ def set_registry_value(
data: Any = None,
reg_type: str = "REG_SZ",
wow64_32: bool = False,
host=None,
) -> None:
"""Writing (or creating) data in value"""
with WinRegistry() as client:
Expand All @@ -180,13 +185,15 @@ def delete_registry_value(
key: str,
value: str,
wow64_32: bool = False,
host=None,
) -> None:
"""Deleting value from registry"""
with WinRegistry() as client:
client.delete_entry(key, value, wow64_32)


class robot:
def __init__(self, root, host=None, wow64_32=False): ...
def read_registry_key(
key: str,
wow64_32: bool = False,
Expand Down Expand Up @@ -246,9 +253,5 @@ def delete_registry_value(
client.delete_entry(key, value, wow64_32)


__all__ = [
'WinRegistry',
'RegKey',
'RegValue',
]
__all__ = ['WinRegistry', 'RegKey', 'RegValue', 'robot']
__version__ = '0.0.0'

0 comments on commit f87febd

Please sign in to comment.