frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Py-SQL-cleaner – format SQL embedded in Python strings

https://github.com/enumura1/py-sql-cleaner
1•enumura•49m ago
Hi HN, I built py-sql-cleaner, a CLI for formatting SQL embedded in Python files.

Python formatters handle Python syntax. They do not format SQL written inside Python code. On the other hand, SQL formatters usually target SQL files or raw SQL text, not SQL embedded inside a Python file.

Still, I think it is not uncommon to find long SQL queries inside Python codebases.

py-sql-cleaner detects embedded SQL inside Python files and works only on that SQL. The main things it can do are: find the SQL, format it in place, or extract it into a .sql file.

It avoids rewriting SQL that depends on runtime values or template expansion. For example, SQL containing parameters like %s or :name, or Jinja-style template variables like {{ ds }}, is skipped by default.

Try it with:

    uvx py-sql-cleaner list path/to/file.py
    uvx py-sql-cleaner format path/to/file.py --dry-run
If you write Python, have run into this kind of SQL cleanup problem, or are just curious, I’d be happy if you take a look.

Anthropic raises $65B funding at a $965B post-money valuation

https://twitter.com/anthropicai/status/2060061347522433422
1•enraged_camel•31s ago•0 comments

Minutes of the 10th OpenPGP Email Summit (2026)

https://www.openpgp.org/community/email-summit/2026/minutes/
1•Velocifyer•55s ago•0 comments

Modos Flow: A paper-like monitor for reading, writing, and focused work

https://www.crowdsupply.com/modos-tech/modos-flow
1•achristmascarl•1m ago•0 comments

CIFSwitch: A non-universal Linux local root vulnerability

https://heyitsas.im/posts/cifswitch/
1•speckx•1m ago•0 comments

Show HN: Notification when coding agent is done, free

https://github.com/lucastononro/notify
1•ltononro•2m ago•0 comments

The Lone Lisp Heap

https://www.matheusmoreira.com/articles/lone-lisp-heap
1•stevekemp•4m ago•0 comments

The AI Gold Rush Is Eating Its Own

https://blog.ppb1701.com/the-ai-gold-rush-is-eating-its-own
2•lylo•5m ago•0 comments

Show HN: Skills for spec-driven AI software development

https://github.com/sebastianwessel/skills
1•puristajs•5m ago•0 comments

Show HN: Workout to Work – A desktop app that annoys you into exercising

https://gitlab.com/tivat/workout-to-work
1•blingojames•6m ago•0 comments

Here: perfectly random numbers <3

https://ethz.ch/en/news-and-events/eth-news/news/2026/05/perfect-randomness-realised-for-the-firs...
1•milmar55•10m ago•0 comments

Paris 2.0: Video diffusion model trained on decentralized, heterogeneous GPUs

https://arxiv.org/abs/2605.26064
4•royychacker•10m ago•1 comments

Anthropic raises $65B in Series H funding at $965B post-money valuation

https://www.anthropic.com/news/series-h
4•meetpateltech•10m ago•0 comments

Microsoft's stance on zero day exploits is a dumpster fire of their own making

https://doublepulsar.com/microsofts-stance-on-zero-day-exploits-is-a-dumpster-fire-of-their-own-m...
2•_tk_•11m ago•0 comments

Anthropic Tops OpenAI to Become the Most Valuable A.I. Startup

https://www.nytimes.com/2026/05/28/technology/anthropic-tops-openai-valuation.html
1•droidjj•12m ago•0 comments

Show HN: Libfyaml adds a YAML/JSON parse cache; 427 MB reloads in 36 ms

https://github.com/pantoniou/libfyaml/releases/tag/v1.0.0-alpha7
1•fypanto•13m ago•0 comments

SIA: The Open Source Self Improving AI

https://github.com/hexo-ai/sia
2•mitchwainer•16m ago•0 comments

Accelerating superintelligence starts with systems that build themselves

https://hexolabs.com/blog/accelerating-superintelligence-starts-with-systems-that-build-themselves
2•mitchwainer•18m ago•0 comments

What happens to a gift economy when the gift gets cheap?

https://davepaola.com/writing/the-gift-economy-when-code-is-free/
1•endlessvoid94•18m ago•0 comments

Show HN: A simple, sharable physics playground in the browser

https://scribblerig.josnun.com
1•JosNun•18m ago•0 comments

Alleged Kimwolf Botmaster 'Dort' Arrested, Charged in U.S. and Canada

https://krebsonsecurity.com/2026/05/alleged-kimwolf-botmaster-dort-arrested-charged-in-u-s-and-ca...
3•falcons-edge•20m ago•0 comments

Math behind May 20th Meta layoffs is most disgusting trade-off

https://old.reddit.com/r/SoftwareEngineerJobs/comments/1t6et5q/im_a_hiring_manager_the_math_behin...
1•root-parent•21m ago•0 comments

The Permission Slip – Robert X. Cringely

https://www.cringely.com/2026/05/28/the-permission-slip/
2•mhb•21m ago•0 comments

Micron Hits $1T on AI Memory Boom

https://aiweekly.co/alerts/micron-hits-1-trillion-on-ai-memory-boom
1•jeffufl•23m ago•0 comments

How Remote Workers Are Counted Changes Results

https://news.gallup.com/opinion/methodology/709289/remote-workers-counted-changes-results.aspx
1•hn_acker•24m ago•0 comments

Gnosis Lisp for the Apple II

https://computeradsfromthepast.substack.com/p/gnosis-lisp
1•rbanffy•25m ago•0 comments

CBS News Names an Outsider, Nick Bilton, to Lead '60 Minutes'

https://www.nytimes.com/2026/05/28/business/media/nick-bilton-60-minutes-bari-weiss.html
2•ChrisArchitect•26m ago•1 comments

The Tenfold Playground

https://www.inkandswitch.com/project/tenfold/playground/
2•crescit_eundo•27m ago•0 comments

Claude Opus 4.8 is generally available for GitHub Copilot

https://github.blog/changelog/2026-05-28-claude-opus-4-8-is-generally-available-for-github-copilot/
3•Klaster_1•28m ago•0 comments

Hold on for Dear Life

https://pluralistic.net/2026/05/28/we-live-in-a-society/
5•hn_acker•29m ago•0 comments

Ask HN: I found out that I'm about to be laid off. How do people find jobs?

4•wwwthrowaway256•30m ago•2 comments