mirror of
https://github.com/simonw/datasette.git
synced 2026-07-19 14:04:35 +02:00
An open source multi-tool for exploring and publishing data
https://datasette.io
- Python 79.3%
- JavaScript 11.5%
- HTML 6.2%
- CSS 2.7%
- Shell 0.1%
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?)?$>'
)
|
||
|---|---|---|
| datasite | ||
| .gitignore | ||
| .travis.yml | ||
| Dockerfile | ||
| LICENSE | ||
| setup.cfg | ||
| setup.py | ||
| test_helpers.py | ||