An open source multi-tool for exploring and publishing data https://datasette.io
  • Python 88.4%
  • HTML 7.5%
  • JavaScript 2.4%
  • CSS 1.2%
  • Shell 0.3%
  • Other 0.1%
Find a file
Simon Willison 6a0c5de615 ensure_build_metadata() function for metadata
This will be run at compile time - the goal is to generate a build-
metadata.json file with a bunch of useful facts about the databases that could
be expensive to generate at run-time.

Example metadata:

    {
        "flights": {
        "file": "flights.db",
        "tables": {
            "airlines": 6048,
            "airports": 8107,
            "routes": 67663
        },
        "hash": "07d1283e07786b1235bb7041ea445ae103d1571565580a29eab0203c555725fd"
    }

So far we have a sha256 hash of the database file itself, plus a row count for
each table.

Fixes #11
2017-10-23 09:02:40 -07:00
templates ensure_build_metadata() function for metadata 2017-10-23 09:02:40 -07:00
.gitignore ensure_build_metadata() function for metadata 2017-10-23 09:02:40 -07:00
app.py ensure_build_metadata() function for metadata 2017-10-23 09:02:40 -07:00
Dockerfile Initial working proof of concept 2017-10-22 17:41:19 -07:00
LICENSE Initial commit 2017-10-22 17:39:03 -07:00
requirements.txt Initial working proof of concept 2017-10-22 17:41:19 -07:00