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.

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.

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 current checkout:

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

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.1.0.tar.gz (24.3 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.1.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lsw_directory_walker-0.1.0.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for lsw_directory_walker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e63029f050df587e65b96fcd95d95b071eeaf90cdaac8e8ac5508ff5f003a8cb
MD5 69180a4a78264305c91e65d34b79d623
BLAKE2b-256 0a5dd9a4502422407fc813e5e09d4a183649ac23efcaa88df4534354c464c760

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lsw_directory_walker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c4ab3d2b89eca648350687e3e182a4762efdf154dff6b703534cb36c0c8d640
MD5 c38684487c2f13f71f8d11b7d2ab5129
BLAKE2b-256 61311da3c48f0b1b5138f450a2feeaefc1e946a7fe90f8bba539143e040c57ca

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

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