Skip to content
A python3 Library for WSL specific tasks
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode use wsl python wrapper for now Apr 8, 2019
wslpy update winvar to system Apr 8, 2019
.gitignore wslpy released Sep 5, 2018
LICENSE LICENSE update and REAMDE update Apr 8, 2019
README.md LICENSE update and REAMDE update Apr 8, 2019
setup.py

README.md

wslpy

pypi

This is a Python3 library for WSL specific tasks, and you can use it to do something amazing:

>>> import wslpy as wp
>>> wp.isWSL
True
>>> wp.winsys.CmdExec('ver')
Microsoft Windows [Version 10.0.18219.1000]
>>> wp.convert.to_path('/mnt/c/Windows/')
'c:\\Windows\\'
>>>

Installation

you can install from pypi using pip install wslpy, or install from source using python3 setup.py install

Documentation

wslpy is a small library, it consist following functions and constants:

wslpy.isWSL
wslpy.convert.reg_list()
wslpy.convert.from_reg(input)
wslpy.convert.to_path(input, toType = PathConvType.AUTO)
wslpy.winsys.build
wslpy.winsys.branch
wslpy.winsys.long_build
wslpy.winsys.CmdExec(command)
wslpy.winsys.PwShExec(command)
wslpy.winsys.PwShCrExec(command)

License

This project uses GPLv3 License.

You can’t perform that action at this time.