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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file serverpath-0.1.4-py3-none-any.whl.
File metadata
- Download URL: serverpath-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4831e8408fc9786966ded3babd21d68b8ae6e94ac2b5bc0c9da54acc055c4ab9
|
|
| MD5 |
4b2411da227f9fdd8a0891c5366692b6
|
|
| BLAKE2b-256 |
07051c13c04c27921f50cc0c2ca905dc5cba1536826c9eed7a49ebb89e41e661
|