An open source multi-tool for exploring and publishing data

PyPI Changelog Python 3.x License

Annotated version of this introductory video

Datasette is a tool for exploring and publishing data. It helps people take data of any shape, 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 38 tools and 91 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

5th May 2022 #

Datasette Lite is a new way to run Datasette: entirely in your browser, thanks to the Pyodide project which provides a full Python environment compiled to WebAssembly. You can use it to explore any SQLite database file hosted on a CORS-enabled static hosting provider, which includes GitHub and GitHub Pages. Read more about this project in Datasette Lite: a server-side Python web application running in a browser.

12th April 2022 #

Datasette for geospatial analysis describes how Datasette can be used in conjunction with SpatiaLite to work with geospatial data, including details of several geospatial plugins and tools from the Datasette ecosystem.

23rd March 2022 #

Datasette 0.61 introduces two potentially backwards-incompatible changes in preparation for the forthcoming 1.0 release: hashed URL mode has been moved to a new plugin, and the way URLs are generated to tables or databases containing special characters such as . or / has changed. Datasette 0.61.1 fixes a small bug in that release. See also the annotated release notes for these two versions.

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.

All news

Latest releases

23rd June 2022

datasette-scale-to-zero 0.1.2 - Quit Datasette if it has not recieved traffic for a specified time period

  • No longer logs a traceback on server exit. #2

22nd June 2022

datasette-scale-to-zero 0.1.1

  • Reduced log output when server exits. #2

21st June 2022

datasette-scale-to-zero 0.1

  • Initial release. Can be configured to cause Datasette to exit if it has not received traffic in a specified time period. #1

17th June 2022

datasette-socrata 0.3 - Import data from Socrata into Datasette

  • Any errors that occur during an import are now stored in the errors column of the socrata_imports table, and displayed by the JavaScript progress indicator. #12
  • CSV imports with long field values no longer trigger an error. #13
  • Progress bars now show the number of records imported and remaining, and hint to refresh the page when the import is complete. #10
  • Checks for low disk space using the plugin hook provided by datasette-low-disk-space-hook. #4

15th June 2022

sqlite-utils 3.27 - CLI tool and Python utility functions for manipulating SQLite databases

  • Documentation now uses the Furo Sphinx theme. (#435)
  • Code examples in documentation now have a "copy to clipboard" button. (#436)
  • sqlite_utils.utils.utils.rows_from_file() is now a documented API, see Reading rows from a file. (#443)
  • rows_from_file() has two new parameters to help handle CSV files with rows that contain more values than are listed in that CSV file's headings: ignore_extras=True and extras_key="name-of-key". (#440)
  • sqlite_utils.utils.maximize_csv_field_size_limit() helper function for increasing the field size limit for reading CSV files to its maximum, see Setting the maximum CSV field size limit. (#442)
  •, where_args=) parameters for adding additional WHERE clauses to a search query. The where= parameter is available on table.search_sql(...) as well. See Searching with (#441)
  • Fixed bug where table.detect_fts() and other search-related functions could fail if two FTS-enabled tables had names that were prefixes of each other. (#434)

11th June 2022

datasette-socrata 0.2 - Import data from Socrata into Datasette

  • Table metadata in Datasette now reflects metadata imported from Socrata. #11

10th June 2022

datasette-ics 0.5.1 - Datasette plugin for outputting iCalendar files

  • Added live demo and screenshot to the documentation. #5

datasette-socrata 0.1.1 - Import data from Socrata into Datasette

  • Fixed bug where error messages relating to incorrect configuration were served as 403 forbidden. #9

9th June 2022

datasette-socrata 0.1

  • Initial release. Adds a /-/import-socrata page which can be used to import data by providing the URL to a dataset on Socrata. #1

datasette-upload-csvs 0.7.1 - Datasette plugin for uploading CSV files and converting them to database tables

  • Fixed bug where request would block while upload was being processed. #22
  • CSV files that use an encoding other than utf-8 are now supported. #23
  • Errors during import are now displayed to the user. #24

3rd June 2022

datasette-upload-csvs 0.7

  • Now requires and is compatible with datasette>=0.61. #21
  • Dropped support for Python 3.6

31st May 2022

mbox-to-sqlite 0.1a0 - Load email from .mbox files into SQLite

30th May 2022

datasette-graphql 2.0.2 - Datasette plugin providing an automatic GraphQL API for your SQLite databases

  • Upgrade dependencies to graphene>=3.1.0 and graphql-core>=3.2.1. #88

29th May 2022

datasette-auth-existing-cookies 1.0a1 - Datasette plugin that authenticates users based on existing domain cookies

  • Fix for bug: AttributeError: 'Datasette' object has no attribute '_auth_existing_cookies_cache' #19

datasette-auth-existing-cookies 1.0a0

This alpha release breaks backwards compatibility, and completely redesigns how this plugin works. #13

  • Plugin now uses the actor_from_request() plugin hook
  • Implementation is greatly simplified: the forbidden mechanism and redirect to login via a signed next= parameter components have been removed
  • Plugin configuration settings have been renamed, see the README

All releases