You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,19 @@ Python client library for [Diffbot](https://www.diffbot.com) APIs.
5
5
6
6
## Installation
7
7
8
+
Install the [standalone CLI binary](#standalone-binary) for [agentic use](#how-to-use-with-an-agent):
9
+
10
+
```bash
11
+
curl -fsSL https://raw.githubusercontent.com/diffbot/diffbot-python/main/install.sh | sh
12
+
```
13
+
14
+
If you prefer, the full Python library can also be installed with pip:
15
+
8
16
```bash
9
17
python3 -m pip install diffbot-python
10
18
```
11
19
12
-
Or, for local development:
20
+
For local development:
13
21
14
22
```bash
15
23
pip install -e ".[dev]"
@@ -202,9 +210,9 @@ uv tool install .
202
210
203
211
This drops a `db` executable into `~/.local/bin` (ensure it is on your `PATH`). Use `--force` to reinstall or upgrade after changes, or `--editable` to have source edits take effect immediately. Alternatively, a plain `pip install .` (or `pip install -e .`) also installs the `db` entry point into the active environment.
204
212
205
-
### Standalone binary (no Python required)
213
+
### Standalone binary
206
214
207
-
Every release also ships a self-contained `db` binary for Linux (x86_64 and aarch64) and macOS (Apple Silicon) — no Python install needed. The installer detects your platform, verifies the SHA256 checksum, and installs (or upgrades) `db` into `~/.local/bin`:
215
+
Every release also ships a self-contained `db` binary for Linux (x86_64 and aarch64) and macOS (Apple Silicon) as a Python-free option. The installer detects your platform, verifies the SHA256 checksum, and installs (or upgrades) `db` into `~/.local/bin`:
208
216
209
217
```bash
210
218
curl -fsSL https://raw.githubusercontent.com/diffbot/diffbot-python/main/install.sh | sh
@@ -216,6 +224,8 @@ Pin a specific release or install location with flags (or the `DB_VERSION` / `DB
@@ -230,6 +240,12 @@ db entities "Apple CEO Tim Cook announced record quarterly earnings."
230
240
db entities "Apple CEO Tim Cook announced record quarterly earnings." -f dql
231
241
```
232
242
243
+
### How to use with an agent
244
+
Once installed, this library will work alongside [`diffbot-skills`](https://github.com/diffbot/diffbot-skills) to enable your agent full access to structuring web knowledge with Diffbot. Diffbot Agent Skills even unlocks some additional skills like crafting DQL from natural language.
245
+
246
+
`diffbot-skills` will pick up or install this library automatically.
0 commit comments