Skip to main content

Python Library for WSL specific tasks

Project description

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.cmdPmt('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.cmdPmt(command)
wslpy.exec.powShl(command)
wslpy.exec.powShlCor(command)

License

This project uses GPLv3 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wslpy, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size wslpy-0.0.10-py3-none-any.whl (16.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wslpy-0.0.10.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page