Platform-independent server-share path discovery.
Project description
Platform-independent server-share path discovery.
To install:
pip install serverpath
Examples:
from serverpath import get_path
# from Windows machine without mapped network drive
get_path("server", "share")
>>> \\server\share
# from Windows machine with mapped network drive X
get_path("server", "share")
>>> X:\\
# from Windows machine where server is local machine and drive D is shared over network
get_path("my-computer", "share")
>>> D:\\
# from Unix machine with Samba mount in /mnt without share
get_path("server")
>>> /mnt/server
# from Unix machine with Samba mount in /mnt with share
get_path("server", "share")
>>> /mnt/server/share
# from Unix machine with mount in custom path
get_path("server", "share", unix_path_prefix="/mymount")
>>> /mymount/server/share
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for serverpath-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4831e8408fc9786966ded3babd21d68b8ae6e94ac2b5bc0c9da54acc055c4ab9 |
|
MD5 | 4b2411da227f9fdd8a0891c5366692b6 |
|
BLAKE2b-256 | 07051c13c04c27921f50cc0c2ca905dc5cba1536826c9eed7a49ebb89e41e661 |