{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/17"},{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Load SQL queries from files and call them as Python methods, supporting both sync and async database drivers across SQLite, PostgreSQL, MySQL, MariaDB, DuckDB, and MS SQL Server.","skillfed_tags":["sql-file-loader","async-database"],"use_cases":["Organize complex SQL queries in version-controlled .sql files for a Python application using SQLite or PostgreSQL","Run the same parameterized SQL queries from both Python code and command-line tools like psql without duplication","Build async applications that execute multiple SQL queries concurrently using aiosqlite or asyncpg","Maintain SQL code separately from Python when you prefer hand-written queries over ORM-generated SQL","Support multiple database backends (SQLite, PostgreSQL, MySQL, DuckDB) with a single query file and driver parameter"],"what_it_does":"aiosql lets you organize SQL queries in separate .sql files and load them into Python as callable methods, rather than embedding SQL as strings in your code. This approach keeps your SQL reusable\u2014you can run the same queries in psql or other database tools without modification\u2014while maintaining clean separation between SQL and Python logic.\n\nThe package works with both synchronous PEP 249 drivers (sqlite3, psycopg2, PyMySQL, etc.) and asyncio-based drivers (aiosqlite, asyncpg, asyncmy, etc.). You write parametric SQL with named parameters, load the file via aiosql.from_path(), and call queries by name, passing a connection object and any required parameters. It's a lightweight alternative to ORMs when you want to write and maintain SQL directly.","worth_installing":"Yes. aiosql is actively maintained, has no runtime dependencies, requires only Python >=3.10, and carries no known vulnerabilities. It's worth installing if you want to keep SQL in files and call it from Python without an ORM, and you're comfortable writing SQL directly. Skip it if you need an ORM or prefer SQL-like syntax in Python."},"id":"aiosql","links":{"html":"https://skillfed.io/packages/aiosql","md":"https://skillfed.io/packages/aiosql.md","pypi":"https://pypi.org/project/aiosql/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-04","license_spdx":"BSD-2-Clause","license_treatment":"permissive","name":"aiosql","python_support":"supports_current","summary":"Simple SQL in Python"},"popularity":{"monthly_downloads":162590,"position":10595,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"15.0"}
