Module Expr Str ImportFrom alias Import alias alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr ListLoad Str body Expr Str TryExcept body Return Call NameLoad GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body If CompareIs NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Str Str Str Str Str Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str Str Str Str Str Str Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list Assign NameStore Str Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad keyword Str keyword BinOpMod Str NameLoad If NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIs NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad Str UnaryOpNot NameLoad body Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad If NameLoad body Return BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str IfExp NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return Call NameLoad AttributeLoad NameLoad attr GeneratorExp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If NameLoad body Return Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr keyword Str keyword BinOpMod Str NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Return Call NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp TupleLoad BoolOpOr NameLoad Str Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass orelse Return AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareIn Str NameLoad CompareEq BinOpMod Call AttributeLoad NameLoad attr Str Num Num body Return AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad IfExp NameLoad BinOpAdd NameLoad NameLoad Str If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr IfExp CompareEq NameLoad Str NameLoad NameLoad NameLoad orelse Assign NameStore NameLoad TryExcept body If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Return TupleLoad Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Num Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return TupleLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad orelse Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad keyword Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body If NameLoad body Raise NameLoad orelse Raise Assign NameStore ListLoad Assign NameStore Num While NameLoad body TryExcept body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Yield TupleLoad NameLoad NameLoad NameLoad orelse Expr Yield TupleLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body If NameLoad body Raise NameLoad orelse Raise AugAssignAdd NameStore Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body If NameLoad body Raise NameLoad orelse Raise TryExcept body For TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Yield Call NameLoad BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body If NameLoad body Raise NameLoad orelse Raise decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad body Assign NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num keyword NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore NameLoad Expr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword IfExp NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Yield TupleLoad NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body For NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Yield NameLoad For NameStore NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad If NameLoad body Return Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad orelse Raise Call NameLoad keyword Str keyword BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad
N/A N/A 
The registry consists of a series of roots from each of which descends
a tree of keys and values. Each key has an anonymous (default) value
and optionally a set of named values, each of which has a particular
type (string, number etc.).

For convenience in accessing registry keys and values, the module
implements the idea of a registry moniker which has the form:
:const:`[\\computer\]HKEY[\subkey path][:[value]]`. For example::

    from winsys import registry

    #
    # The value of the Version item in the HKLM\Software\Python key on SVR01
    #
    registry.registry(r"\SVR01\HKEY_LOCAL_MACHINE\Software\Python:Version")

    #
    # The Control Panel\Desktop key in HKEY_CURRENT_USER on the current machine
    #
    registry.registry(r"HKCU\Control Panel\Desktop")

