Test whether a Windows drive is connected, and connect it.
Project description
Installation
pip install driveconnect
Or:
pip install git+https:\\github.com\gwangjinkim\driveconnect.git
Usage
import driveconnect as dcn
# test, wether a drive e.g. 'M:' is connected:
dcn.is_drive_connected(drive_letter='M') # it works also with "M:"
## False
# set the credentials for the server in local folders
dcn.pss.set_credentials('.\.user', '.\.pass')
# connect to the server
# leading '\\' can be left out in server address and the 'M:' as well as 'M' both work
dcn.connect_drive('M:', '\\serveraddress\folder', '.\.user', '.\.pass')
# disconnect from the server
dcn.disconnect_drive('M:')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
driveconnect-0.1.7.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for driveconnect-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2c52542f64e4ede15ac14c848c0e88f0bc19c173f0c6cf3e4b16a57126b40f |
|
MD5 | 39619520bb7a6368993e1cd65eb5f9a0 |
|
BLAKE2b-256 | 37dac7f56f23551cfe6ee31c0052243c58c92c2b3044bf3896525a6da2dd34be |