Skip to main content

pathetic

A colorful, fast CLI to inspect your current environment: locations, system info, PATH with source tracing, Python environment, grouped environment variables, filesystem usage, and Git status. Built with Rich for delightful output and Click for a clean command-line UX.

Highlights

  • Visual, readable output with sensible defaults
  • Responsive columnar layout that adapts to terminal width
  • PATH entries traced back to their source file (.zshrc, /etc/paths, etc.)
  • Shows the user's active Python, not the tool's isolated environment
  • All environment variables grouped by category (Shell, Python, Git, Cloud, etc.)

Requirements

  • Python >= 3.11

Installation

Install locally (editable) while developing:

uv pip install -e .

Or install globally with uv tool:

uv tool install pathetic-cli

This exposes the ptc command.

Quickstart

Run the default, concise snapshot:

ptc

Show everything:

ptc --all

Machine-readable output:

ptc --json --all > snapshot.json

Focused views:

ptc --env                              # All env vars, grouped by category
ptc --fs                               # File system stats
ptc --env-key HOME --env-key EDITOR    # Specific env vars only
ptc --all --limit 50                   # More PATH/sys.path rows

CLI Options

ptc [OPTIONS]

Options:
  -h, --help         Show this message and exit
  --version          Show version
  --all              Show all sections
  --env              Show environment variables (grouped)
  --fs               Show file system stats
  --limit INTEGER    Max rows for PATH and sys.path (default: 25)
  --json             Output as JSON (machine-readable)
  --env-key TEXT     Show specific env vars (repeatable)

What the tool shows

  • Location: Current working directory and home directory
  • System: Platform, user's active Python version, architecture, executable
  • Environment detection: Active virtualenv/conda/uv info shown prominently
  • PATH: First N entries with source file origin and executable count (configurable with --limit)
  • Python Path: First N entries of sys.path (shown with --all)
  • Environment: All variables grouped by category (--env or --all)
  • File System: Total, free, used, and usage percent (--fs or --all)
  • Git: Branch, short commit, working state (auto-detected when in a repo)

Design philosophy

  • Defaults show the most useful, actionable info quickly
  • Additional details are opt-in via flags
  • Clean typography and responsive layout with Rich
  • PATH source tracing helps debug environment issues

Development

Install dev dependencies and run locally:

uv pip install -e .
ptc --all

Project entry point is defined in pyproject.toml:

[project.scripts]
ptc = "pathetic:main"

Troubleshooting

  • Command not found after install: ensure your Python user base or pipx bin directory is on PATH.
  • Missing colors or odd glyphs: use a modern terminal with UTF-8 and TrueColor support.

License

MIT. See LICENSE.

Metadata

Release files for pathetic-cli 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pathetic-cli 0.3.1
File Size Uploaded Provenance Actions
pathetic_cli-0.3.1.tar.gz 43.9 kB With provenance Details for pathetic_cli-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pathetic-cli 0.3.1
File Interpreter ABI Platform Actions
pathetic_cli-0.3.1-py3-none-any.whl Python 3 none any Details for pathetic_cli-0.3.1-py3-none-any.whl

Total release size: 56.4 kB

Release files / pathetic_cli-0.3.1.tar.gz

Download URL pathetic_cli-0.3.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fba6c83a07edda0d00a669d6b4565c8593a99c8c13fb1b17dc3265a58d1d3e22
BLAKE2b-256 checksum
How to use checksums
76f71196f13404b388adb97b4a6fb9f3ec1b60411c70300413244d37e4d46357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.

Transparency log

Release files / pathetic_cli-0.3.1-py3-none-any.whl

Download URL pathetic_cli-0.3.1-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c743f721ca3737c83ed8ad3d268c7602c05e1987da311b3f61c6063bb0dcb350
BLAKE2b-256 checksum
How to use checksums
0cb65eeba6cfe16851db87b9dc4286e0ee908994c6525e4746832fdae4537555
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.

Transparency log

Security for pathetic-cli 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pathetic_cli-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page