Simon Willison
947645d847
First working -d based Datasette Library
...
Refs #417
First proof-of-concept for Datasette Library. Run like this:
datasette -d ~/Library
Uses a new plugin hook - available_databases()
BUT... I don't think this is quite the way I want to go.
2019-07-26 13:18:19 +03:00
Simon Willison
9c46f2f21f
Merge branch 'database-spaces' into datasette-library-simple
2019-07-25 17:21:07 +03:00
Simon Willison
f4b0bc64dc
Renamed plugin_extra_options to extra_serve_options
2019-07-25 17:15:51 +03:00
Simon Willison
a0fd07adc1
Fixed broken link in changelog
2019-07-25 17:09:37 +03:00
Simon Willison
894c424b90
New plugin hook: extra_serve_options()
2019-07-25 17:09:13 +03:00
Simon Willison
9ef0cf6d69
Refactored connection logic to database.connect()
2019-07-25 16:09:43 +03:00
Simon Willison
4fdbeb4924
Handle databases with spaces in their names
2019-07-22 18:00:07 -07:00
Simon Willison
a9453c4dda
Fixed CodeMirror on database page, closes #560
2019-07-13 20:38:40 -07:00
Simon Willison
6abe6faff6
Release 0.9.2
2019-07-13 20:04:05 -07:00
Simon Willison
90d4f497f9
Fix plus test for unicode characters in custom query name, closes #558
2019-07-13 19:49:24 -07:00
Simon Willison
5ed450a332
Fixed breadcrumbs on custom query page
2019-07-13 19:05:58 -07:00
Simon Willison
afc2e4260a
News: Single sign-on against GitHub using ASGI middleware
2019-07-13 18:42:35 -07:00
Simon Willison
d224ee2c98
Bump to uvicorn 0.8.4 ( #559 )
...
https://github.com/encode/uvicorn/commits/0.8.4
Query strings will now be included in log files: https://github.com/encode/uvicorn/pull/384
2019-07-13 15:34:57 -07:00
Simon Willison
f2006cca80
Updated release notes
2019-07-11 09:27:28 -07:00
Simon Willison
2a94f3719f
Release 0.29.1
2019-07-11 09:17:55 -07:00
Simon Willison
cc27857c72
Removed unused variable
2019-07-11 09:14:24 -07:00
Abdus
74ecf8a7cc
Fix static mounts using relative paths and prevent traversal exploits ( #554 )
...
Thanks, @abdusco! Closes #555
2019-07-11 09:13:19 -07:00
Abdus
9ca860e54f
Add support for running datasette as a module ( #556 )
...
python -m datasette
Thanks, @abdusco
2019-07-11 09:07:44 -07:00
Simon Willison
81fa8b6cdc
News: Datasette 0.29, datasette-auth-github, datasette-cors
2019-07-07 21:36:27 -07:00
Simon Willison
fb7ee8e0ad
Changelog for 0.29 release
2019-07-07 20:14:27 -07:00
Simon Willison
973f8f139d
--plugin-secret option for datasette publish
...
Closes #543
Also added new --show-files option to publish now and publish cloudrun - handy for debugging.
2019-07-07 19:06:31 -07:00
Simon Willison
2d04986c44
Added datasette-auth-github and datasette-cors plugins to Ecosystem
...
Closes #548
2019-07-07 19:02:27 -07:00
Simon Willison
aa4cc99c02
Removed facet-by-m2m from docs, refs #550
...
Will bring this back in #551
2019-07-07 18:22:05 -07:00
Simon Willison
c5542abba5
Removed ManyToManyFacet for the moment, closes #550
2019-07-07 16:21:11 -07:00
Simon Willison
9998f92cc0
Updated custom facet docs, closes #482
2019-07-07 16:19:02 -07:00
Simon Willison
912ce848b9
Fix nav display on 500 page, closes #545
2019-07-07 13:26:45 -07:00
Simon Willison
787dd427de
white-space: pre-wrap for table SQL, closes #505
2019-07-07 13:26:38 -07:00
Simon Willison
f80ff9b07b
min-height on .hd
...
Now it should be the same size on the homepage as it is on pages with breadcrumbs
2019-07-07 13:16:48 -07:00
Katie McLaughlin
d95048031e
Split pypi and docker travis tasks ( #480 )
...
Thanks @glasnt!
2019-07-07 13:03:19 -07:00
Simon Willison
fcfcae21e6
extra_template_vars plugin hook ( #542 )
...
* extra_template_vars plugin hook
Closes #541
* Workaround for cwd bug
Based on https://github.com/pytest-dev/pytest/issues/1235#issuecomment-175295691
2019-07-05 17:05:56 -07:00
Simon Willison
a18e0964ec
Refactor templates for better top nav customization, refs #540
2019-07-05 13:34:41 -07:00
Simon Willison
16fdabda97
Better robustness in face of missing raw_path
2019-07-04 07:03:02 -07:00
Simon Willison
107d47567d
Black
2019-07-03 22:56:13 -07:00
Simon Willison
25ff0a8ba6
Fix for accidentally leaking secrets in /-/metadata, closes #538
2019-07-03 22:47:45 -07:00
Simon Willison
a2d4593193
Secret plugin configuration options ( #539 )
...
Closes #538
2019-07-03 22:36:44 -07:00
Simon Willison
f0d32da0a9
Switch to ~= dependencies, closes #532 ( #536 )
...
* Switch to ~= dependencies, closes #532
* Bump click and click-default-group
* imp. is deprecated, use types.ModuleType instead - thanks https://stackoverflow.com/a/32175781
* Upgrade to pytest 5
2019-07-02 21:32:55 -07:00
Simon Willison
4d2fdafe39
Added asgi_wrapper plugin hook, closes #520
2019-07-02 21:06:25 -07:00
Simon Willison
b9ede4c189
Updated custom template docs, refs #521
2019-07-02 20:23:05 -07:00
Simon Willison
13e4f9a676
Unit test for _table custom template, refs #521
2019-07-02 20:23:05 -07:00
Simon Willison
e7120d91f6
Rename _rows_and_columns.html to _table.html, refs #521
2019-07-02 20:23:05 -07:00
Simon Willison
c461357b44
Default to raw value, use Row.display(key) for display, refs #521
2019-07-02 20:23:05 -07:00
Simon Willison
754836eef0
New experimental Row() for templates, refs #521
2019-07-02 20:23:05 -07:00
Simon Willison
7688283054
Typo
2019-06-25 08:36:39 -07:00
Simon Willison
9e97b725f1
pip install -e .[docs] for docs dependencies
2019-06-25 05:08:04 -07:00
Simon Willison
6341f8cbc7
Better coverage of sqlite-utils in FTS docs, closes #525
2019-06-24 09:28:42 -07:00
Simon Willison
34e292d24d
Porting Datasette to ASGI, and Turtles all the way down
2019-06-23 22:28:37 -07:00
Simon Willison
cdd24f3eaa
Added datasette-doublemetaphone to list of plugins
2019-06-23 21:23:24 -07:00
Simon Willison
a5591236c4
Install test dependencies so deploy can work
...
python tests/fixtures.py needs asgiref or it fails with an error
2019-06-23 20:23:07 -07:00
Simon Willison
ba8db9679f
Port Datasette from Sanic to ASGI + Uvicorn ( #518 )
...
Datasette now uses ASGI internally, and no longer depends on Sanic.
It now uses Uvicorn as the underlying HTTP server.
This was thirteen months in the making... for full details see the issue:
https://github.com/simonw/datasette/issues/272
And for a full sequence of commits plus commentary, see the pull request:
https://github.com/simonw/datasette/pull/518
2019-06-23 20:13:09 -07:00
Simon Willison
35429f9089
Revert "New encode/decode_path_component functions"
...
Refs #272
This reverts commit 9fdb47ca95
.
Now that ASGI supports raw_path we don't need our own encoding scheme!
2019-06-18 17:23:27 -07:00