Thin Python client for the SafeBrowse localhost daemon
Project description
safebrowse-client
Thin Python client for the SafeBrowse localhost daemon.
Install
pip install safebrowse-client
Example
from safebrowse_client import SafeBrowseClient
client = SafeBrowseClient("http://127.0.0.1:8787")
health = client.health()
print(health["status"])
This package is intentionally thin: policy enforcement lives in the SafeBrowse daemon.
Model-Connected Browser Template
The release package also includes a starter template for a model-connected browser agent that uses SafeBrowse while visiting normal external websites.
Generate a local copy:
from safebrowse_client import write_model_connected_browser_agent_template
path = write_model_connected_browser_agent_template("model_connected_browser_agent.py")
print(path)
Or inspect the template string directly:
from safebrowse_client import get_model_connected_browser_agent_template
print(get_model_connected_browser_agent_template())
The template is a real Python file with placeholders for:
- your model client
- Playwright browsing
- SafeBrowse observation checks
- SafeBrowse action gating before external navigation
- example public sites such as
https://arxiv.organdhttps://docs.python.org
Repository:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safebrowse_client-0.1.4.tar.gz.
File metadata
- Download URL: safebrowse_client-0.1.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f598f3e5e5fd73f62e754c3015e0c14c4c7af5d4337a1b1bfd07369d2b2f63e1
|
|
| MD5 |
6ad017325ebe415195bac06b0ac9ab2a
|
|
| BLAKE2b-256 |
1651f961276cfbbf2721bdb42238d756a84d10d88b49bf552e7e1a03062f0572
|
File details
Details for the file safebrowse_client-0.1.4-py3-none-any.whl.
File metadata
- Download URL: safebrowse_client-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3dc063794356a72bbb16c6264d9dd3f7833b9c0d4d1b63b79ffbb6b8553aaa
|
|
| MD5 |
9e259fc6822249511d7ff981d206feae
|
|
| BLAKE2b-256 |
695b406915fc06c5504e86c779ee09e15550d2e3a93e3ae1abaec87bc3132a9a
|