Skip to main content

Python package for calling wslpath command in WSL environment

Project description

flake8 mypy PyPI version

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


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)

Uploaded Source

Built Distribution

wslpath_python-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for wslpath-python-0.0.3.tar.gz
Algorithm Hash digest
SHA256 901134371b0f9767cd6278d253aa4303290bea72f9e28deae0cbbc11f8542d10
MD5 3f56978f4b90852c6a0b2f772e3ee556
BLAKE2b-256 7529b4018a56a5d924048cc0e326ac3d66e81f669ba0be0ba2708bebaa4b837e

See more details on using hashes here.

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

Hashes for wslpath_python-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13c102149aa8df60aa6db88ab13bc1a6027648c31e350c918940dfdc5a9c5acd
MD5 5627c677f089dac456a7f3a9f3572c88
BLAKE2b-256 89e5dd22421bd326842381943171318821c8c0cc22b01e0f96204493fe6b5477

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page