A client CLI utility for Datasette instances
  • Python 99.7%
  • Just 0.3%
Find a file
2022-11-21 18:16:28 -08:00
.github/workflows Initial library structure 2022-11-22 01:57:06 +00:00
dclient Initial dclient query command, refs #1 2022-11-21 18:16:28 -08:00
tests Initial dclient query command, refs #1 2022-11-21 18:16:28 -08:00
.gitignore Initial library structure 2022-11-22 01:57:06 +00:00
LICENSE Initial library structure 2022-11-22 01:57:06 +00:00
README.md Initial dclient query command, refs #1 2022-11-21 18:16:28 -08:00
setup.py Initial dclient query command, refs #1 2022-11-21 18:16:28 -08:00

dclient

PyPI Changelog Tests License

A client CLI utility for Datasette instances

Installation

Install this tool using pip:

pip install dclient

Usage

For help, run:

dclient --help

You can also use:

python -m dclient --help

dclient query

Usage: dclient query [OPTIONS] URL SQL

  Run a SQL query against a Datasette database URL

  Returns a JSON array of objects

Options:
  --help  Show this message and exit.

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd dclient
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest