Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Datasette

PyPI Changelog Python 3.x Tests Documentation Status License docker: datasette discord

An open source multi-tool for exploring and publishing data

Datasette is a tool for exploring and publishing data. It helps people take data of any shape or size and publish that as an interactive, explorable 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.

Explore a demo, watch a video about the project or try it out on GitHub Codespaces.

Want to stay up-to-date with the project? Subscribe to the Datasette newsletter for tips, tricks and news on what's new in the Datasette ecosystem.

Installation

If you are on a Mac, Homebrew is the easiest way to install Datasette:

brew install datasette

You can also install it using pip or pipx:

pip install datasette

Datasette requires Python 3.10 or higher. We also have detailed installation instructions covering other options such as Docker.

Basic usage

datasette serve path/to/database.db

This will start a web server on port 8001 - visit http://localhost:8001/ to access the web interface.

serve is the default subcommand, you can omit it if you like.

Use Chrome on OS X? You can run datasette against your browser history like so:

 datasette ~/Library/Application\ Support/Google/Chrome/Default/History --nolock

Now visiting http://localhost:8001/History/downloads will show you a web interface to browse your downloads data:

Downloads table rendered by datasette

metadata.json

If you want to include licensing and source information in the generated datasette website you can do so using a JSON file that looks something like this:

{
    "title": "Five Thirty Eight",
    "license": "CC Attribution 4.0 License",
    "license_url": "http://creativecommons.org/licenses/by/4.0/",
    "source": "fivethirtyeight/data on GitHub",
    "source_url": "https://github.com/fivethirtyeight/data"
}

Save this in metadata.json and run Datasette like so:

datasette serve fivethirtyeight.db -m metadata.json

The license and source information will be displayed on the index page and in the footer. They will also be included in the JSON produced by the API.

datasette publish

If you have Heroku or Google Cloud Run configured, Datasette can deploy one or more SQLite databases to the internet with a single command:

datasette publish heroku database.db

Or:

datasette publish cloudrun database.db

This will create a docker image containing both the datasette application and the specified SQLite database files. It will then deploy that image to Heroku or Cloud Run and give you a URL to access the resulting website and API.

See Publishing data in the documentation for more details.

Datasette Lite

Datasette Lite is Datasette packaged using WebAssembly so that it runs entirely in your browser, no Python web application server required. Read more about that in the Datasette Lite documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-1.0a40.tar.gz (764.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette-1.0a40-py3-none-any.whl (556.1 kB view details)

Uploaded Python 3

File details

Details for the file datasette-1.0a40.tar.gz.

File metadata

  • Download URL: datasette-1.0a40.tar.gz
  • Upload date:
  • Size: 764.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for datasette-1.0a40.tar.gz
Algorithm Hash digest
SHA256 b3fde0360f1fae58f7061f5756c200a53f9da592747154ff7a9189abb9b5923b
MD5 e47f6583e11817ce94e089ddc825f699
BLAKE2b-256 efb33f38d81bbee06578c1607433bd1e831d1d2bc1d6fad224db6f782a824750

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette-1.0a40.tar.gz:

Publisher: publish.yml on simonw/datasette

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette-1.0a40-py3-none-any.whl.

File metadata

  • Download URL: datasette-1.0a40-py3-none-any.whl
  • Upload date:
  • Size: 556.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for datasette-1.0a40-py3-none-any.whl
Algorithm Hash digest
SHA256 c31e3a197554f75449d224124e9fe3a9f3537eee5bf8c3fc776074107301ef5f
MD5 7b0c2e0ec9ea332791c2068a74dad33b
BLAKE2b-256 4cff4e81526ab06c8c82a1859c90590c73732996954fabf0689a5064768b873f

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette-1.0a40-py3-none-any.whl:

Publisher: publish.yml on simonw/datasette

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0a40 This release

2 files

0.65.5

2 files

0.65.4

2 files

0.65.3

2 files

0.65.2

2 files

0.65.1

2 files

0.65

2 files

0.64.8

2 files

0.64.7

2 files

0.64.6

2 files

0.64.5

2 files

0.64.4

2 files

0.64.3

2 files

0.64.2

2 files

0.64.1

2 files

0.64

2 files

0.63.3

2 files

0.63.2

2 files

0.63.1

2 files

0.63

2 files

0.62

2 files

0.61.1

2 files

0.61

2 files

0.60.2

2 files

0.60.1

2 files

0.60

2 files

0.59.4

2 files

0.59.3

2 files

0.59.2

2 files

0.59.1

2 files

0.59

2 files

0.58.1

2 files

0.58

2 files

0.57.1

2 files

0.57

2 files

0.56.1

2 files

0.56

2 files

0.55

2 files

0.54.1

2 files

0.54

2 files

0.53

2 files

0.52.5

2 files

0.52.4

2 files

0.52.3

2 files

0.52.2

2 files

0.52.1

2 files

0.52

2 files

0.51.1

2 files

0.51

2 files

0.50.2

2 files

0.50.1

2 files

0.50

2 files

0.49.1

2 files

0.49

2 files

0.48

2 files

0.47.3

2 files

0.47.2

2 files

0.47.1

2 files

0.47

2 files

0.46

2 files

0.45

1 file

0.44

1 file

0.43

1 file

0.42

1 file

0.41

1 file

0.40

1 file

0.39

1 file

0.38

1 file

0.37.1

1 file

0.37

1 file

0.36

1 file

0.35

1 file

0.34

1 file

0.33

1 file

0.32

1 file

0.31.2

1 file

0.31.1

1 file

0.31

1 file

0.30.2

1 file

0.30.1

1 file

0.30

1 file

0.29.3

1 file

0.29.2

1 file

0.29.1

1 file

0.29

1 file

0.28

1 file

0.27.1

1 file

0.27

1 file

0.26.2

1 file

0.26.1

1 file

0.26

1 file

0.25.2

1 file

0.25.1

1 file

0.25

1 file

0.24

1 file

0.23.2

1 file

0.23.1

1 file

0.23

1 file

0.22.1

1 file

0.22

1 file

0.21

1 file

0.20

1 file

0.19

1 file

0.18

1 file

0.17

2 files

0.16

1 file

0.15

1 file

0.14

1 file

0.13

1 file

0.12

1 file

0.11

1 file

0.10

1 file

0.9

1 file

0.8

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page