Skip to main content

Python Library for WSL specific tasks

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

# wslpy

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

```python
>>> from wslpy import winsys
>>> winsys.PsExec('Get-Host')


Name : ConsoleHost
Version : 5.1.18219.1000
InstanceId : ac0801e1-5d33-459e-b12d-26120c9e202a
UI : System.Management.Automation.Internal.Host.InternalHostUserI
nterface
CurrentCulture : en-US
CurrentUICulture : en-GB
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace

>>> from wslpy import convert
>>> convert.to_path('/mnt/c/Windows/')
'c:\\Windows\\'
>>>
```

## Documentation

After installation, you can import the library using `import wslpy`, or import individual class in following way:

```python
from wslpy import convert
from wslpy import winsys
```

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

```python
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.PsExec(command)
```

## License

LGPL 3.0.


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wslpy-0.0.4-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file wslpy-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: wslpy-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for wslpy-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 719433431889078d6a23790e16395a58d9c914e24c5f30627acf34ad6cf25810
MD5 625c4ba5043fe7df37086e15c0e84d19
BLAKE2b-256 7906f9028c83b8edbaa47ecba8a4ddff4d770423bfafce2b5a6190deed30435b

See more details on using hashes here.

Supported by

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