Skip to main content

WSL Management Tool

Django Kelove Setting Version Python Version

Repository

https://gitee.com/itxq/wslm.git

Installation

pip install wslm

Help

# eg:
wslm -h
wslm port -h
wslm port add -h

Base

# set encoding , PowerShell.exe PATH
wslm -e utf-8 -s PowerShell.exe
# eg:
wslm -e utf-8 -s PowerShell.exe port add -p 3306 3307 -w
wslm -e gbk -s PowerShell.exe port add -p 3306 3307 -w

Ports info

# view ports info
wslm port info

# show
Ports Info:
+---------------+------------+----------------+-------------+
| ListenAddress | ListenPort | ConnectAddress | ConnectPort |
+---------------+------------+----------------+-------------+
|    0.0.0.0    |    3306    |  172.23.60.88  |     3306    |
|    0.0.0.0    |    6379    |  172.23.60.88  |     6379    |
+---------------+------------+----------------+-------------+

NetFireWallRules Info:
+-------------------------------------+-----------+--------+---------+
|             DisplayName             | Direction | Action | Enabled |
+-------------------------------------+-----------+--------+---------+
| WSL 2 Firewall Unlock Outbound 3306 |  Outbound | Allow  |   True  |
|  WSL 2 Firewall Unlock Inbound 3306 |  Inbound  | Allow  |   True  |
| WSL 2 Firewall Unlock Outbound 6379 |  Outbound | Allow  |   True  |
|  WSL 2 Firewall Unlock Inbound 6379 |  Inbound  | Allow  |   True  |
+-------------------------------------+-----------+--------+---------+

Add Ports

# add ports
wslm port add -p 3306 3307
# add ports with firewall
wslm port add -p 3306 3307 -w
# add ports with firewall Inbound
wslm port add -p 3306 3307 -w Inbound
# add ports with firewall Outbound
wslm port add -p 3306 3307 -w Outbound

Delete Ports

# del ports
wslm port del -p 3306 3307
# del ports with firewall
wslm port del -p 3306 3307 -w
# del ports with firewall Inbound
wslm port del -p 3306 3307 -w Inbound
# del ports with firewall Outbound
wslm port del -p 3306 3307 -w Outbound

Reset Ports

# reset ports
wslm port reset
# reset ports with firewall
wslm port reset -w

WSL2 info

# view wsl info
wslm wsl info

# show
WSL2 Info:
+-------------+---------------+---------------+--------------------+
|     name    |     state     |    version    |     is_default     |
+-------------+---------------+---------------+--------------------+
|    Ubuntu   |    Running    |       2       |        True        |
|     WLE     |    Stopped    |       2       |       False        |
+-------------+---------------+---------------+--------------------+

Metadata

Release files for wslm 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wslm 1.0.1
File Interpreter ABI Platform Actions
wslm-1.0.1-py3-none-any.whl Python 3 none any Details for wslm-1.0.1-py3-none-any.whl

Release files / wslm-1.0.1-py3-none-any.whl

Download URL wslm-1.0.1-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28d09ccca6b0ee4a47a5c1addaec1c53597824aad88dad6af0311fe96cada8f9
BLAKE2b-256 checksum
How to use checksums
1954afd2a922207c320593015e9a7ab4ca9fd36fd3eb923ef1255eabe5af34bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.7.10 Linux/5.11.0-051100-generic

Security for wslm 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page