An open source multi-tool for exploring and publishing data
APACHE-2.0 License
Bot releases are hidden (Show)
Published by simonw about 4 years ago
Published by simonw about 4 years ago
datasette -o
option which opens your browser as soon as Datasette starts up. (#970
sqlite3.enable_callback_tracebacks(True)
so errors in custom SQL functions will now display tracebacks. (#891)Published by simonw about 4 years ago
Published by simonw about 4 years ago
pages/about/{slug}.html
will be used to render any requests to /about/something
. See Path parameters for pages. (#944)register_output_renderer()
render functions can now return a Response
. (#953)--upgrade
option for datasette install
. (#945)datasette --pdb
option. (#962)datasette --get
exit code now reflects the internal HTTP status code. (#947)raise_404()
template function for returning 404 errors. (#964)datasette publish heroku
now deploys using Python 3.8.5500.html
to error.html
.Published by simonw about 4 years ago
datasette --pdb
option. (#962)datasette --get
exit code now reflects the internal HTTP status code. (#947)Published by simonw about 4 years ago
db.is_mutable
property is now documented and tested, see Database introspection.extra_template_vars
, extra_css_urls
, extra_js_urls
and extra_body_script
plugin hooks now all accept the same arguments. See extra_template_vars(template, database, table, columns, view_name, request, datasette) for details. (#939)columns
argument detailing the table columns that will be rendered on that page. (#938)db.execute_write_fn()
could hang Datasette if the connection failed. (#935)?_nl=on
output option and binary data. (#914)Published by simonw about 4 years ago
Published by simonw about 4 years ago
brew install simonw/datasette/datasette
. See Using Homebrew. (#335)datasette install name-of-plugin
and datasette uninstall name-of-plugin
. These are equivalent to pip install
and pip uninstall
but automatically run in the same virtual environment as Datasette, so users don't have to figure out where that virtual environment is - useful for installations created using Homebrew or pipx
. See Installing plugins. (#925)datasette --get
, accepts a path to a URL within the Datasette instance. It will run that request through Datasette (without starting a web server) and print out the repsonse. See datasette --get for an example. (#926)Published by simonw about 4 years ago
Warning: This release contains a security fix related to authenticated writable canned queries. If you are using this feature you should upgrade as soon as possible.
master
to main
. (#849)/-/allow-debug tool
(demo here) helps test allow blocks against actors, as described in Defining permissions with "allow" blocks. (#908)white-space: pre-wrap
. (#896)await request.post_body()
method for accessing the raw POST body, see Request object. (#897)content-length
HTTP header, enabling download progress bars. (#905)content-disposition
HTTP header. (#909)tests
are now excluded from the Datasette package properly - thanks, abeyerpath. (#456)sdist
as well as bdist_wheel
.--plugins-dir
option - thanks, Amjith Ramanujam. (#890)Published by simonw over 4 years ago
Magic parameters for canned queries, a log out feature, improved plugin documentation and four new plugin hooks.
Canned queries now support Magic parameters, which can be used to insert or select automatically generated values. For example:
insert into logs
(user_id, timestamp)
values
(:_actor_id, :_now_datetime_utc)
This inserts the currently authenticated actor ID and the current datetime. (#842)
The ds_actor cookie can be used by plugins (or by Datasette's --root mechanism) to authenticate users. The new /-/logout
page provides a way to clear that cookie.
A "Log out" button now shows in the global navigation provided the user is authenticated using the ds_actor
cookie. (#840)
The plugin documentation has been re-arranged into four sections, including a brand new section on testing plugins. (#687)
view-table
they can view the table page even if they do not have view-database
or view-instance
. (#832)Authentication: Bearer token
requests or requests without cookies. (#835)datasette.add_message()
now works inside plugins. (#864)scope["actor"]
if already set by ASGI middleware. (#854){{ csrftoken() }}
now works when plugins render a template using datasette.render_template(..., request=request)
. (#863)Published by simonw over 4 years ago
Published by simonw over 4 years ago
Published by simonw over 4 years ago
Published by simonw over 4 years ago
Published by simonw over 4 years ago
Published by simonw over 4 years ago
Published by simonw over 4 years ago
Authentication and permissions, writable canned queries, flash messages, new plugin hooks and more. Full release notes. See also Datasette 0.44: the annotated release notes.