Skip to main content

A simple Python directory lister with optional tree view

Project description

shea

A simple Python directory lister with an optional tree view, similar to ls and tree.

Installation

You can install with pip (PEP 517 using Flit under the hood):

pip install .

Or directly with Flit:

python -m pip install flit
flit install

Usage

List current directory (folders first, then files):

shea

Tree view:

shea -t

Specify a path and a maximum depth:

shea --tree --depth 2 ~/projects

Output examples

Listing:

📁 src
📄 README.md
📄 pyproject.toml

Tree view:

.
├── src
│   ├── shea
│   │   ├── __init__.py
│   │   └── main.py
│   └── pyproject.toml
└── README.md

Python compatibility

Python 3.8+

License

MIT

Pre-commit (Ruff)

This repo includes a pre-commit configuration to run Ruff for linting and formatting.

Install and enable it:

python -m pip install pre-commit
pre-commit install

Run on all files once:

pre-commit run -a

Ruff lint will auto-fix simple issues on commit; if it makes changes, the commit will fail so you can review and re-commit.

Project details


Download files

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

Source Distribution

shea-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

shea-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shea-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for shea-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08b84b443579de72f25ceaea0f9a1985993f7065da422d6c395f63a219ac1cef
MD5 7e47d8cecc9c47b3c118baa1fe81116d
BLAKE2b-256 43f88517a70017bf7967b1a132d14281f7fc64c99a6f16351a9aabf5e5bf1c3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shea-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for shea-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 769294601335c80eed47dcc8f9300f5d0b644374556035b37c771ec7bae0a5ee
MD5 819a614cf00b24206d7008c1f8fe302f
BLAKE2b-256 4ac0520eed1e1cb647414acc8c6c7d3a124ed2e2cfd3ffddb6eeb7cba1d0b3bf

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