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.4.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for driveconnect-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b054dfcd9a76f8ae4e7ce28ea51fe44cd850c25ff1abeed025cf410271d952d |
|
MD5 | dae2042656028aa6f5a9462d2493fa00 |
|
BLAKE2b-256 | 601f64299f17eff93bff742e0d5d24d2da6dc477bd06798601c9a0c81f2bb6ea |