The key function here is :func:`registry` which is a factory
returning a :class:`Registry` object which contains
most of the useful functionality in the module. However, the same
functionality is replicated at module level in many cases for
convenience.
 __future__ unicode_literals N/A os sys N/A operator N/A re N/A winerror N/A win32api N/A win32con N/A pywintypes winsys._compat * winsys constants core exc security utils RegistryConstants N/A N/A constants Constants N/A name_from_value N/A N/A self value default patterns N/A N/A core UNSET N/A * N/A N/A Find the longest name in the set of constants (optionally qualified by pattern)
        which matches value.
         N/A N/A N/A N/A max N/A name N/A name N/A N/A self names patterns N/A N/A self N/A name value key len N/A N/A N/A ValueError N/A N/A N/A default N/A core UNSET N/A N/A N/A KeyError N/A No constant matching name %s and value %s N/A patterns value N/A N/A default N/A N/A N/A REGISTRY_HIVE N/A N/A RegistryConstants from_list N/A HKEY_CLASSES_ROOT HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_DYN_DATA HKEY_LOCAL_MACHINE HKEY_PERFORMANCE_DATA HKEY_PERFORMANCE_NLSTEXT HKEY_PERFORMANCE_TEXT HKEY_USERS namespace win32con N/A N/A N/A REGISTRY_HIVE update N/A dict HKLM N/A REGISTRY_HIVE HKEY_LOCAL_MACHINE HKCU N/A REGISTRY_HIVE HKEY_CURRENT_USER HKCR N/A REGISTRY_HIVE HKEY_CLASSES_ROOT HKU N/A REGISTRY_HIVE HKEY_USERS N/A N/A N/A REGISTRY_HIVE doc Registry hives (root keys) including common aliases (HKCU, HKLM, etc.) N/A REGISTRY_ACCESS N/A N/A N/A constants Constants from_list N/A KEY_ALL_ACCESS KEY_CREATE_LINK KEY_CREATE_SUB_KEY KEY_ENUMERATE_SUB_KEYS KEY_EXECUTE KEY_NOTIFY KEY_QUERY_VALUE KEY_READ KEY_SET_VALUE KEY_WOW64_32KEY KEY_WOW64_64KEY KEY_WRITE namespace win32con N/A N/A N/A REGISTRY_ACCESS doc Registry-specific access rights N/A REGISTRY_VALUE_TYPE N/A N/A N/A constants Constants from_list N/A REG_BINARY REG_DWORD REG_DWORD_LITTLE_ENDIAN REG_DWORD_BIG_ENDIAN REG_EXPAND_SZ REG_LINK REG_MULTI_SZ REG_NONE REG_QWORD REG_QWORD_LITTLE_ENDIAN REG_SZ namespace win32con N/A N/A N/A REGISTRY_VALUE_TYPE doc Registry value data types N/A PyHANDLE N/A pywintypes HANDLEType x_registry N/A N/A exc x_winsys N/A N/A Base exception for all registry exceptions N/A x_moniker N/A x_registry N/A N/A Base exception for problems with monikers N/A x_moniker_ill_formed N/A x_moniker N/A N/A Raised when a moniker does not match the correct format N/A x_moniker_no_root N/A x_moniker N/A N/A Raised when a moniker has no Hive in the first or second position N/A N/A sep \ N/A WINERROR_MAP N/A N/A winerror ERROR_PATH_NOT_FOUND N/A winerror ERROR_FILE_NOT_FOUND N/A winerror ERROR_NO_MORE_ITEMS N/A winerror ERROR_ACCESS_DENIED N/A winerror ERROR_INVALID_HANDLE N/A exc x_not_found N/A exc x_not_found StopIteration N/A exc x_access_denied N/A exc x_invalid_handle N/A wrapped N/A N/A exc wrapper WINERROR_MAP x_registry _parse_moniker N/A N/A moniker accept_value N/A True N/A N/A Take a registry moniker and return the computer, root key, subkey path and value label.
    NB: neither the computer nor the registry key need exist; they
    need simply to be of the right format. The slashes must be backslashes (since
    registry key names can contain forward slashes). accept_value is mostly used
    internally to indicate that a key search is going on, where a colon is to be
    considered part of the key name; if it is True, then the colon is to be
    considered a value separator.

    The moniker must be of the form:

        [\\computer\]HKEY[\subkey path][:value]

    Valid monikers are:
        \\SVR01\HKEY_LOCAL_MACHINE\Software\Python:Version
        -> "SVR01", 0x80000002, "Software\Python", "Version"

        HKEY_CURRENT_USER\Software
        -> "", 0x80000001, "Software", None

        HKEY_CURRENT_USER\Software\Python:
        -> "", 0x80000001, "Software\Python", ""
     N/A accept_value N/A N/A moniker_parser N/A N/A re compile (?:\\\\([^\\]+)\\)?([^:]+)(:?)(.*) N/A re UNICODE N/A N/A moniker_parser N/A N/A re compile (?:\\\\([^\\]+)\\)?(.*) N/A re UNICODE N/A matcher N/A N/A moniker_parser match moniker N/A N/A matcher N/A N/A N/A x_moniker_ill_formed errctx _parse_moniker errmsg N/A Ill-formed moniker: %s moniker N/A accept_value N/A N/A N/A computer keypath colon value N/A N/A matcher groups N/A N/A N/A computer keypath N/A N/A matcher groups N/A colon value None N/A keys N/A N/A keypath split sep N/A root path None N/A key0 N/A N/A keys pop 0 N/A N/A N/A root N/A REGISTRY_HIVE N/A N/A N/A key0 upper N/A N/A N/A KeyError N/A N/A root None N/A N/A N/A root None keys N/A N/A key1 N/A N/A keys pop 0 N/A N/A N/A root N/A REGISTRY_HIVE N/A N/A N/A key1 upper N/A N/A N/A KeyError N/A N/A root None N/A N/A root None N/A N/A N/A x_moniker_no_root errctx _parse_moniker errmsg A registry hive must be the first or second segment in moniker N/A path N/A N/A sep join keys N/A N/A N/A value N/A colon N/A N/A value None N/A N/A computer root path value N/A create_moniker N/A N/A computer root path value N/A None N/A N/A Return a valid registry moniker from component parts. Computer
    is optional but root and path must be specified.

    :param computer: (optional) name of a remote computer or "." or :const:`None`
    :param root: name or value from REGISTRY_HIVE
    :param path: backslash-separated registry path
    :param value: name of a value on that path. An empty string refers to the default value.
    :returns: a valid moniker string
     N/A N/A root REGISTRY_HIVE N/A N/A root N/A N/A REGISTRY_HIVE name_from_value root N/A fullpath N/A N/A sep join N/A N/A root N/A N/A path split sep N/A computer N/A N/A moniker N/A \\%s\%s N/A computer fullpath N/A N/A moniker fullpath N/A value N/A N/A N/A N/A moniker : value N/A N/A moniker N/A Registry N/A N/A core _WinSysObject N/A N/A 
    Represent a registry key (including one of the roots) giving
    access to its subkeys and values as well as its security and walking
    its subtrees. The key is True if it exists, False otherwise.

    When access rights are supplied to any function, they can either be an
    integer representing a bitmask, or one or more letters corresponding to
    the :attr:`ACCESS` mapping. The default access is "F" indicating
    Full Control.

    Note that addition and attribute / item getting and setting are overridden for convenience
    in accessing subkeys and values as follows:

    * Adding a string to a :class:`Registry` object will result in a new object representing
        the subkey of that name::

            from winsys import registry
            software = registry.registry(r"HKLM\Software")
            software + r"Python\Pythoncore" == registry.registry (r"HKLM\Software\Python\Pythoncore")

    * Getting an attribute of a :class:`Registry` object will return a value
        if one exists, a key otherwise (or will raise AttributeError). For a key
        name this is the same as calling :meth:`get_key` or adding the key name
        as above. For a value name, this is the same as calling :meth:`get_value`

    * Setting an attribute always writes a value, even if a key of that
        name already exists. This is equivalent to calling :meth:`set_value`.

    * Deleting an attribute will attempts to delete a value if one exists,
        otherwise it will delete a key of that name. This is equivalent to
        calling :meth:`del_value` or :meth:`delete`.

        ::

            from winsys import registry
            python = registry.registry(r"HKLM\Software\Python")
            python.testing = 4
            python.get_value("testing") == 4
            python.testing == python['testing']
            del python.testing

    * To create a key, call :meth:`create` or the module-level :func:`create` function.

    * To delete a key, call its :meth:`delete` method or the module level
        :func:`delete` function.

        ::

            from winsys import registry
            winsys = registry.registry(r"hklm\software\winsys").create()
            winsys.test_value = 4
            registry.registry(r"hklm\software\winsys:test_value") == 4
            registry.delete(winsys)
            # or winsys.delete()
            # or registry.registry(r"hklm\software").delete("winsys")
     N/A ACCESS N/A Q D R W C F S N/A REGISTRY_ACCESS KEY_QUERY_VALUE N/A N/A constants ACCESS DELETE N/A REGISTRY_ACCESS KEY_READ N/A REGISTRY_ACCESS KEY_WRITE N/A N/A REGISTRY_ACCESS KEY_READ N/A REGISTRY_ACCESS KEY_WRITE N/A REGISTRY_ACCESS KEY_ALL_ACCESS N/A N/A N/A constants ACCESS READ_CONTROL N/A N/A constants ACCESS WRITE_DAC N/A Mapping between characters and access rights:

    * Q - Query
    * D - Delete
    * R - Read
    * W - Write
    * C - Change (R|W)
    * F - Full Control
    * S - Security
     N/A DEFAULT_ACCESS R __init__ N/A N/A self moniker access N/A DEFAULT_ACCESS N/A N/A N/A N/A N/A core _WinSysObject __init__ self N/A N/A N/A utils _set self hKey None N/A N/A N/A utils _set self moniker N/A unicode moniker N/A N/A N/A utils _set self id N/A _parse_moniker N/A N/A N/A self moniker lower accept_value False N/A N/A N/A utils _set self access N/A N/A self _access access N/A N/A N/A utils _set self name N/A moniker N/A N/A N/A moniker split sep N/A -1 N/A _access N/A N/A cls access N/A N/A N/A Conversion function which returns an integer representing a security access
        bit pattern. Uses the class's ACCESS map to translate letters to integers.
         N/A N/A access None N/A N/A None N/A N/A N/A N/A int access N/A N/A N/A ValueError N/A N/A N/A reduce N/A operator or_ N/A N/A N/A cls ACCESS N/A a N/A a N/A N/A access upper 0 N/A classmethod __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A self id N/A other id N/A N/A self access N/A other access N/A __hash__ N/A N/A self N/A N/A N/A N/A hash N/A N/A self id N/A self access N/A __add__ N/A N/A self path N/A N/A N/A Allow a key to be added to an existing moniker.

        :param path: can be a simple name or a backslash-separated relative path
        :returns: a :class:`Registry` object for the new path
         N/A path N/A N/A N/A N/A self __class__ N/A N/A N/A self moniker sep path N/A N/A self N/A pyobject N/A N/A self N/A N/A N/A Lazily return an internal registry key handle according to the instance's
        access requirements.

        :raises: :exc:`x_not_found` if the registry path the key refers to does not exist
         N/A N/A N/A self hKey None N/A N/A N/A hKey moniker _ N/A N/A self _from_string N/A self moniker access N/A self access accept_value False N/A N/A N/A utils _set self hKey hKey N/A N/A N/A self hKey None N/A N/A N/A N/A exc x_not_found errctx Registry.pyobject errmsg N/A Registry path %s not found moniker N/A N/A self hKey N/A as_string N/A N/A self N/A N/A N/A N/A self moniker N/A security N/A N/A self options N/A N/A N/A security Security DEFAULT_OPTIONS N/A N/A For a security request, hand off to the :meth:`~security.Security.from_object` method
        of the :class:`security.Security` object, specifying a registry key as the object type.
        Most commonly used as a context manager for security operations::

            from winsys import registry
            with registry.registry(r"hklm\software\python").security() as s:
                print s.owner
         N/A N/A N/A N/A security Security from_object N/A N/A self pyobject object_type N/A N/A security SE_OBJECT_TYPE REGISTRY_KEY options options N/A __nonzero__ N/A N/A self N/A N/A N/A Determine whether the registry key exists or not.
         N/A N/A hKey _ _ N/A N/A self _from_string N/A self moniker accept_value False N/A N/A bool hKey N/A N/A __bool__ __nonzero__ dumped N/A N/A self level N/A 0 N/A N/A output N/A N/A N/A N/A output append N/A N/A self as_string N/A N/A N/A output append N/A access: %s N/A self access N/A N/A bool self N/A N/A N/A N/A output append N/A keys:
