Feed aggregator

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

Hacker News - Thu, 05/28/2026 - 1:30pm

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.

Comments URL: https://news.ycombinator.com/item?id=48312436

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: What Is an "AI Engineer"?

Hacker News - Thu, 05/28/2026 - 1:26pm

I'm seeing an enormous contingency of my LinkedIn connections change their titles to "AI Engineer." I know for a fact that they're not working on any models or even AI workflows, they're just building apps and backends using AI tools like Claude.

Is that what "AI Engineer" means nowadays? Is that what companies are looking for when they open recs for "AI Engineer"? Should I be marketing myself as an "AI Engineer" just because I'm very efficient using modern AI tooling to build good non-AI software?

Comments URL: https://news.ycombinator.com/item?id=48312377

Points: 2

# Comments: 1

Categories: Hacker News

Geordie Raises $30 Million for AI Security and Governance Platform

Security Week - Thu, 05/28/2026 - 1:07pm

The funding round was led by Balderton Capital, with additional support from Crosspoint Capital and previous investors General Catalyst and Ten Eleven Ventures.

The post Geordie Raises $30 Million for AI Security and Governance Platform appeared first on SecurityWeek.

Categories: SecurityWeek

With the 40% Smaller Ring 5, Oura Succeeds Where Smartwatch Makers Have Failed

CNET Feed - Thu, 05/28/2026 - 1:04pm
Commentary: Size really is everything when it comes to wearables, something Oura has shown it understands with its reengineered Ring 5.
Categories: CNET

Registered Dietitians Swear by These 5 Air Fryer Recipes for Healthy Weeknight Meals

CNET Feed - Thu, 05/28/2026 - 1:00pm
These five dietitian-backed air fryer recipes hit the sweet spot between fast, crispy and genuinely nutritious.
Categories: CNET

The Pentagon Knew Enemies Could Track Troops’ Phones for Years. Now They Are

Wired Security - Thu, 05/28/2026 - 12:59pm
The US military has long known that cheap fixes could stop location data from exposing its troops. It adopted almost none—and now says adversaries are using the data to target soldiers during a war.
Categories: Wired Security

Robinhood Now Lets Your AI Agents Trade Stocks

SlashDot - Thu, 05/28/2026 - 12:49pm
Categories: SlashDot

GCHQ director Anne Keast-Butler confirms plans to build a national cyber defence capability using AI agents to defend critical infrastructure at ‘machine speed’

Computer Weekly Feed - Thu, 05/28/2026 - 12:49pm
GCHQ director Anne Keast-Butler confirms plans to build a national cyber defence capability using AI agents to defend critical infrastructure at ‘machine speed’
Categories: Computer Weekly

Pages