2023-07-17 16:48:50 -07:00
|
|
|
# dclient
|
|
|
|
|
|
|
|
|
|
[](https://pypi.org/project/dclient/)
|
|
|
|
|
[](https://github.com/simonw/dclient/releases)
|
|
|
|
|
[](https://github.com/simonw/dclient/actions?query=workflow%3ATest)
|
|
|
|
|
[](https://github.com/simonw/dclient/blob/master/LICENSE)
|
|
|
|
|
|
|
|
|
|
A client CLI utility for [Datasette](https://datasette.io/) instances
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
Install `dclient` using `pip` (or [pipx](https://pipxproject.github.io/pipx/):
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
pip install dclient
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### As a Datasette plugin
|
|
|
|
|
|
2023-07-18 19:25:22 -07:00
|
|
|
If you also have Datasette installed in the same environment it will register itself as a command plugin:
|
|
|
|
|
```bash
|
|
|
|
|
datasette install dclient
|
|
|
|
|
```
|
2024-02-25 11:10:53 -08:00
|
|
|
This means you can run any of these commands using `datasette dt` instead, like this:
|
2023-07-17 16:48:50 -07:00
|
|
|
```bash
|
2024-02-25 11:10:53 -08:00
|
|
|
datasette dc --help
|
|
|
|
|
datasette dc query https://latest.datasette.io/fixtures "select * from facetable limit 1"
|
2023-07-17 16:48:50 -07:00
|
|
|
```
|
|
|
|
|
You can install it into Datasette this way using:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
datasette install dclient
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
|
|
|
|
```{toctree}
|
|
|
|
|
---
|
|
|
|
|
maxdepth: 3
|
|
|
|
|
---
|
2023-07-18 19:25:22 -07:00
|
|
|
queries
|
2023-07-17 16:48:50 -07:00
|
|
|
aliases
|
|
|
|
|
authentication
|
dclient insert command (#13)
* Move making queries to own page, refs #7
* Documentation for the dclient insert feature, refs #8
* Implemented progress bar for insert, refs #8
* --pk option
* --ignore and --replace for insert, refs #8
* --batch-size option, refs #8
* First insert test, using a mock - refs #8
* insert test that exercises against an in-memory Datasette instance, refs #8
* Insert tests now cover an error case, refs #8
* Tests for --ignore and --replace, refs #8
* Tests for different formats, refs #8
* Test for --no-detect-types
* Support for --encoding, refs #8
2023-07-24 16:22:39 -07:00
|
|
|
inserting
|
2023-07-17 16:48:50 -07:00
|
|
|
```
|