# Python Shell Scripting ## Metadata **Status**:: #x **Zettel**:: #zettel/fleeting **Created**:: [[2026-01-31]] **Child**:: [[Mise Python Task]] ## Synopsis ```python #!/usr/bin/env -S uv run --script # # /// script # dependencies = [ # "plumbum", # ] # /// from plumbum.cmd import ls, wc from plumbum import colors, TEE files = ls["--color"] & TEE count = (wc["-l"] << files[1])().strip() print("=================") print("Total: ", colors.green & colors.bold | str(count), "files") ``` Useful libraries: - [plumbum](https://plumbum.readthedocs.io/en/latest/) - [rich](https://rich.readthedocs.io/en/stable/) -