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.1.tar.gz (4.6 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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shea-0.1.1.tar.gz
Algorithm Hash digest
SHA256 262415fd54a4eb803a95b70dda36a24ee36a6e194a9a5e1f40fd6c421c4555aa
MD5 43d61b2fef77313a41106d3d576db8ee
BLAKE2b-256 b6eb481b8e17ab384de01e6f1b4695e2a7c9673bb7c78e5bf14997ae268df7e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shea-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adf438921f218f11c9430aa694121bed49d3f79e1e313834f8107d0b5a3e34dc
MD5 f07939a28fbc85259f76b44b14681220
BLAKE2b-256 1d84ce74e3d1bdcb7dd975c71cbaaddc5ec403628caac8e44bc38da505cbb7dd

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