Skip to content

Commit a46f312

Browse files
committed
chore: use rich.print in examples
1 parent 4b720b2 commit a46f312

File tree

6 files changed

+67
-0
lines changed

6 files changed

+67
-0
lines changed

examples/1_direct_search_results.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
for instance in a RAG system, with the output_type parameter set to "searchResults".
44
"""
55

6+
from rich import print
7+
68
from linkup import LinkupClient
79

810
client = LinkupClient()

examples/2_sourced_answer_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
along with the sources supporting it.
55
"""
66

7+
from rich import print
8+
79
from linkup import LinkupClient
810

911
client = LinkupClient()

examples/3_structured_search.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from pydantic import BaseModel, Field
8+
from rich import print
89

910
from linkup import LinkupClient
1011

examples/4_asynchronous_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import asyncio
88
import time
99

10+
from rich import print
11+
1012
from linkup import LinkupClient
1113

1214
client = LinkupClient()

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dev = [
3434
"pytest-cov>=6.2.1",
3535
"pytest-mock>=3.14.1",
3636
"pytest>=8.4.1",
37+
"rich>=14.1.0",
3738
]
3839

3940
[tool.mypy]

uv.lock

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)