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 1fc75809a6 Refactored everything into a factory function
I now call a factory function to construct the Sanic app:

    app = app_factory(files)

This allows me to pass additional arguments to it, e.g. the files to serve.

Also refactored my class-based views to accept jinja as an argument, e.g:

    app.add_route(
        TableView.as_view(jinja),
        '/<db_name:[^/]+>/<table:[^/]+?><as_json:(.jsono?)?$>'
    )
2017-11-04 19:13:44 -07:00
datasite Refactored everything into a factory function 2017-11-04 19:13:44 -07: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
Dockerfile Started work on cli, which also meant adding setup.py 2017-10-27 00:08:24 -07:00
LICENSE Initial commit 2017-10-22 17:39:03 -07:00
setup.cfg python setup.py test now runs the tests 2017-11-04 16:40:27 -07:00
setup.py Default subcommand is now serve 2017-11-04 16:53:50 -07:00
test_helpers.py python setup.py test now runs the tests 2017-11-04 16:40:27 -07:00