<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Mapping URIs as Drives with Python and Win32</title>
	<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32/</link>
	<description>Comments on Ask MetaFilter post Mapping URIs as Drives with Python and Win32</description>
	<pubDate>Tue, 15 Mar 2005 11:39:39 -0800</pubDate>
	<lastBuildDate>Tue, 15 Mar 2005 11:39:39 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Mapping URIs as Drives with Python and Win32</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32</link>	
		<description>I&apos;ve fallen hard for Python and have been searching for a project to really learn the language with. I&apos;d like to create functionality similar to Windows &quot;Map Network Drive&quot; for URIs using Python, urllib, etc. My questions are: does this seem possible for someone with a decent programming background (but no formal CS training)? Is it a good idea? &lt;br /&gt;&lt;br /&gt; The idealized version would be integrated into the Windows shell and turn a directory URI into an accessible directory in Windows Explorer (with proper icons, file info, etc.). Additonal idealization would include abstracting the code enough that it worked with any other OS that cared to use it.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;Please pardon, but also correct, any terminology that&apos;s not sensible.&lt;/small&gt;</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.16337</guid>
		<pubDate>Tue, 15 Mar 2005 11:22:39 -0800</pubDate>
		<dc:creator>yerfatma</dc:creator>
		
			<category>python</category>
		
			<category>programming</category>
		
			<category>windows</category>
		
			<category>networking</category>
		
	</item> <item>
		<title>By: kenko</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277196</link>	
		<description>I don&apos;t know much (or, in fact, anything) about integration with Windows Explorer in Python, but I suspect that you&apos;ll want &lt;a href=&quot;http://starship.python.net/crew/mhammond/win32/Downloads.html&quot;&gt;Mark Hammond&apos;s win32 extensions&lt;/a&gt; to do it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277196</guid>
		<pubDate>Tue, 15 Mar 2005 11:39:39 -0800</pubDate>
		<dc:creator>kenko</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277242</link>	
		<description>While not oriented towards the creation of a Windows-mounted filesystem -- which may be rather difficult with Python given Windows&apos; filesystem driver architecture -- &lt;a href=&quot;http://okmij.org/USENIX99/&quot;&gt;this USENIX paper&lt;/a&gt; describes the sort of mechanism you&apos;re interested in creating: an &quot;HTTP filesystem.&quot;  The Windows development aspect of it &lt;a href=&quot;http://www.acc.umu.se/~bosse/&quot;&gt;might require some research&lt;/a&gt;, but there are some &lt;a href=&quot;http://www.amazon.com/exec/obidos/ASIN/1578700582&quot;&gt;books&lt;/a&gt; that might be of interest in helping you get started.&lt;br&gt;
&lt;br&gt;
You won&apos;t gain a magical portability across OS kernel architectures because of a thoughtful abstraction, but it would make the reuse of your code easier for those other implementations.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277242</guid>
		<pubDate>Tue, 15 Mar 2005 12:31:48 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277370</link>	
		<description>Oh, and as far as it being a good idea:  Do you know anything about writing Windows drivers?  If not, it might be an interesting if daunting project, although Python may not be the best choice of language for such low-level work.  I&apos;m not sure how much of the driver API is available on Python, or how well abstracted it is -- or if you want an entire Python runtime in privileged kernel space.  My gut instinct is that the project as you describe it is putting the Python cart in front of the driver-writing horse.&lt;br&gt;
&lt;br&gt;
You might, however, have some luck writing it as an Explorer extension, which would not mount as a drive.  As far as I know that just involves creating a COM object implementing a certain interface and registering it appropriately.  I dunno how well Python excels at COM, but since it otherwise seems to treat Windows as a first class platform it may very well be straightforward.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277370</guid>
		<pubDate>Tue, 15 Mar 2005 15:14:03 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277378</link>	
		<description>You can do Python stuff with COM. But all the Python/Win32 stuff I&apos;ve done or looked at was pretty messy, mainly because the original Win32 API is so messy. To be honest, anything involving Windows is NOT what I would recommend as a language-learning project. If I had tried even the much more minor Windows stuff (compared to what you&apos;re doing) I know now when first learning Python, I probably would have given up.&lt;br&gt;
&lt;br&gt;
That said, the win32 extensions are incomplete. &lt;a href=&quot;http://starship.python.net/crew/theller/ctypes/&quot;&gt;ctypes&lt;/a&gt; is really nice since it can get to ALL of the Win32 API easily. And any other arbitrary C code.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277378</guid>
		<pubDate>Tue, 15 Mar 2005 15:43:05 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item><item>
		<title>By: yerfatma</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277462</link>	
		<description>&lt;em&gt;Do you know anything about writing Windows drivers?&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Not a thing. Your link to Amazon kinda put me off the whole thing. &lt;br&gt;
&lt;br&gt;
&lt;em&gt;anything involving Windows is NOT what I would recommend as a language-learning project&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Just to be clear (because I don&apos;t want to come across as a complete n00b trying to learn programming), I&apos;ve already built a small (but robust) application in Python and have done some hacking of others&apos; code. This is more of a long-term relationship project than a first date. And I do have a god bit of COM experience sitting around me at work.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277462</guid>
		<pubDate>Tue, 15 Mar 2005 18:10:57 -0800</pubDate>
		<dc:creator>yerfatma</dc:creator>
	</item><item>
		<title>By: delmoi</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277479</link>	
		<description>It depends on the libraries.  And it&apos;s definetly something someone with no &quot;formal CS traning&quot; can do &lt;b&gt;but&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
It will be very hard to do, &lt;b&gt;especialy&lt;/b&gt; in python because you&apos;re going to need to do a lot of low level windows stuff that&apos;s designed to operate with C/C++ and languages like that.&lt;br&gt;
&lt;br&gt;
Basicaly, it would involve a lot of hackwork, and not really teach you anything about the language.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277479</guid>
		<pubDate>Tue, 15 Mar 2005 18:48:12 -0800</pubDate>
		<dc:creator>delmoi</dc:creator>
	</item><item>
		<title>By: yeoz</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#277486</link>	
		<description>Oddly enough, something similar came up just recently for me.&lt;br&gt;
I was looking for a webdav implementation in python, so that I could use window&apos;s &quot;web folders&quot; to map stuff...&lt;br&gt;
Unfortunately, the existing webdav stuff I could find was either &lt;a href=&quot;http://sandbox.xerox.com/webdav/&quot;&gt;feature-incomplete&lt;/a&gt;, &lt;a href=&quot;http://comlounge.net/webdav/&quot;&gt;relied on a module that had changed significantly&lt;/a&gt;, or &lt;a href=&quot;http://akadav.sourceforge.net/&quot;&gt;required me to compile stuff&lt;/a&gt;.&lt;br&gt;
I haven&apos;t given up completely, but, I haven&apos;t gotten anywhere since...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-277486</guid>
		<pubDate>Tue, 15 Mar 2005 19:11:19 -0800</pubDate>
		<dc:creator>yeoz</dc:creator>
	</item><item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/16337/Mapping-URIs-as-Drives-with-Python-and-Win32#278184</link>	
		<description>yeoz: so compile some stuff. Cygwin is the easiest way. Other ways (free Microsoft VS.NET compiler) will be faster, but require more work from you.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.16337-278184</guid>
		<pubDate>Wed, 16 Mar 2005 16:05:01 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item>
	</channel>
</rss>
