Datasette
Datasette makes it easy to explore and publish data. Anyquery makes it easy to query data from any source. I see a match here. Let’s connect Datasette to Anyquery.
Prerequisites
Before you begin, ensure that you have the following:
- A working installation of Anyquery
- Datasette installed on your machine
Fetching Data
For the example, we will import two datasets:
- Commits from simow/datasette
- Foreign exchange rates from CSVBase
Let’s begin by installing the git
plugin if it has not been done already:
Next, let’s open a shell with an on-disk database and import the data:
Connecting Datasette
Let’s write the Datasette metadata file. It adds a title, description, and a custom theme created by julien040.
Now, let’s start Datasette:
Head to http://127.0.0.1:8001/datasette/datasette_commits to see the commits from the datasette repository.
Conclusion
You’ve successfully connected Datasette to Anyquery. You can see the result at https://anyquery-datasette-example.anyquery.dev