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 3ef35ca8b4 serve and publish commands now take a --metadata option
If provided, the --metadata option is the path to a JSON file containing
metadata that should be displayed alongside the dataset.

    datasette /tmp/fivethirtyeight.db --metadata /tmp/metadata.json

Currently that metadata format looks 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"
    }

If provided, this will be used by the index template and to populate the
common footer.

The publish command also accepts this argument, and will package any provided
metadata up and include it with the resulting Docker container.

    datasette publish --metadata /tmp/metadata.json /tmp/fivethirtyeight.db

Closes #68
2017-11-13 07:20:02 -08:00
datasette serve and publish commands now take a --metadata option 2017-11-13 07:20:02 -08:00
tests Handle table names with slashes in them 2017-11-12 15:17:00 -08:00
.gitignore Implemented multi-db support plus initial URL structure 2017-10-23 19:00:37 -07:00
.travis.yml Configured Travis CI 2017-11-04 16:47:46 -07:00
LICENSE Initial commit 2017-10-22 17:39:03 -07:00
MANIFEST.in Renamed to 'datasette' 2017-11-10 10:38:35 -08:00
setup.cfg python setup.py test now runs the tests 2017-11-04 16:40:27 -07:00
setup.py serve and publish commands now take a --metadata option 2017-11-13 07:20:02 -08:00