Use rich-click for the CLI interfacde #11
10 changed files with 34 additions and 10 deletions
|
|
@ -1,4 +1,11 @@
|
||||||
# 0.2.0 (2026-01-19)
|
# 0.2.1 (2026-01-23)
|
||||||
|
|
||||||
|
## New features
|
||||||
|
|
||||||
|
- Use rich-click for CLI-interface implementation.
|
||||||
|
|
||||||
|
|
||||||
|
# 0.2.0 (2026-01-22)
|
||||||
|
|
||||||
## New features
|
## New features
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import importlib
|
||||||
import pkgutil
|
import pkgutil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
|
|
||||||
dtc_plugins_dir = Path(__file__).parent / 'dtc_plugins'
|
dtc_plugins_dir = Path(__file__).parent / 'dtc_plugins'
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import json
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import click
|
import rich_click as click
|
||||||
|
|
||||||
from ...communicate import (
|
from ...communicate import (
|
||||||
HTTPError,
|
HTTPError,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "dump-things-pyclient"
|
name = "dump-things-pyclient"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
description = "A client library and CLI commands for dump-things-services"
|
description = "A client library and CLI commands for dump-things-services"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
|
|
@ -10,6 +10,7 @@ authors = [
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"click>=8.3.1",
|
"click>=8.3.1",
|
||||||
"requests>=2.32.5",
|
"requests>=2.32.5",
|
||||||
|
"rich-click>=1.9.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
|
|
|
||||||
18
uv.lock
generated
18
uv.lock
generated
|
|
@ -369,11 +369,12 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dump-things-pyclient"
|
name = "dump-things-pyclient"
|
||||||
version = "0.1.4"
|
version = "0.2.0"
|
||||||
source = { virtual = "." }
|
source = { virtual = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "click" },
|
{ name = "click" },
|
||||||
{ name = "requests" },
|
{ name = "requests" },
|
||||||
|
{ name = "rich-click" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.optional-dependencies]
|
[package.optional-dependencies]
|
||||||
|
|
@ -390,6 +391,7 @@ requires-dist = [
|
||||||
{ name = "dump-things-service", marker = "extra == 'ttl'", specifier = ">=5.3.0" },
|
{ name = "dump-things-service", marker = "extra == 'ttl'", specifier = ">=5.3.0" },
|
||||||
{ name = "pytest", marker = "extra == 'tests'", specifier = ">=9.0.1" },
|
{ name = "pytest", marker = "extra == 'tests'", specifier = ">=9.0.1" },
|
||||||
{ name = "requests", specifier = ">=2.32.5" },
|
{ name = "requests", specifier = ">=2.32.5" },
|
||||||
|
{ name = "rich-click", specifier = ">=1.9.6" },
|
||||||
]
|
]
|
||||||
provides-extras = ["ttl", "tests"]
|
provides-extras = ["ttl", "tests"]
|
||||||
|
|
||||||
|
|
@ -1846,6 +1848,20 @@ wheels = [
|
||||||
{ url = "https://files.pythonhosted.org/packages/25/7a/b0178788f8dc6cafce37a212c99565fa1fe7872c70c6c9c1e1a372d9d88f/rich-14.2.0-py3-none-any.whl", hash = "sha256:76bc51fe2e57d2b1be1f96c524b890b816e334ab4c1e45888799bfaab0021edd", size = 243393, upload-time = "2025-10-09T14:16:51.245Z" },
|
{ url = "https://files.pythonhosted.org/packages/25/7a/b0178788f8dc6cafce37a212c99565fa1fe7872c70c6c9c1e1a372d9d88f/rich-14.2.0-py3-none-any.whl", hash = "sha256:76bc51fe2e57d2b1be1f96c524b890b816e334ab4c1e45888799bfaab0021edd", size = 243393, upload-time = "2025-10-09T14:16:51.245Z" },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rich-click"
|
||||||
|
version = "1.9.6"
|
||||||
|
source = { registry = "https://pypi.org/simple" }
|
||||||
|
dependencies = [
|
||||||
|
{ name = "click" },
|
||||||
|
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||||
|
{ name = "rich" },
|
||||||
|
]
|
||||||
|
sdist = { url = "https://files.pythonhosted.org/packages/4b/50/1497dbc52297d6759451bf5a991e9b2d0a122a5d33ac8cd057f81cb9910a/rich_click-1.9.6.tar.gz", hash = "sha256:463bd3dbef54a812282bfa93dde80c471bce359823fc1301be368eab63391cb2", size = 74777, upload-time = "2026-01-22T02:43:58.374Z" }
|
||||||
|
wheels = [
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/47/87/508930def644be9fb86fec63520151921061c152289b98798017a498d678/rich_click-1.9.6-py3-none-any.whl", hash = "sha256:e78d71e3f73a55548e573ccfd964e18503936e2e736a4a1f74c6c29479a2a054", size = 71430, upload-time = "2026-01-22T02:43:56.939Z" },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rich-toolkit"
|
name = "rich-toolkit"
|
||||||
version = "0.17.0"
|
version = "0.17.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue