Simon Willison’s Weblog

Newsletter
Atom feed

Elsewhere

Filters: Sorted by date

Release s3-credentials 0.1 — A tool for creating credentials for accessing S3 buckets
None
TIL Quick and dirty mock testing with mock_calls — I needed to write a test that checked for a really complex sequence of mock calls for [s3-credentials#3](https://github.com/simonw/s3-credentials/issues/3).
None
TIL Using VCR and pytest with pytest-recording — [pytest-recording](https://github.com/kiwicom/pytest-recording) is a neat pytest plugin that makes it easy to use the [VCR library](https://vcrpy.readthedocs.io/), which helps write tests against HTTP resources by automatically capturing responses and baking them into a YAML file to be replayed during the tests.
Release datasette-notebook 0.2a0 — A markdown wiki and dashboarding system for Datasette
Release datasette-notebook 0.1a2 — A markdown wiki and dashboarding system for Datasette
Release datasette-jupyterlite 0.1a0 — JupyterLite as a Datasette plugin
None
TIL Understanding Kristofer Joseph's Single File Web Component — [Via Brian LeRoux](https://twitter.com/brianleroux/status/1453472609518034944) I found [single-file-web-component.html](https://gist.github.com/kristoferjoseph/c4e47389ae0f0447db175b914e471628) by Kristofer Joseph. It's really clever! It demonstrates how to build a `<hello-world></hello-world>` custom Web Component in a single HTML file, using some neat tricks.
Release datasette 0.59.1 — An open source multi-tool for exploring and publishing data
Sighting 2:12 PM – 2:19 PM — American Crow, Heermann's Gull, Common Raven, in San Mateo County, CA, US
American Crow
American Crow
Heermann's Gull
Heermann's Gull
Common Raven
Common Raven
Common Raven
Common Raven
Common Raven
Common Raven
None
TIL Removing a git commit and force pushing to remove it from history — I accidentally triggered a commit which added a big chunk of unwanted data to my repository. I didn't want this to stick around in the history forever, and no-one else was pulling from the repo, so I decided to use force push to remove the rogue commit entirely.
Release datasette-hello-world 0.1 — The hello world of Datasette plugins
Release datasette-publish-vercel 0.11 — Datasette plugin for publishing data using Vercel
None
TIL Using the sqlite3 Python module in Pyodide - Python WebAssembly — [Pyodide](https://github.com/pyodide/pyodide) provides "Python with the scientific stack, compiled to WebAssembly" - it's an incredible project which lets you run a full working Jupyter notebook, complete with complex packages such as numpy and pandas, entirely in your browser without any server-side Python component running at all.
Release datasette-statistics 0.2 — SQL statistics functions for Datasette
Release datasette-auth-tokens 0.3 — Datasette plugin for authenticating access using API tokens
Release datasette 0.59 — An open source multi-tool for exploring and publishing data
None
TIL Using Fabric with an SSH public key — Inspired by [this tweet](https://twitter.com/driscollis/status/1445772718507376646) by Mike Driscoll I decided to try using Fabric to run commands over SSH from a Python script, using a public key for authentication.
Sighting 10:35 AM — Salt Marsh Moth, in San Mateo County, CA, US
Salt Marsh Moth
Salt Marsh Moth
Release datasette-template-request 0.1 — Expose the Datasette request object to custom templates
Release datasette-notebook 0.1a1 — A markdown wiki and dashboarding system for Datasette
Release datasette-notebook 0.1a0 — A markdown wiki and dashboarding system for Datasette
Release datasette-render-markdown 2.0 — Datasette plugin for rendering Markdown
Release sqlite-utils 3.17.1 — Python CLI utility and library for manipulating SQLite databases
None
TIL Loading lit from Skypack — [Lit 2](https://lit.dev/blog/2021-09-21-announcing-lit-2/) stable was released today, offering a tiny, feature-full framework for constructing web components using modern JavaScript.
Release twitter-to-sqlite 0.22 — Save data from Twitter to a SQLite database
None
TIL Publishing to a public Google Cloud bucket with gsutil — I decided to publish static CSV files to accompany my https://cdc-vaccination-history.datasette.io/ project, using a Google Cloud bucket (see [cdc-vaccination-history issue #9](https://github.com/simonw/cdc-vaccination-history/issues/9)).
Release datasette-statistics 0.1.1 — SQL statistics functions for Datasette
Release datasette-statistics 0.1 — SQL statistics functions for Datasette
Release json-flatten 0.2 — Python functions for flattening a JSON object to a single dictionary of pairs, and unflattening that dictionary back to a JSON object
None
TIL Configuring auto-update for an Electron app — This is _almost_ really simple. I used [electron/update-electron-app](https://github.com/electron/update-electron-app) for it, the instructions for which are: