Annotated version of this introductory video
Datasette is a tool for exploring and publishing data. It helps people take data of any shape or size, analyze and explore it, and publish it as an interactive website and accompanying API.
Datasette is aimed at data journalists, museum curators, archivists, local governments, scientists, researchers and anyone else who has data that they wish to share with the world. It is part of a wider ecosystem of tools and plugins dedicated to making working with structured data as productive as possible.
Try a demo and explore 33,000 power plants around the world, then follow the tutorial or take a look at some other examples of Datasette in action.
Then read how to get started with Datasette, subscribe to the monthly-ish newsletter and consider signing up for office hours for an in-person conversation about the project.
New: Datasette Desktop - a macOS desktop application for easily running Datasette on your own computer!
Exploratory data analysis
Import data from CSVs, JSON, database connections and more. Datasette will automatically show you patterns in your data and help you share your findings with your colleagues.
Instant data publishing
datasette publish lets you instantly publish your data to hosting providers like Google Cloud Run, Heroku or Vercel.
Rapid prototyping
Spin up a JSON API for any data in minutes. Use it to prototype and prove your ideas without building a custom backend.
Latest news
27th February 2022 #
The first two of an ongoing series of official Datasette tutorials are now available: Exploring a database with Datasette introduces the Datasette web interface and shows how it can be used to explore a new database, and Learn SQL with Datasette provides an introduction to SQL using Datasette as a learning environment.
13th January 2022 #
Datasette 0.60 adds a new filters_from_request plugin hook, new internal methods for writing to the database, better performance and various faceting improvements. See also the annotated release notes.
5th December 2021 #
Observable notebooks recently added a SQL cell type, allowing SQL queries to be executed as part of an interactive notebook workflow. Alex Garcia built a Datasette Client for these which allows you to excute queries against any Datasette instance and explore and visualize the results using JavaScript code running in a notebook.
14th October 2021 #
Datasette 0.59 adds column descriptions in metadata, a new register_command plugin hook, enhanced --cors support and a bunch of other fixes and documentation improvements. See also the annotated release notes.
8th September 2021 #
Datasette Desktop is a new macOS desktop application version of Datasette, which supports opening SQLite files on your computer, importing CSV files and installing plugins. I wrote more about how it works in Datasette Desktop—a macOS desktop application for Datasette.
28th July 2021 #
The Baked Data architectural pattern describes a pattern commonly used with Datasette where the content for a site is bundled inside a SQLite database file and included alongside templates and application code in a deployment to a serverless hosting provider.
15th July 2021 #
Datasette 0.58 has new plugin hooks, a huge performance improvement for faceting, support for Unix domain sockets and several other improvements. Read the annotated release notes for extra background and context on the release.
5th June 2021 #
Datasette 0.57 is out with an important security patch plus a number of new features and bug fixes. Datasette 0.56.1, also out today, provides the security patch for users who are not yet ready to upgrade to the latest version.
10th May 2021 #
Django SQL Dashboard is a new tool that brings a useful authenticated subset of Datasette to Django projects that are built on top of PostgreSQL.
28th March 2021 #
Datasette 0.56 has bug fixes and documentation improvements, plus some new documented internal APIs for plugin authors and SpatiaLite 5 bundled with the official Datasette Docker container.
18th February 2021 #
Datasette 0.55 adds support for cross-database SQL queries. You can now run datasette --crossdb one.db two.db and then run queries that join data from tables in both of those database files - see cross-database queries in the documentation for more details.
sqlite-utils 3.6 adds similar features: a db.attach(alias, filepath) Python API method and --attach alias filepath.db command-line option, both for attaching additional databases in order to execute cross-database queries.
7th February 2021 #
This new Video introduction to Datasette and sqlite-utils provides a full introduction to both Datasette and sqlite-utils in 17 minutes, including a live demo of creating a database from a CSV file and publishing it to Google Cloud Run.
3rd February 2021 #
Serving map tiles from SQLite with MBTiles and datasette-tiles. datasette-tiles is a new plugin that adds a tile server to Datasette, serving map tiles from databases that conform to the MBTiles specification. download-tiles is a tool for building these databases, and datasette-basemap is a plugin that bundles a 22MB SQLite database with OpenStreetMap tiles covering zoom levels 0-6 for the entire world.
25th January 2021 #
Datasette 0.54 is out today. Highlights include the new _internal in-memory database exposing details of connected tables, plus support for JavaScript modules in plugins and add-on scripts. More commentary on this release is available in the annotated release notes.
24th January 2021 #
Drawing shapes on a map to query a SpatiaLite database introduces the new datasette-leaflet-freedraw plugin, which adds support for drawing shapes on a map to specify a GeoJSON MultiPolygon that can be used to query SpatiaLite databases.
Latest releases
4th March 2022
geojson-to-sqlite 1.0
- New
--propertiesoption for writing GeoJSON properties to a JSON column calledproperties- or use--properties=propsto write to a column calledprops. Thanks, Chris Amico. #25
2nd March 2022
sqlite-utils 3.25
- New
hash_id_columns=parameter for creating a primary key that's a hash of the content of specific columns - see Setting an ID based on the hash of the row contents for details. (#343) - New db.sqlite_version property, returning a tuple of integers representing the version of SQLite, for example
(3, 38, 0). - Fixed a bug where register_function(deterministic=True) caused errors on versions of SQLite prior to 3.8.3. (#408)
- New documented hash_record(record, keys=...) function.
sqlite-colorbrewer v0.2.0
Mark function as deterministic on Python 3.8 or later.
1st March 2022
geocode-sqlite v0.5.2
What's Changed
- Require click >= 7.0 to hide commands by @1-Byte in https://github.com/eyeseast/geocode-sqlite/pull/20
- Fix error with rowid tables by @eyeseast in https://github.com/eyeseast/geocode-sqlite/pull/27
Full Changelog: https://github.com/eyeseast/geocode-sqlite/compare/v0.5.1...v0.5.2
datasette-dateutil 0.3
- The
dateutil_parse(),dateutil_parse_fuzzy(),dateutil_parse_dayfirst()anddateutil_parse_fuzzy_dayfirst()functions all now accept an optional second argument specifying a "default" datetime to consider if some of the details are missing. #5
26th February 2022
datasette-render-markdown 2.1
- Fixed bug where potential URLs inside of
<pre>links were being turned into links. #11
23rd February 2022
datasette-redirect-forbidden 0.1
- Initial release. #1
21st February 2022
sqlite-diffable 0.2.1
- README now includes a description of the file format and a link to a demo. #5
20th February 2022
google-drive-to-sqlite 0.4
- Redesigned the schema to reflect that Google Drive files can only have one, not multiple owners. #34
- Removed
drive_folders_ownersanddrive_files_ownerstables. drive_filesanddrive_foldersnow have a_ownercolumn that is a foreign key todrive_users.- New google-drive-to-sqlite export format file_id command for exporting Google Docs files as different formats such as
pdf. #21 - New options to
files:--appsfor all Google Docs files of all types, or--docs,--sheets,--presentationsand--drawingsfor Google Docs files of specific types. google-drive-to-sqlite filesandgetcommands now have a--verboseoption showing what the tool is doing in detail.- Automatically retries up to twice on HTTP transport errors, with a 2 second delay. #18
- The
auth.jsonfile now defaults to0600permissions, meaning only the user can read that file on a shared system. #37
19th February 2022
google-drive-to-sqlite 0.3
- New design for the database schema: #9
drive_filescontains files, with a_parentforeign key to the parent folderdrive_folderscontains folders, with a self-referential_parentforeign keydrive_userscontains users who may own or have modified filesdrive_folders_ownersrelates folders to their ownersdrive_files_ownersrelates files to their owners- The full schema is now included in the documentation.
- New
--import-jsonand--import-nloptions to thefilescommand for creating a database using JSON data retrieved previously using the--nland--jsonoptions. #20 --starred,--trashedand--shared-with-meoptions forfilesas shortcuts for constructing more advanced search queries. #25- Documentation now has a quickstart section. #24

