Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

wslpy

pypi

wslpy is far from complete. the API will change frequently.

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.exec.cmd('ver')
Microsoft Windows [Version 10.0.18219.1000]
>>> wp.convert.to('/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 far from complete. this documentation page will change frequently.

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

wslpy.isWSL()
wslpy.system.shellEnvVarList()
wslpy.system.registry(input)
wslpy.convert.to(input, toType=PathConvType.AUTO)
wslpy.convert.toWin(input) 
wslpy.convert.toWinDouble(input)
wslpy.convert.toWSL(input) 
wslpy.exec.cmd(command)
wslpy.exec.pwSh(command)
wslpy.exec.pwShCr(command)

License

This project uses GPLv3 License.

About

A python3 Library for WSL specific tasks

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages