{ "info": { "author": "Or Weis", "author_email": "py@bitweis.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Operating System", "Topic :: System :: Systems Administration" ], "description": "WinRegal\r\n========\r\n| \"Use the Windows Registry like a king\"\r\n| A Modern Python wrapper for the Windows Registry (wrapping winreg)\r\n| Python Windows Registry Module\r\n| Access Registry like a dict\r\n\r\n\r\nInstall\r\n-------\r\npip install winregal\r\n\r\nUsage\r\n-----\r\nUse winregal.RegKey along with the 'with' statement to access any key of your choice.\r\nwinregal handles key opening and closing for you and makes iteration really simple.\r\n\r\n\r\nGet a Key hierarchy with all values as a dictionary\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nExample : Print Putty sessions\r\n\r\n.. code:: python\r\n\r\n In[2]: from winregal import RegKey\r\n In[3]: with RegKey(\"HKEY_CURRENT_USER\\SOFTWARE\\SimonTatham\\PuTTY\\Sessions\") as key:\r\n ... print(key.to_dict())\r\n ...\r\n {'Server1: {'UserName': u'user', 'HostName': u'192.168.48.131', ... },\r\n 'Server2': {'UserName': u'user', 'HostName': u'192.168.48.132', ... }}\r\n\r\n\r\nIterate over Key hierarchy handling only values\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nExample : Print most recently run commands(RunMru)\r\n\r\n.. code:: python\r\n\r\n In[1]: with RegKey(\"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU\") as key:\r\n ... for item in key:\r\n ... if isinstance(item, RegValue):\r\n ... print(item.name, item.data)\r\n ...\r\n ('a', u'cmd\\\\1')\r\n ('b', u'winword\\\\1')\r\n ('c', u'notepad\\\\1')\r\n ('d', u'control\\\\1')\r\n ('e', u'regedit\\\\1')\r\n ('f', u'calc\\\\1')\r\n ('j', u'notepad++\\\\1')\r\n\r\n\r\nDirectly access a value / key\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n In[10]: with RegKey(\"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RunMRU\") as key:\r\n ... print(key['a'].data)\r\n ...\r\n cmd\\1\r\n\r\n\r\nNext in module Development\r\n--------------------------\r\n- Support ConnectRegistry (via RegKey.__init__)\r\n- Wrap Edit/Save/Delete operations: e.g. CreateKey, DeleteKey, DeleteValue, SetValue, SaveKey\r\n\r\nContact me (py@bitweis.com) if you need these anytime soon.\r\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/orweis/winregal", "keywords": "winregal", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "winregal", "package_url": "https://pypi.org/project/winregal/", "platform": "", "project_url": "https://pypi.org/project/winregal/", "project_urls": { "Homepage": "https://github.com/orweis/winregal" }, "release_url": "https://pypi.org/project/winregal/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A Modern Python wrapper for the Windows registry", "version": "1.0.1" }, "last_serial": 2637135, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "3f591d976d242e334a21697db192602f", "sha256": "83380db88f158e5306e4f8962ae07cae5e5624bd2aa1efc15de73287b2b150c6" }, "downloads": -1, "filename": "winregal-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3f591d976d242e334a21697db192602f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7507, "upload_time": "2016-12-31T15:09:13", "url": "https://files.pythonhosted.org/packages/5d/86/1f608aa990b1e9e7f5dfea64c77dc9d8f543a362f9c170671c34b4a1b203/winregal-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5aa6a2f8820e0611398b57f70f0fade1", "sha256": "1e02f5518c9c22d4929d8135113c4635698dc9fd8c6c56a6e576e59fb17d70a2" }, "downloads": -1, "filename": "winregal-1.0.tar.gz", "has_sig": false, "md5_digest": "5aa6a2f8820e0611398b57f70f0fade1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5692, "upload_time": "2016-12-31T15:09:11", "url": "https://files.pythonhosted.org/packages/7c/40/b67992fe40ffa809ef29c5aafaee32bb830c0582f15935ff018acda3b392/winregal-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "54e1bf7cc0f062269f2cf395e619a91d", "sha256": "6f29127fbdb4184a8fa8ba7711b661a7d965bb0ec4691d1cebaa82dec42ef2eb" }, "downloads": -1, "filename": "winregal-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54e1bf7cc0f062269f2cf395e619a91d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7546, "upload_time": "2017-02-12T20:47:57", "url": "https://files.pythonhosted.org/packages/4c/d7/dec3a6aaf8678b30a56563f9449b9e0e3cfa5830ce0ca40c30cfe9bce66a/winregal-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ead0cb681882f82cbdcdd3a63e42d3cd", "sha256": "15f6c953fca69b9df186ae736c0acb8b6b56b99cd84571f8a60c2b784d74968d" }, "downloads": -1, "filename": "winregal-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ead0cb681882f82cbdcdd3a63e42d3cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5705, "upload_time": "2017-02-12T20:47:55", "url": "https://files.pythonhosted.org/packages/bf/c4/9e869bcdcceea231001cbaefc71a0d6e2d4c00c858ad99bba73121021eff/winregal-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54e1bf7cc0f062269f2cf395e619a91d", "sha256": "6f29127fbdb4184a8fa8ba7711b661a7d965bb0ec4691d1cebaa82dec42ef2eb" }, "downloads": -1, "filename": "winregal-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "54e1bf7cc0f062269f2cf395e619a91d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7546, "upload_time": "2017-02-12T20:47:57", "url": "https://files.pythonhosted.org/packages/4c/d7/dec3a6aaf8678b30a56563f9449b9e0e3cfa5830ce0ca40c30cfe9bce66a/winregal-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ead0cb681882f82cbdcdd3a63e42d3cd", "sha256": "15f6c953fca69b9df186ae736c0acb8b6b56b99cd84571f8a60c2b784d74968d" }, "downloads": -1, "filename": "winregal-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ead0cb681882f82cbdcdd3a63e42d3cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5705, "upload_time": "2017-02-12T20:47:55", "url": "https://files.pythonhosted.org/packages/bf/c4/9e869bcdcceea231001cbaefc71a0d6e2d4c00c858ad99bba73121021eff/winregal-1.0.1.tar.gz" } ] }