sql-tstring
github.com · Package · Maintained
Python SQL builder using PEP 750 t-strings with safe placeholders
- Developer tools
- Package
- Python
- Day-7 check
- Day-30 check
- Stars
- 162
- Forks
- 3
- Open issues
- 1
- Last commit
- Found
- 18 months ago
GitHub figures as of . They are context, not a ranking.
sql-tstring builds SQL queries from Python t-strings, turning interpolated values into database placeholders to guard against SQL injection. Identifiers such as column names cannot be placeholders, so they must be declared through a sql_context allowlist. It suits Python developers who want f-string style query building without concatenation risks.
Repository description on GitHub: “SQL-tString allows for f-string like construction of sql queries ”
What it does
- Builds SQL from Python t-strings with parameter placeholders
- Identifiers allowed only through a sql_context allowlist
- Drops parameters set to Absent for optional updates
Good for
- Write an f-string style query without injection risk
- Build a conditional UPDATE that skips optional fields
Suits: Python developers wanting safe SQL without string concatenation.
Worth knowing: Parameters must be plain variable names, so expressions such as {a - 1} are not allowed.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw sql-tstring on , when pgjones posted it to Show HN. GitHub listed no published releases for pgjones/sql-tstring when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 85 points, 35 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 85 points, 35 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: pgjones/sql-tstring
- Found: pgjones posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was sql-tstring released?
- No dated release record is available. Kip found it on Show HN on 16 May 2025.
- Is sql-tstring open source?
- Its source is public on GitHub at pgjones/sql-tstring under the MIT licence.
- What does sql-tstring run on?
- Library.
- Is sql-tstring free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is sql-tstring still maintained?
- It had a commit or release in the last year, though not in the last 90 days, as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | pgjones/sql-tstring REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-44004827. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.