
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
sqlite-utils-llm
Advanced tools
This is a plugin for sqlite-utils that adds a custom SQL function llm(model, prompt) that can be used to call out to an LLM model using the llm command line tool.
Have sqlite-utils and llm already installed, then install this package with pip:
sqlite-utils install sqlite-utils-llm
Given the following combos.csv file with ice cream flavor combinations we want to complete the suggestion column with a flavor suggestion based on the other two flavors using an LLM.
flavor1,flavor2,suggestion
vanilla,chocolate,
strawberry,vanilla,
chocolate,strawberry,
mint,lemon,
Let's load the data into a SQLite database:
% sqlite-utils insert icecream.db combos combos.csv --csv --empty-null
Now we can use the llm function to update the suggestion column with a flavor suggestion:
% sqlite-utils query icecream.db "UPDATE combos set suggestion=llm('gpt-4o-mini', 'What other flavor would I like if I have choosen ' || flavor1 || ' and ' || flavor2 || '? Return just the name of the flavor.')"
Now we can query the table to see the suggestions:
% sqlite-utils query icecream.db "SELECT * FROM combos" --table
flavor1 flavor2 suggestion
---------- ---------- ------------
vanilla chocolate Strawberry
strawberry vanilla Chocolate
chocolate strawberry Vanilla
mint lemon Basil
FAQs
Run llm from sqlite
We found that sqlite-utils-llm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.