Weeknotes: incremental improvements
I’ve been writing my talk for PyCon Argentina this week, which has proved surprisingly time consuming. I hope to have that wrapped up soon—I’m pre-recording it, which it turns out is much more work than preparing a talk to stream live.
I’ve made bits and pieces of progress on a whole bunch of different projects. Here are my notes on Datasette, plus an annotated version of my other releases-this-week.
Datasette’s base_url configuration option is designed to help run Datasette behind a proxy—so you can configure Apache or nginx to proxy
/my-datasette/ to a Datasette instance and have every internal link work correctly.
if you run Datasette behind a proxy please try out this new alpha and tell me if it works for you! Testing help is requested here.
Also in the alpha:
datasette.urlsURL builder for plugins, see Building URLs within plugins. (#904)
--debugoption, which didn’t do anything. (#814)
Link:HTTP header pagination. (#1014)
xbutton for clearing filters. (#1016)
- Edit SQL button on canned queries, (#1019)
Other releases this week
One of the features I’m planning for the official Datasette website is combined search across issues, commits, releases, plugins and documentation—powered by my Dogsheep Beta search engine.
This means I nead to load Datasette’s documentation into a SQLite database. sphinx-to-sqlite is my new tool for doing that: it uses the optional XML output from Sphinx to create a SQLite table populated with sections from the documentation, since these seem like the right unit for executing search against.
I’m now using this to build a Datasette instance at latest-docs.datasette.io with the latest documentation on every commit.
The default marker popup for
datasette-cluster-map is finally a human readable window, not a blob of JSON! You can see that in action on the global-power-plants demo.
I tried out the new PyPI resolver and found that it is a lot less tolerant of
>= dependencies, so I pushed out new releases of these two packages.
I’m using this plugin to preview the new default JSON representation I’m planning for Datasette 1.0. Carl Johnson provided some useful feedback leading to this new iteration, which now looks like this.
Quoting the release notes:
github-to-sqlite reposcommand now takes options
--readme-html, which write the README or rendered HTML README into the
readme_htmlcolumns, respectively. #52
Another feature I need for the Datasette website search engine, described above.
I also updated it to take advantage of the datasette.client internal API mechanism introduced in Datasette 0.50.
Another project bumped to 1.0. Only a small bug fix here: this can now import Apple HealthKit data from devices that use languages other than English.
TIL this week
I finally upgraded this blog to show recently added “Elsewhere” content (bookmarks and quotations) interspersed with my main entries in mobile view. I worte up this TIL to explain what I did.