TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sane, a single file, super flexible, Python command runner

5 pointsby miguelmurcaabout 4 years ago

1 comment

miguelmurcaabout 4 years ago
Hi HN,<p>[Sane][0] is a piece of software I&#x27;ve written to deal with my grievances with Make, Just, Bazel, Meson and other build systems or command runners.<p>I&#x27;ve always been frustrated by either 1. the opaque domain-specific languages, 2. the necessary installation processes, or 3. the difficulty to keep state coherently and to write logic.<p>Sane is a single Python3 file that exports a function decorator (@recipe), and a function (sane_run), which can turn any Python file into a Make-like utility: upon execution, a dependency graph is built, checked, and ran in deterministic order.<p>[GIF]: <a href="https:&#x2F;&#x2F;github.com&#x2F;mikeevmm&#x2F;sane&#x2F;blob&#x2F;master&#x2F;demo.gif" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikeevmm&#x2F;sane&#x2F;blob&#x2F;master&#x2F;demo.gif</a><p>There is no installation process, and no external dependencies; sane is made to be redistributed with the codebase. There are no domain specific languages, because everything is Python.<p>Thoughts are welcome.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;mikeevmm&#x2F;sane" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mikeevmm&#x2F;sane</a>
评论 #26828238 未加载