Simon Willison’s Weblog

Newsletter
Atom feed for sqlite Random

885 posts tagged “sqlite”

2019

Release yaml-to-sqlite 0.2.1 — Utility for converting YAML files to SQLite
Release healthkit-to-sqlite 0.4 — Convert an Apple Healthkit export zip to a SQLite database
Release sqlite-utils 1.12.1 — Python CLI utility and library for manipulating SQLite databases
Release sqlite-utils 1.12 — Python CLI utility and library for manipulating SQLite databases
Release twitter-to-sqlite 0.14 — Save data from Twitter to a SQLite database
Release sqlite-transform 0.3 — Tool for running transformations on columns in a SQLite database

sqlite-transform. I released a new CLI tool today: sqlite-transform, which lets you run “transformations” against a SQLite database. I built it out of frustration of constantly running into CSV files that use horrible American date formatting—the “sqlite-transform parsedatetime my.db mytable col1” command runs dateutil’s parser against those columns and replaces them with a nice, sortable ISO formatted timestamp. I’ve also added a “sqlite-transform lambda” command that lets you specify Python code directly on the command-line that should be used to transform every value in a specified column.

# 4th November 2019, 2:41 am / cli, projects, sqlite

Release sqlite-transform 0.2 — Tool for running transformations on columns in a SQLite database
Release sqlite-transform 0.1 — Tool for running transformations on columns in a SQLite database
Release twitter-to-sqlite 0.13 — Save data from Twitter to a SQLite database
Release twitter-to-sqlite 0.12 — Save data from Twitter to a SQLite database
Release twitter-to-sqlite 0.11.1 — Save data from Twitter to a SQLite database
Release swarm-to-sqlite 0.2 — Create a SQLite database containing your checkin history from Foursquare Swarm
Release twitter-to-sqlite 0.11 — Save data from Twitter to a SQLite database
Release twitter-to-sqlite 0.10 — Save data from Twitter to a SQLite database

goodreads-to-sqlite (via) This is so cool! Tobias Kunze built a Python CLI tool to import your Goodreads data into a SQLite database, inspired by github-to-sqlite and my various other Dogsheep tools. It’s the first Dogsheep style tool I’ve seen that wasn’t built by me—and Tobias’ write-up includes some neat examples of queries you can run against your Goodreads data. I’ve now started using Goodreads and I’m importing my books into my own private Dogsheep Datasette instance.

# 14th October 2019, 4:07 am / books, cli, sqlite, datasette, dogsheep

Release github-to-sqlite 0.5 — Save data from GitHub to a SQLite database
Release twitter-to-sqlite 0.9 — Save data from Twitter to a SQLite database
Release twitter-to-sqlite 0.8 — Save data from Twitter to a SQLite database

Tracking PG&E outages by scraping to a git repo

Visit Tracking PG&E outages by scraping to a git repo

PG&E have cut off power to several million people in northern California, supposedly as a precaution against wildfires.

[... 868 words]

SQL Murder Mystery in Datasette (via) “A crime has taken place and the detective needs your help. The detective gave you the  crime scene report, but you somehow lost it. You vaguely remember that the crime  was a murder that occurred sometime on ​Jan.15, 2018 and that it took place in SQL  City. Start by retrieving the corresponding crime scene report from the police  department’s database.”—Really fun game to help exercise your skills with SQL by the NU Knight Lab. I loaded their SQLite database into Datasette so you can play in your browser.

# 7th October 2019, 11:37 pm / projects, sql, sqlite, datasette

Weeknotes: Dogsheep

Having figured out my Stanford schedule, this week I started getting back into the habit of writing some code.

[... 1,367 words]

Release pocket-to-sqlite 0.1 — Create a SQLite database containing data from your Pocket account
Release twitter-to-sqlite 0.7 — Save data from Twitter to a SQLite database
Release twitter-to-sqlite 0.6 — Save data from Twitter to a SQLite database

Weeknotes: Design thinking for journalists, genome-to-sqlite, datasette-atom

I haven’t had much time for code this week: we’ve had a full five day workshop at JSK with Tran Ha (a JSK alumni) learning how to apply Design Thinking to our fellowship projects and generally to challenges facing journalism.

[... 870 words]

genome-to-sqlite. I just found out 23andMe let you export your genome as a zipped TSV file, so I wrote a little Python command-line tool to import it into a SQLite database.

# 19th September 2019, 3:58 pm / genetics, projects, sqlite, datasette

Release genome-to-sqlite 0.1 — Import your genome into a SQLite database
Release github-to-sqlite 0.4 — Save data from GitHub to a SQLite database
Release github-to-sqlite 0.3 — Save data from GitHub to a SQLite database