Cited, real implementations to study (or point an agent at) when designing or reviewing facade-shaped code.
subprocess.run. One call frontingPopen's pipes, waiting, timeout, and return-code checking;Popenstays public for streaming callers. docs.python.org/3/library/subprocess.html#subprocess.runshutil.make_archive. Walks the tree, creates the archive, writes entries, closes handles — the wholezipfile/tarfiledance in one call, with both modules importable beside it. docs.python.org/3/library/shutil.html#shutil.make_archiveurllib.request.urlopen. Hides the opener/handler chain construction every request needs;build_openerremains for callers who want the knobs. docs.python.org/3/library/urllib.request.html#urllib.request.urlopen
requests' functional API.requests.get(url)fronts Session/adapter/urllib3 machinery; theSessionobject is one import away when you need pooling or retries. requests.readthedocs.io/en/latest/api/#main-interface
Each facade owns a policy, not just a shortcut: subprocess.run decides
how waiting and non-zero exits work; urlopen decides the default handler
chain. And each leaves the machinery public — the measure of a good facade
is that power users never have to fight it.