nowfound

Dev tools · May 16, 2025

SQL-tString a t-string SQL builder in Python

SQL-tString is a SQL builder that utilises the recently accepted PEP-750, https://peps.python.org/pep-0750/, t-strings to build SQL queries, for example, from sql_tstring import sql val = 2 query, values = sql(t"SELECT x FROM y WHERE x = {val}") assert query == "SELECT x FROM y WHERE x = ?" assert values == [2] db.execute(query, values) # Most DB engines support this The placeholder ? protects against SQL injection, but cannot be used everywhere. For example, a column name cannot be a placeholder. If you try this SQL-tString will raise an error, col = "x" sql(t"SELECT…

SQL-tString a t-string SQL builder in Python launched on May 16, 2025 with 85 votes, #535 of 7,936 launches that month and more than 95% of that year's launches. The site was still online in December 2026, 1 year on.

In plain words

SQL-tString is a Python SQL builder that uses PEP-750 t-strings to construct database queries safely. It automatically converts variable expressions into parameterized queries with placeholders to prevent SQL injection attacks. The tool is designed for Python developers building database applications and distinguishes itself by raising errors when non-parameterizable elements like column names are used without explicit declaration, requiring developers to specify allowed values through a context manager for full query control.

written by AI from its launch page and website · 5 September 2026

Originality

80/100

Original. More original than 80% of products launched in 2025.

Similar products before it
2
in the archive on its launch day
See similar products ↓
Similar products since
3
launched after it
See similar products ↓

crowded fieldone of a kind

The score compares the words of this launch with every earlier launch in the archive: the fewer close matches on launch day, the higher the score. It says how new the idea was, not how good the product is. Similar products counted on November 30, 2026. See the similar products →This week’s most original launches →

Forecast

92%

chance that this product’s website is still online in November 2031. Typical launch of 2025 gets 87%.

1 year
98%
typical 97%
3 years
94%
typical 90%
5 years
92%
typical 87%
  • SQL-tString a t-string SQL builder in Python
  • Typical launch of 2025

Launch signals stronger than 91% of the archiveweakest → strongest

Made on November 29, 2026, when the site was online, from what was public on launch day. It is not revised, and it is graded when the site is checked again. How the forecast works and how often it is right →

From the sources

SQL-tString allows for f-string like construction of sql queries - GitHub - pgjones/sql-tstring: SQL-tString allows for f-string like construction of sql queries

In the maker’s words, at launch

SQL-tString is a SQL builder that utilises the recently accepted PEP-750, https://peps.python.org/pep-0750/, t-strings to build SQL queries, for example, from sql_tstring import sql val = 2 query, values = sql(t"SELECT x FROM y WHERE x = {val}") assert query == "SELECT x FROM y WHERE x = ?" assert values == [2]…

Pricing, as stated on its site

Free — Free and open source

checked November 2026 · prices change

  • dataherald2024 · github.com · ▲464

    Long story short: We (Dataherald) just open-sourced our entire codebase, including the core engine, the clients that interact with it and the backend application layer for authentication and RBAC. You can now use the full solution to build text-to-SQL into your product. The Problem: modern LLMs write syntactically correct SQL, but they struggle with real-world relational data. This is because real world data and schema is messy, natural language can often be ambiguous and LLMs are not trained on your specific dataset. Solution: The core NL-to-SQL engine in Dataherald is an LLM based agent…

  • SQ
    SQLite query inside a Bash function2021 · ▲134

    This is a Bash scripting technique for automating data processing workflows.

  • ORM for TypeScript with no query-builder2020 · github.com · ▲220

    An extremely simple and explicit ORM for TypeScript

  • PgTyped2020 · github.com · ▲269

    pgTyped - Typesafe SQL in TypeScript.

  • Csql2020 · github.com · ▲89

    Csql is a Python library that helps developers build SQL queries through composition.

  • SqlitDec 2025 · github.com · ▲190

    Sqlit is a terminal user interface for browsing and querying SQL databases, designed for developers who work primarily in the command line.

More dev tools this month

the category →

Is SQL-tString a t-string SQL builder in Python yours? Feature it on the home page: $19, or free with the badge →

Source: Show HN post ↗ · launch text quoted in part

Launched alongside, May 2025

the whole month →