skillfed

textual-universal-directorytree

A Textual Directory Tree for all File Systems

textual-universal-directorytree v1.7.0 194.7K downloads/30d#9,825 on PyPI41
Permissive license MIT AGING released

What it is and what it does

textual-universal-directorytree is a Textual widget that renders an interactive directory tree in a terminal UI, with the key feature that it works across both local and remote filesystems. It builds on textual's DirectoryTree and extends it through universal-pathlib and fsspec to support S3, Google Cloud Storage, Azure, GitHub, SSH, SFTP, and other fsspec-compatible backends. The widget presents a familiar file-browser interface in the terminal, letting you navigate and select files from any supported filesystem using the same API.

You use it by instantiating UniversalDirectoryTree with a UPath pointing to any supported location—local path, S3 bucket, GitHub repository, or remote SSH server—and adding it to a Textual app's compose layout. The widget handles filesystem abstraction transparently; file selection events return UPath objects compatible with pathlib.Path, so your code can read and process files without caring whether they're local or remote. Optional dependencies unlock support for specific backends, so you only install what you need.

Use it for:

  • Browse and preview files in S3 buckets or other cloud storage directly from a terminal UI without switching tools
  • Build a terminal-based file manager that works uniformly across local, SSH, and cloud filesystems
  • Create a GitHub repository browser in the terminal to explore code and documentation without leaving your editor
  • Develop a remote log viewer or data explorer that can read from multiple backends (local, S3, SFTP) in one interface
  • Implement a TUI-based deployment or configuration tool that navigates both local and remote file structures

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a DirectoryTree widget for Textual terminal UIs that works with local and remote filesystems including S3, GCS, Azure, GitHub, and SSH through universal-pathlib and fsspec.

Yes, if you are building a Textual terminal UI and need to browse or interact with files across multiple filesystem types. The low install friction, permissive license, and broad filesystem support make it a solid choice for this use case. The aging maintenance status (354 days since last release) is a minor concern but not a blocker given the active repository and lack of known vulnerabilities; monitor for updates if you depend on new features or fsspec backend additions.

Install

textual-universal-directorytree on PyPI

pip

pip install textual-universal-directorytree

uv

uv add textual-universal-directorytree

poetry

poetry add textual-universal-directorytree

Installing textual-universal-directorytree

Before you install

Low friction install with just two runtime dependencies (textual and universal-pathlib). Package is aging—last release 354 days ago—but the repository remains active with recent commits and no archived status.

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.

Quickstart

pip install textual-universal-directorytree

from textual_universal_directorytree import UniversalDirectoryTree, UPath
from textual.app import App, ComposeResult

class MyApp(App):
    def compose(self) -> ComposeResult:
        yield UniversalDirectoryTree(path=UPath('.'))

Requires Python 3.9 or later. Remote filesystems (S3, GCS, Azure, GitHub, SSH) require optional dependencies like s3fs, gcsfs, adlfs, requests, or paramiko.

Verify before relying

  • Whether the 354-day gap since last release indicates active maintenance or dormancy despite recent commits
  • Performance characteristics when browsing large remote filesystems or deeply nested directory structures
  • Compatibility testing status across all listed filesystems beyond those documented in the table

Package facts

License MIT (permissive)
Python support supports the current Python release (<4,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 2 — textual, universal-pathlib
Maintenance aging — 354 days since the last release
Last repo commit
First released
Downloads 194,658/month — #9,825 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: textual_universal_directorytree-1.7.0-py3-none-any.whl

Keywords: fsspec, plugin, textual, tui

Development Status :: 4 - BetaOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

textual directory tree widgetremote filesystem browser tuis3 directory explorer terminalfsspec file tree displayuniversal pathlib directory widgetcloud storage file browserterminal ui file navigation
tui-widgetmulti-filesystemfsspec-plugin

More Terminals packages