Skip to main content

A client CLI utility for Datasette instances

Project description

dclient

PyPI Changelog Tests License

A client CLI utility for Datasette instances.

Much of the functionality requires Datasette 1.0a2 or higher.

Things you can do with dclient

  • Run SQL queries against Datasette and returning the results as JSON
  • Run queries against authenticated Datasette instances
  • Create aliases and store authentication tokens for convenient access to Datasette
  • Insert data into Datasette using the insert API (Datasette 1.0 alpha or higher)

Installation

Install this tool using pip:

pip install dclient

If you want to install it in the same virtual environment as Datasette (to use it as a plugin) you can instead run:

datasette install dclient

Running a query

dclient query https://latest.datasette.io/fixtures "select * from facetable limit 1"

Documentation

Visit dclient.datasette.io for full documentation on using this tool.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dclient-0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

dclient-0.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file dclient-0.2.tar.gz.

File metadata

  • Download URL: dclient-0.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dclient-0.2.tar.gz
Algorithm Hash digest
SHA256 4e15713c8832edee8bd449d3405b4a624c52c4bb3aa94d4214417413eed25dae
MD5 1f68d0963bd2399b386e87428071f2d0
BLAKE2b-256 66c627daa1f97ae833fa03a35339b9f123004e75544d612cec8c93e3809ec518

See more details on using hashes here.

File details

Details for the file dclient-0.2-py3-none-any.whl.

File metadata

  • Download URL: dclient-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dclient-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 590280fc1760cac21ab8a5288d9d726b0938f51d35ce07344ef6029c51480aeb
MD5 aa5928780b4c60ffdd983cb9bf947807
BLAKE2b-256 401d03465b4e1b0f9a81e62ce9d463210321c0b573d024220cd38bb4bb4c1d3f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page