Open .py files on your Mac.
.py
Scripts and tools, readable at a glance without opening a project.
Loper is a free, minimal editor for macOS that opens Python instantly and colors every part of the file, so you find the value you need at a glance and can fix it right there. No IDE, no project to load, no gray wall of text.

Show the file as text
import osfrom pathlib import Path ROOT = Path(os.environ.get("MEDIA_ROOT", "/Volumes/RAID")) def clips(day: str) -> list[Path]: """Every .mov shot on a given day.""" return sorted((ROOT / day).glob("*.mov")) if __name__ == "__main__": print(len(clips("2026-10-25")), "clips")How to open .py files
- Download Loper (free, Apple silicon, signed and notarized) and move it to Applications.
- Double-click your .py file, drag it onto the Loper window, or right-click it and choose Open With › Loper.
- Want every .py file to open in Loper? Choose Loper › Make Loper the Default Editor….
More for developers
Environment files .envMarkdown .mdJSON .jsonYAML .ymlTOML .tomlTypeScript & JavaScript .tsShell scripts & dotfiles .shSQL .sqlPlain text .txtINI configuration .iniPython setup.cfg / tool config .cfgJava properties .propertiesHTML .htmlCSS and SCSS .cssJavaScript .jsRust .rsGo .goLua .luaDiff and patch .diff