Skip to main content

Windows Registry Manipulation

Project description

Easy Windows-Registry display & manipulation in Python.

from rage import RegistryKey

# Open some key
key = RegistryKey(some_registry_path)

# Print names of all subkeys
for key_name in key.enum_keys():
    print key

# Get a subkey
subkey = key["subkey-name"]

# Print out all the subkey's values
for name, value in subkey.values:
    print repr(name), value

# Set one of the values
editable_subkey = subkey.get_editable()
editable_subkey.values["my value name"] = RegSZ("Value value!")

# Delete a value
del editable_subkey.values["value to delete"]

# Delete a subkey
editable_subkey.delete_subkey("subkey name", recurse=False)

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

rage-0.1.0.zip (6.9 kB view hashes)

Uploaded Source

Built Distribution

rage-0.1.0-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 2 Python 3

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