%s N/A N/A utils dumped_list N/A N/A key name N/A key N/A N/A self iterkeys ignore_access_errors True level N/A N/A N/A output append N/A values:
%s N/A N/A utils dumped_dict N/A dict N/A N/A N/A name (Default) N/A repr value N/A N/A name value N/A N/A self itervalues ignore_access_errors True level N/A N/A N/A output append N/A security:
%s N/A N/A utils dumped N/A N/A N/A N/A self security dumped level level N/A N/A N/A utils dumped N/A N/A join output level N/A __getattr__ N/A N/A self attr N/A N/A N/A Allow attribute access (key.value) by trying for a value
        first and then falling back to a key and finally raising
        AttributeError
         N/A N/A N/A N/A N/A self get_value attr N/A N/A N/A N/A exc x_not_found N/A N/A N/A N/A N/A N/A self get_key attr N/A N/A N/A N/A exc x_not_found N/A N/A AttributeError N/A N/A __getitem__ __getattr__ __setattr__ N/A N/A self attr value N/A N/A N/A Allow attribute assignment by assigning a value.
         N/A N/A N/A self set_value attr value N/A N/A __setitem__ __setattr__ __delattr__ N/A N/A self attr N/A N/A N/A N/A N/A N/A N/A self del_value attr N/A N/A N/A N/A exc x_not_found N/A N/A N/A N/A N/A N/A self delete attr N/A N/A N/A N/A exc x_not_found N/A N/A AttributeError N/A N/A __delitem__ __delattr__ get_value N/A N/A self name N/A N/A N/A Return the key's value corresponding to name
         N/A N/A value type N/A wrapped N/A win32api RegQueryValueEx N/A N/A self pyobject name N/A value N/A get_value_type N/A N/A self name N/A N/A N/A Return the type of the key's value corresponding to name
         N/A N/A value type N/A wrapped N/A win32api RegQueryValueEx N/A N/A self pyobject name N/A type N/A get_key N/A N/A self name N/A N/A N/A Return a Registry instance corresponding to the key's subkey name

        :param name: a registry relative path (may be a single name or a backslash-separated path
         N/A N/A self name N/A set_value N/A N/A self label value type N/A None N/A N/A Attempt to set one of the key's named values. If type is
        None, then if the value already exists under the key its
        current type is assumed; otherwise a guess is made at
        the datatype as follows:

        * If the value is an int, use DWORD
        * If the value is a list, use MULTI_SZ
        * If the value has an even number of percent signs, use EXPAND_SZ
        * Otherwise, use REG_SZ

        This is a very naive approach, and will falter if, for example,
        a string is passed which can be converted into a number, or a string
        with 2 percent signs which don't refer to an env var.
         _guess_type N/A N/A value N/A N/A N/A N/A N/A N/A int value N/A N/A N/A N/A ValueError TypeError N/A N/A N/A N/A N/A REGISTRY_VALUE_TYPE REG_DWORD N/A N/A isinstance value list N/A N/A N/A REGISTRY_VALUE_TYPE REG_MULTI_SZ N/A value N/A unicode value N/A N/A N/A % value N/A N/A N/A N/A value count % 2 0 N/A N/A N/A REGISTRY_VALUE_TYPE REG_EXPAND_SZ N/A N/A REGISTRY_VALUE_TYPE REG_SZ N/A N/A type N/A N/A REGISTRY_VALUE_TYPE constant type N/A N/A type None N/A N/A N/A N/A N/A _ type N/A wrapped N/A win32api RegQueryValueEx N/A N/A self pyobject label N/A N/A N/A N/A exc x_not_found N/A N/A type N/A _guess_type value N/A N/A wrapped N/A win32api RegSetValueEx N/A N/A self pyobject label 0 type value N/A del_value N/A N/A self label N/A N/A N/A Removed the value identified by label from this registry key N/A N/A wrapped N/A win32api RegDeleteValue N/A N/A self pyobject label N/A _from_string N/A N/A cls string access accept_value N/A DEFAULT_ACCESS True N/A N/A Treat the string param as a moniker and return the corresponding
        registry key and value name.
         N/A N/A computer root path value N/A _parse_moniker string accept_value accept_value N/A moniker N/A N/A N/A REGISTRY_HIVE name_from_value root N/A path N/A sep path N/A computer N/A N/A hRoot N/A wrapped N/A win32api RegConnectRegistry N/A N/A computer . None computer root N/A N/A hRoot root N/A N/A N/A computer N/A N/A moniker N/A \\%s\%s N/A computer moniker N/A N/A N/A wrapped N/A win32api RegOpenKeyEx hRoot path 0 N/A N/A cls _access access moniker value N/A N/A N/A N/A exc x_not_found N/A N/A N/A None moniker value N/A classmethod from_string N/A N/A cls string access accept_value N/A DEFAULT_ACCESS True N/A N/A Treat the string param as a moniker return either a key
        or a value. This is mostly used via the :func:`registry` function.
         N/A N/A hKey moniker value N/A N/A cls _from_string string access accept_value N/A N/A value None N/A N/A N/A cls moniker access N/A N/A N/A N/A N/A cls moniker access get_value value N/A classmethod N/A registry N/A N/A root access accept_value N/A N/A Registry DEFAULT_ACCESS True N/A N/A Factory function for the Registry class.

    :param root: any of None, a Registry instance, or a moniker string
    :param access: an integer bitmask or an :data:`Registry.ACCESS` string
    :returns: a :class:`Registry` object
     N/A N/A root None N/A N/A None N/A N/A N/A isinstance root Registry N/A N/A root N/A N/A N/A isinstance root basestring N/A N/A N/A N/A Registry from_string root access access accept_value accept_value N/A N/A N/A x_registry errctx registry errmsg root must be None, an existing key or a moniker N/A values N/A N/A root ignore_access_errors _want_types N/A False False N/A N/A Yield the values of a registry key as (name, value). This is convenient
    for, eg, populating a dictionary::

        from winsys import registry

        com3 = registry.registry(r"HKLM\Software\Microsoft\Com3")
        com3_values = dict(com3.itervalues())

    :param root: anything accepted by :func:`registry`
    :param ignore_access_errors: if True, will keep on iterating even if access denied
    :param _want_types: (internal) used when, eg, copying keys exactly
    :returns: yields (name, value) for every value under :const:`root`
     N/A root N/A registry root accept_value False N/A N/A N/A hKey N/A N/A root pyobject N/A N/A N/A N/A exc x_access_denied N/A N/A ignore_access_errors N/A N/A StopIteration N/A N/A N/A values N/A N/A i 0 N/A True N/A N/A N/A N/A N/A name value type N/A wrapped N/A win32api RegEnumValue hKey i N/A _want_types N/A N/A N/A N/A name value type N/A N/A N/A N/A name value N/A N/A N/A N/A exc x_access_denied N/A N/A ignore_access_errors N/A N/A StopIteration N/A N/A N/A i 1 N/A N/A itervalues values keys N/A N/A root ignore_access_errors N/A False N/A N/A Yield the subkeys of a registry key as :class:`Registry` objects

    :param root: anything accepted by :func:`registry`
    :param ignore_access_errors: if True, will keep on iterating even if access denied
    :returns: yield :class:`Registry` objects for each key under `root`
     N/A root N/A registry root accept_value False N/A N/A N/A hRoot N/A N/A root pyobject N/A N/A N/A N/A exc x_access_denied N/A N/A ignore_access_errors N/A N/A StopIteration N/A N/A N/A N/A N/A N/A subname reserved subclass written_at N/A wrapped N/A win32api RegEnumKeyExW hRoot N/A N/A N/A N/A registry N/A N/A N/A root moniker sep subname accept_value False N/A N/A N/A N/A exc x_access_denied N/A N/A ignore_access_errors N/A N/A StopIteration N/A N/A N/A N/A iterkeys keys copy N/A N/A from_key to_key use_access N/A F N/A N/A Copy one registry key to another, returning the target. If the
    target doesn't already exist it will be created.

    :param from_key: anything accepted by :func:`registry`
    :param to_key: anything accepted by :func:`registry`
    :returns: a :class:`Registry` object for `to_key`
     N/A source N/A registry from_key accept_value False N/A target N/A registry to_key access use_access accept_value False N/A N/A target N/A N/A N/A N/A target create N/A N/A root subkeys subvalues N/A walk source _want_types True N/A N/A target_root N/A registry N/A N/A target moniker N/A N/A utils relative_to N/A root moniker N/A source moniker access use_access accept_value False N/A k subkeys N/A N/A target_key N/A registry N/A N/A target moniker N/A N/A utils relative_to N/A k moniker N/A source moniker accept_value False access use_access N/A N/A N/A target_key create N/A N/A name value type subvalues N/A N/A N/A N/A target_root set_value name value type N/A target N/A delete N/A N/A root subkey N/A N/A N/A Delete a registry key and all its subkeys

    The common use for this will be to delete a key itself.
    The optional subkey param is useful when this is invoked
    as a method of a :class:`Registry` object and it's convenient
    to remove one of its subkeys::

        from winsys import registry
        ws = registry.registry(r"hklm\software\winsys")
        ws.create()
        for subkey in ["winsys1", "winsys2", "winsys3"]:
            ws.create(subkey)
        for key in ws.iterkeys():
            print key
        for subkey in ["winsys1", "winsys2", "winsys3"]:
            ws.delete(subkey)
        ws.delete()

    :param root: anything accepted by :func:`registry`
    :param subkey: anything accepted by :meth:`Registry.get_key`
    :returns: a :class:`Registry` object for `root`
     N/A key N/A N/A N/A registry root accept_value False get_key subkey N/A k N/A N/A key iterkeys N/A N/A N/A N/A k delete N/A N/A N/A win32api RegDeleteKey N/A N/A N/A N/A key parent pyobject N/A key name N/A key N/A create N/A N/A root subkey sec N/A None N/A N/A Create a key and apply specific security to it, returning the
    key created. Note that a colon in the key name is treated as part
    of the name not as a value indicator. Any parts of the path not
    already existing will be created as needed::

        from winsys import registry, security
        sec = security.Security(dacl=[("", "F", "ALLOW")])
        registry.create(r"hklm\software\winsys	est", sec=sec)
        registry.registry(r"hklm\software\winsys	est").dump()

    :param root: anything accepted by :func:`registry`
    :param subkey: anything accepted by :meth:`Registry.get_key`
    :param sec: a :class:`security.Security` instance or None
    :returns: a :class:`Registry` object for `root`
     N/A key N/A N/A N/A registry root accept_value False get_key subkey N/A N/A computer0 root0 path0 value0 N/A _parse_moniker N/A key moniker accept_value False N/A parts N/A N/A path0 split sep N/A N/A i part N/A enumerate parts N/A N/A N/A computer root path value N/A _parse_moniker N/A create_moniker computer0 root0 N/A N/A sep join N/A parts N/A N/A i 1 accept_value False N/A computer N/A N/A hRoot N/A wrapped N/A win32api RegConnectRegistry computer root N/A N/A hRoot root N/A N/A wrapped N/A win32api RegCreateKeyEx Key hRoot SubKey path samDesired N/A N/A Registry _access N/A Registry DEFAULT_ACCESS SecurityAttributes N/A sec N/A N/A sec pyobject None N/A key N/A walk N/A N/A root ignore_access_errors _want_types N/A False False N/A N/A Mimic the os.walk functionality for the registry, starting at root and
    yielding (key, subkeys, values) for each key visited. subkeys and values are
    themselves generators.

    :param root: anything accepted by :func:`registry`
    :param ignore_access_errors: if True, will keep on iterating even if access denied
    :param _want_types: (internal) indicates whether value types are returned as well as values
    :returns: yields `key`, `subkeys`, `values` recursively for every key under `root`
     N/A root N/A registry root accept_value False N/A N/A N/A root N/A N/A root iterkeys ignore_access_errors ignore_access_errors N/A N/A root itervalues ignore_access_errors ignore_access_errors _want_types _want_types N/A subkey N/A N/A root iterkeys ignore_access_errors ignore_access_errors N/A N/A result N/A walk subkey ignore_access_errors ignore_access_errors _want_types _want_types N/A N/A N/A result N/A flat N/A N/A root ignore_access_errors N/A False N/A N/A Yield a flattened version the tree rooted at root.

    :param root: anything accepted by :func:`registry`
    :param ignore_access_errors: if True, will keep on iterating even if access denied
    :returns: yields `key` and then `value` items for each key under `root`
     N/A N/A key subkeys values N/A walk root ignore_access_errors N/A N/A N/A key N/A value values N/A N/A N/A value N/A parent N/A N/A key N/A N/A N/A Return a registry key's parent key if it exists

    :param key: anything accepted by :func:`registry`
    :returns: a :class:`Registry` object representing the parent of key
    :raises: :exc:`x_registry` if no parent exists (eg for a hive)
     N/A key N/A registry key accept_value False N/A N/A computer root path value N/A _parse_moniker N/A key moniker accept_value False N/A parent_moniker N/A create_moniker computer root N/A N/A sep join N/A N/A N/A path split sep N/A -1 N/A N/A pcomputer proot ppath pvalue N/A _parse_moniker parent_moniker accept_value False N/A ppath N/A N/A N/A registry parent_moniker N/A key access accept_value False N/A N/A N/A x_registry errctx parent errmsg N/A %s has no parent N/A key moniker N/A hklm N/A N/A N/A N/A N/A N/A registry hklm N/A hkcu N/A N/A N/A N/A N/A N/A registry hkcu N/A N/A N/A Registry values values N/A N/A Registry itervalues itervalues N/A N/A Registry keys keys N/A N/A Registry iterkeys iterkeys N/A N/A Registry __iter__ keys N/A N/A Registry delete delete N/A N/A Registry create create N/A N/A Registry walk walk N/A N/A Registry flat flat N/A N/A Registry copy copy N/A N/A Registry parent parent