mirror of
https://github.com/simonw/dclient.git
synced 2026-07-23 17:34:32 +02:00
Replace aliases.json with config.json storing instances with default_database. Instance resolution: -i flag → config default → DATASETTE_URL. Database resolution: -d flag → instance default_database → DATASETTE_DATABASE. Token resolution: --token → auth.json by alias → auth.json by URL → DATASETTE_TOKEN. Add click-default-group dependency for bare SQL shortcut support. Add DCLIENT_CONFIG_DIR env var to override config directory. Rewrite query, insert, get, and actor commands for v2 API where instance is always -i flag. Add upsert command sharing insert implementation. Add databases, tables, schema, plugins commands. Add default_query hidden command for bare SQL shortcut. Add alias default, alias default-db subcommands. Add auth status subcommand. refs #29 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
902 B
TOML
43 lines
902 B
TOML
[project]
|
|
name = "dclient"
|
|
version = "0.4"
|
|
description = "A client CLI utility for Datasette instances"
|
|
readme = "README.md"
|
|
authors = [{name = "Simon Willison"}]
|
|
license = "Apache-2.0"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"click",
|
|
"click-default-group",
|
|
"httpx",
|
|
"sqlite-utils",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/simonw/dclient"
|
|
Issues = "https://github.com/simonw/dclient/issues"
|
|
CI = "https://github.com/simonw/dclient/actions"
|
|
Changelog = "https://github.com/simonw/dclient/releases"
|
|
|
|
[project.scripts]
|
|
dclient = "dclient.cli:cli"
|
|
|
|
[project.entry-points.datasette]
|
|
client = "dclient.plugin"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest",
|
|
"pytest-asyncio",
|
|
"pytest-httpx",
|
|
"cogapp",
|
|
"pytest-mock",
|
|
"datasette>=1.0a2",
|
|
]
|
|
|
|
[tool.uv.build-backend]
|
|
module-root = ""
|
|
|
|
[build-system]
|
|
requires = ["uv_build>=0.9.18,<0.10.0"]
|
|
build-backend = "uv_build"
|