Python package for calling wslpath command in WSL environment
Project description
wslpath-python
This is a simple Python wrapper around wslpath
command found in Windows Subsystem for Linux (WSL) environment.
This package contains a single function wslpath
that calls the wslpath
command with appropriate arguments.
Requirements
Tha package has no additional requirements. Developed and tested in Python 3.9, but it should work in Python 3.5 and above.
Installation
This package can be installed using pip
pip install wslpath-python
Example usage
>>> from wslpath import wslpath
>>>
>>> wslpath(r'C:\Users\macie')
'/mnt/c/Users/macie'
>>>
>>> from pathlib import Path
>>> wslpath(Path(r'C:\Users\macie'))
PosixPath('/mnt/c/Users/macie')
>>>
>>> wslpath('.')
'.'
>>> wslpath('.', force_absolute_path=True)
'/mnt/c/Users/macie/'
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
wslpath-python-0.0.3.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file wslpath-python-0.0.3.tar.gz
.
File metadata
- Download URL: wslpath-python-0.0.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
901134371b0f9767cd6278d253aa4303290bea72f9e28deae0cbbc11f8542d10
|
|
MD5 |
3f56978f4b90852c6a0b2f772e3ee556
|
|
BLAKE2b-256 |
7529b4018a56a5d924048cc0e326ac3d66e81f669ba0be0ba2708bebaa4b837e
|
File details
Details for the file wslpath_python-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: wslpath_python-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
13c102149aa8df60aa6db88ab13bc1a6027648c31e350c918940dfdc5a9c5acd
|
|
MD5 |
5627c677f089dac456a7f3a9f3572c88
|
|
BLAKE2b-256 |
89e5dd22421bd326842381943171318821c8c0cc22b01e0f96204493fe6b5477
|