skip to navigation
skip to content

Not Logged In

win_unc 0.6.1

UNC network drive handling and mounting for Windows

win_unc

A Python library for handling UNC paths on Windows.

With this library you can

  • Connect UNC directories to your Windows session
  • Connect UNC directories requiring authorization by providing credentials
  • Mount UNC directories (with or without credentials) to a local mount point
  • Disconnect/unmount UNC connections
  • Query existing UNC connections known by the Windows session

Full documentation is at http://covenanteyes.github.com/py_win_unc

Report any issues on the package's GitHub page: http://github.com/CovenantEyes/py_win_unc

Installation

To install:

$ pip install win_unc

Sneak Preview

Below is a simple example:

from win_unc import UncDirectoryMount, UncDirectory, DiskDrive

conn = UncDirectoryMount(UncDirectory(r'\home\shared'), DiskDrive('Z:'))
conn.mount()
print 'Drive connected:', conn.is_mounted()
conn.unmount()

You can also provide credentials like this:

from win_unc import UncCredentials

unc = UncDirectory(r'\home\shared', UncCredentials('user', 'pwd'))
conn = UncDirectoryMount(unc, DiskDrive('Z:'))

Or just connect the path without mounting it:

from win_unc import UncDirectoryConnection

conn = UncDirectoryConnection(r'\home\shared')
conn.connect()
 
File Type Py Version Uploaded on Size
win_unc-0.6.1.zip (md5) Source 2013-09-30 23KB
  • Downloads (All Versions):
  • 11 downloads in the last day
  • 51 downloads in the last week
  • 305 downloads in the last month