nackjicholson/aiosql
Simple SQL in Python observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 97
- Release rhythm 52
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 34.5
- age_days: 2831
- days_rel: 241
- days_push: 18
- n_releases_24m: 11
Adoption not part of the score
1409 stars · 65 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
aiosql is a Python library that lets you write SQL queries in plain .sql files and load them into your application as callable methods, a port of Clojure's yesql. It supports both sync and asyncio drivers for SQLite, PostgreSQL, MySQL, DuckDB, and other PEP 249-compatible databases.
Use cases
- load sql queries from files in python
- keep sql out of python string literals
- use asyncpg or aiosqlite with named queries
- version control sql alongside application code
- reuse sql files in psql and python
- yesql for python
When to choose
- you want raw SQL as first-class code files instead of an ORM
- you use asyncio database drivers and want named query methods
- you want to run the same SQL in CLI tools and your Python app
When to avoid
- you prefer an ORM with models and migrations
- you need dynamic query building rather than predefined statements
- your database driver lacks a PEP 249-compatible adapter
Facets
library · maturity active
database database-driver orm databases developer-tools backend python cross-platform sql yesql asyncio sql-files query-loading pep-249
3 sources
- readme: https://github.com/nackjicholson/aiosql · fetched 2026-08-28 · 4eec6cec5f6f
- homepage: https://nackjicholson.github.io/aiosql · fetched 2026-08-29 · c927c88acbaa
- registry_pypi: https://pypi.org/pypi/aiosql/json · fetched 2026-08-29 · dcefbe6fd203
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nackjicholson/aiosql | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="nackjicholson/aiosql")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem