tavily-cli 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/PKG-INFO +9 -3
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/README.md +6 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/pyproject.toml +3 -3
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/cli.py +8 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_cli.py +10 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_defaults.py +2 -2
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_output.py +2 -2
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/.gitignore +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/LICENSE +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/install.sh +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/__init__.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/__init__.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/auth.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/crawl.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/defaults.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/extract.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/init.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/map_cmd.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/research.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/search.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/commands/update.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/common.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/config.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/init_skills.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/keyless.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/mcp_client.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/oauth.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/output.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/repl.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tavily_cli/theme.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_init.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_install_sh.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_oauth.py +0 -0
- {tavily_cli-0.2.1 → tavily_cli-0.2.2}/tests/test_update.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tavily-cli
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: Deprecated: the Tavily CLI moved to npm as @tavily/cli. This package is no longer updated.
|
|
5
5
|
Project-URL: Homepage, https://tavily.com
|
|
6
6
|
Project-URL: Documentation, https://docs.tavily.com
|
|
7
7
|
Project-URL: Repository, https://github.com/tavily-ai/tavily-cli
|
|
@@ -10,7 +10,7 @@ Author-email: Tavily <support@tavily.com>
|
|
|
10
10
|
License-Expression: MIT
|
|
11
11
|
License-File: LICENSE
|
|
12
12
|
Keywords: agents,ai,crawl,extract,llm,rag,research,tavily,web-search
|
|
13
|
-
Classifier: Development Status ::
|
|
13
|
+
Classifier: Development Status :: 7 - Inactive
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
@@ -37,6 +37,12 @@ Description-Content-Type: text/markdown
|
|
|
37
37
|
|
|
38
38
|
# Tavily CLI
|
|
39
39
|
|
|
40
|
+
> **Deprecated.** The Tavily CLI now lives on npm as [`@tavily/cli`](https://www.npmjs.com/package/@tavily/cli),
|
|
41
|
+
> with source at [tavily-ai/cli](https://github.com/tavily-ai/cli). This Python package receives no further
|
|
42
|
+
> updates. Install the current CLI with `npx @tavily/cli init`, then remove this one with
|
|
43
|
+
> `uv tool uninstall tavily-cli` or `pip uninstall tavily-cli`. Every `tvly` command in this package
|
|
44
|
+
> prints a one-line reminder on stderr; nothing else changed in this release.
|
|
45
|
+
|
|
40
46
|
CLI and agent tools for the [Tavily API](https://docs.tavily.com) — search, extract, crawl, map, and research from the command line.
|
|
41
47
|
|
|
42
48
|
> **Note:** This package provides the `tvly` command-line tool. It depends on
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Tavily CLI
|
|
2
2
|
|
|
3
|
+
> **Deprecated.** The Tavily CLI now lives on npm as [`@tavily/cli`](https://www.npmjs.com/package/@tavily/cli),
|
|
4
|
+
> with source at [tavily-ai/cli](https://github.com/tavily-ai/cli). This Python package receives no further
|
|
5
|
+
> updates. Install the current CLI with `npx @tavily/cli init`, then remove this one with
|
|
6
|
+
> `uv tool uninstall tavily-cli` or `pip uninstall tavily-cli`. Every `tvly` command in this package
|
|
7
|
+
> prints a one-line reminder on stderr; nothing else changed in this release.
|
|
8
|
+
|
|
3
9
|
CLI and agent tools for the [Tavily API](https://docs.tavily.com) — search, extract, crawl, map, and research from the command line.
|
|
4
10
|
|
|
5
11
|
> **Note:** This package provides the `tvly` command-line tool. It depends on
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tavily-cli"
|
|
7
|
-
version = "0.2.
|
|
8
|
-
description = "
|
|
7
|
+
version = "0.2.2"
|
|
8
|
+
description = "Deprecated: the Tavily CLI moved to npm as @tavily/cli. This package is no longer updated."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
license = "MIT"
|
|
@@ -14,7 +14,7 @@ authors = [
|
|
|
14
14
|
]
|
|
15
15
|
keywords = ["ai", "tavily", "web-search", "llm", "rag", "agents", "research", "crawl", "extract"]
|
|
16
16
|
classifiers = [
|
|
17
|
-
"Development Status ::
|
|
17
|
+
"Development Status :: 7 - Inactive",
|
|
18
18
|
"Intended Audience :: Developers",
|
|
19
19
|
"License :: OSI Approved :: MIT License",
|
|
20
20
|
"Operating System :: OS Independent",
|
|
@@ -15,6 +15,13 @@ from tavily_cli.commands.research import research
|
|
|
15
15
|
from tavily_cli.commands.search import search
|
|
16
16
|
from tavily_cli.commands.update import update_command
|
|
17
17
|
|
|
18
|
+
# The CLI moved to npm as @tavily/cli; this package is kept only so pinned installs keep working.
|
|
19
|
+
DEPRECATION_NOTICE = (
|
|
20
|
+
"tavily-cli on PyPI is deprecated and no longer updated. "
|
|
21
|
+
"Switch to the npm CLI: npx @tavily/cli init "
|
|
22
|
+
"(then: uv tool uninstall tavily-cli, or pip uninstall tavily-cli)"
|
|
23
|
+
)
|
|
24
|
+
|
|
18
25
|
|
|
19
26
|
@click.group(invoke_without_command=True)
|
|
20
27
|
@click.option("--version", is_flag=True, default=False, help="Show version and exit.")
|
|
@@ -34,6 +41,7 @@ def cli(ctx: click.Context, version: bool, show_status: bool, json_output: bool)
|
|
|
34
41
|
"""
|
|
35
42
|
ctx.ensure_object(dict)
|
|
36
43
|
ctx.obj["json_output"] = json_output
|
|
44
|
+
click.echo(DEPRECATION_NOTICE, err=True)
|
|
37
45
|
|
|
38
46
|
if version:
|
|
39
47
|
if json_output:
|
|
@@ -12,6 +12,16 @@ from tavily_cli import repl
|
|
|
12
12
|
from tavily_cli.cli import cli
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
def test_every_run_prints_the_deprecation_notice_on_stderr_only() -> None:
|
|
16
|
+
result = CliRunner().invoke(cli, ["--version", "--json"])
|
|
17
|
+
|
|
18
|
+
assert result.exit_code == 0
|
|
19
|
+
assert "deprecated" in result.stderr
|
|
20
|
+
assert "npx @tavily/cli init" in result.stderr
|
|
21
|
+
assert result.stdout.startswith("{")
|
|
22
|
+
assert "deprecated" not in result.stdout
|
|
23
|
+
|
|
24
|
+
|
|
15
25
|
def test_cli_help_promotes_guided_setup_and_browser_login() -> None:
|
|
16
26
|
result = CliRunner().invoke(cli, ["--help"])
|
|
17
27
|
|
|
@@ -28,7 +28,7 @@ def test_set_default_creates_both_files(homes: tuple[Path, Path]) -> None:
|
|
|
28
28
|
assert result.exit_code == 0, result.output
|
|
29
29
|
assert json.loads(claude.read_text()) == {"permissions": {"deny": ["WebSearch", "WebFetch"]}}
|
|
30
30
|
assert codex.read_text() == 'web_search = "disabled"\n'
|
|
31
|
-
assert all(r["changed"] for r in json.loads(result.
|
|
31
|
+
assert all(r["changed"] for r in json.loads(result.stdout)["results"])
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def test_claude_round_trip_preserves_existing_settings(homes: tuple[Path, Path]) -> None:
|
|
@@ -132,7 +132,7 @@ def test_project_scope_writes_to_cwd(
|
|
|
132
132
|
assert codex.read_text() == 'web_search = "disabled"\n'
|
|
133
133
|
assert not global_claude.exists()
|
|
134
134
|
assert not global_codex.exists()
|
|
135
|
-
assert {r["scope"] for r in json.loads(result.
|
|
135
|
+
assert {r["scope"] for r in json.loads(result.stdout)["results"]} == {"project"}
|
|
136
136
|
|
|
137
137
|
result = CliRunner().invoke(cli, ["unset-default", "--claude", "--codex", "--project"])
|
|
138
138
|
|
|
@@ -97,7 +97,7 @@ def test_multi_query_runs_each_with_shared_options(fake_client):
|
|
|
97
97
|
assert result.exit_code == 0, result.output
|
|
98
98
|
assert sorted(q for q, _ in fake_client.calls) == ["one", "two"]
|
|
99
99
|
assert all(kw["search_depth"] == "advanced" for _, kw in fake_client.calls)
|
|
100
|
-
lines = result.
|
|
100
|
+
lines = result.stdout.splitlines()
|
|
101
101
|
assert lines[0] == "=== [1/2] one" and lines[1] == "1. T one" and "=== [2/2] two" in lines
|
|
102
102
|
|
|
103
103
|
|
|
@@ -112,7 +112,7 @@ def test_multi_query_keeps_keyless_cap_details(fake_client, monkeypatch):
|
|
|
112
112
|
|
|
113
113
|
monkeypatch.setattr(fake_client, "search", search)
|
|
114
114
|
result = CliRunner().invoke(cli, ["search", "ok", "capped", "--json"])
|
|
115
|
-
error = json.loads(result.
|
|
115
|
+
error = json.loads(result.stdout)[1]["error"]
|
|
116
116
|
assert error["code"] == "keyless_cap" and error["retry_after_seconds"] == 60 and error["next_actions"]
|
|
117
117
|
result = CliRunner().invoke(cli, ["search", "capped", "capped"])
|
|
118
118
|
assert result.exit_code == 3 and "tvly login" in result.output
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|