Skip to main content

LSW: List Walker

LSW (List Walker) is a Python command-line utility inspired by ls that walks a directory and produces a browsable HTML tree, a plain-text tree, or structured exports. It can filter results by name patterns, regular expressions, directory scope, file extension, size, modification date, and traversal depth.

Public package: lsw-directory-walker on PyPI.

Latest releases are listed on the GitHub Releases page. LSW is released under the MIT License; credit is appreciated but not required.

Community request

LSW is MIT licensed. You may use it, modify it, package it, and use it commercially. Attribution beyond the license notice is not required, but it is appreciated.

Please do not misrepresent unchanged or minimally changed copies of LSW as your original work, or imply that unofficial forks, packages, or distributions are the official project or endorsed by the original author. The project name, repository identity, documentation, and branding should not be used to mislead users into thinking an unofficial redistribution is the original LSW project or is endorsed by FinickySpider. This is a request for honest attribution and branding, not an additional restriction on the MIT license.

Documentation

This repository includes a Retype documentation site. Run retype start from the repository root to preview it, or retype build to generate static files in .retype/.

Documentation deployment is automated by .github/workflows/retype-pages.yml. Set the repository's GitHub Pages source to GitHub Actions.

Future releases can be prepared with .\scripts\release.ps1, which bumps the version, runs checks, builds the package, pushes the release commit, and creates the GitHub Release that triggers PyPI publishing.

Requirements

  • Python 3.8 or newer is recommended.
  • Installing the package installs Flet so the GUI is available immediately.
  • On first run, LSW creates editable user defaults, presets, and .lswignore under %APPDATA%\lsw on Windows.
  • HTML analytics are rendered entirely by the generated report, with no external JavaScript dependency or network connection required.

Install as a command

Install the public package:

py -m pip install lsw-directory-walker

For development, install the current checkout with py -m pip install ..

After installation, use LSW from any directory:

lsw
lsw --gui

The command remains CLI-first. Running lsw does not open a window; use lsw --gui for the graphical launcher.

Quick start

From the directory containing lsw.py:

python lsw.py --path .

To open the modern desktop launcher:

lsw --gui

This writes tree_output.html and opens it in the default browser. To generate a text tree without opening a browser:

python lsw.py --path . --type txt --out tree.txt --no-browser

To export a filtered inventory:

python lsw.py --path . --type csv --ext .py,.json --ignore node_modules --out inventory.csv

To print output for use in a pipeline while also saving the same file:

lsw --path . --type json --stdout --out inventory.json
lsw --path . --type txt --stdout --out tree.txt

--stdout supports every output type and is additive, so omitting it preserves file-only behavior.

To print only, without creating a file:

lsw --path . --type json --stdout-only

Important behavior notes

  • Hidden entries are skipped by the scan functions because names beginning with . are filtered out. The show_hidden config value is currently not consumed.
  • --parallel, --no-parallel, and --workers are parsed, but the current execution path scans synchronously.
  • The theme config value is loaded but the generated HTML starts in dark mode; the report's own theme button persists the user's browser choice in localStorage.
  • .lswignore in the scanned directory takes precedence, followed by the current working directory, the file beside lsw.py, and finally the packaged default in the Python environment.
  • Existing files in %APPDATA%\lsw are never overwritten by first-run initialization.
  • CLI values override preset values only when the parsed CLI value is not None; argparse defaults can therefore remain in place instead of being replaced by a preset.

Download files

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

Source Distribution

lsw_directory_walker-0.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

lsw_directory_walker-0.2.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file lsw_directory_walker-0.2.0.tar.gz.

File metadata

  • Download URL: lsw_directory_walker-0.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lsw_directory_walker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5fb86786f233dafb4707f830fba5fe7aef9cecfb3f754ada4b8264664ee63d45
MD5 5b6a3eced2f15fa9b0a45b7c47028f03
BLAKE2b-256 8d976c7a20c8448dd4ac8839e1f0d5f5c89722a69c9246ba3da863a680eb41a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for lsw_directory_walker-0.2.0.tar.gz:

Publisher: publish-pypi.yml on FinickySpider/lsw-directory-walker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lsw_directory_walker-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lsw_directory_walker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc532872774d93c46dd740ea78b667bb16f2eb78920580cced0553af82cd160f
MD5 53d5b09715ae5272fa69dc37431b3460
BLAKE2b-256 dc681c0a20b00419d36e635250b12b41151075186b127857b3aa9962d7d979ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for lsw_directory_walker-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on FinickySpider/lsw-directory-walker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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