473,706 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wanted: something more Pythonic than _winreg.


I'm using the _winreg module to change Windows registry settings, but
its rather low level, and I'd prefer to be working with something more

Does anyone have any recommendations ?
Oct 10 '08 #1
2 961
Jonathan Fine wrote:

I'm using the _winreg module to change Windows registry settings, but
its rather low level, and I'd prefer to be working with something more

Does anyone have any recommendations ?
Yeah, please implement a nice wrapper and submit a patch to
bugs.python.org . We are looking for a decent wrapper for the windows
registry for some time.

Thanks :)


Oct 10 '08 #2
On Oct 10, 9:44*am, Jonathan Fine <J.F...@open.ac .ukwrote:

I'm using the _winreg module to change Windows registry settings, but
its rather low level, and I'd prefer to be working with something more

Does anyone have any recommendations ?

I've used YARW before for nested deletion. It's a little nicer:


There's also this recipe: http://code.activestate.com/recipes/174627/

Other than those, I'm not really aware of much.

Oct 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Tom Evans | last post by:
My basic question: If I have a specific interface which I know is going to be implemented by a number of classes, but there is no implementation commonality between them, what is the preferred form for this in Python? In a staticly typed language like c++ or java, I'd describe the interface first, then create the classes eithered derived from that ABC or implementing that interface (same thing really). This was the first thing I...
by: John Sellers | last post by:
newbee question...I haven't worked on Python since Python 1.5.2 cygwin setup installs Python 2.3.2-1 on Windows XP however: $ python Python 2.3.2 (#1, Oct 9 2003, 12:03:29)
by: Erick Bodine | last post by:
I am trying to set a new environment variable on a W2k machine with only partial success. The name("SSID") and value("ASIM") show up correctly in the registry and when I go to "System Properties"->Advanced->"Environment Variables". However, if I open a console and type 'set', "SSID" is not listed; also if I open a python shell and do os.environ the variable is not found. What am I doing wrong??? import _winreg
by: asdf sdf | last post by:
i need some advice. i'm a back end programmer historically, but have been exploring python for webapps and enjoying it. i need to build some simple Win client-server or standalone apps. the result needs to look professional and attractive, and i need something i can get working fairly quickly with a modest learning curve. i'm looking at wxPython, because that is a pythonic solution. but i'm concerned about the scarcity of gentle...
by: Brad Tilley | last post by:
The below function fails with this error: ValueError: Could not convert the data to the specified type. The problem appears to be the v variable. When I make v an int, I get: WindowsError: Access is denied. This makes sense to me as the _winreg docs says that value (v) in SetvalueEx should be a string, but I do not understand why it gives the "ValueError" error when I make it a string. Also, I can do one key (Log) at a time, but not...
by: rtilley | last post by:
A portion from the _winreg Documnetation: ----------------------------------------------------------------- DeleteValue(key, value) 1. Removes a named value from a registry key. --> OK 2. key is an already open key, or one of the predefined HKEY_* constants. --> OK 3. value is a string that identifies the value to remove. --> misleading ------------------------------------------------------------------
by: Carl J. Van Arsdall | last post by:
It seems the more I come to learn about Python as a langauge and the way its used I've come across several discussions where people discuss how to do things using an OO model and then how to design software in a more "Pythonic" way. My question is, should we as python developers be trying to write code that follows more of a python standard or should we try to spend our efforts to stick to a more traditional OO model? For example, in...
by: RodneyWMcBride | last post by:
Reply with quote Edit/Delete this post Delete this post Post _winreg.SaveKey question Does anyone know where I might find some sample code of using the saveKey function? I am getting an error 5 access denied and I think that it is coming from the way I am specifying the filename as in _winreg.SaveKey(key, filename). The docs mention that if the key is to a remote host (which it is in my case) that the path is relative. I read this as...
by: black_13 | last post by:
I have included a small script the reproduces the error I am having in larger script. The line 'hkey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,name)' seems to be causing the error but im not sure why. --------------------- script ---------------- import _winreg import string
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.