Registry / llm-agents / glean-api-client

glean-api-client

JSON →
library0.13.0pypypiunverified

Python SDK for Glean's enterprise search and AI assistant APIs, generated by Speakeasy. Current version: 0.12.24. Rapidly evolving; release cadence is weekly or upon spec changes.

pip install glean-api-client
INSTALL
IMPORT
SIG · GLEAN-API-CLIENT
G
glean-api-client
llm-agentspythonv0.13.0
Install
4.1s avg
Import
Disk
37MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.13.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 39MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 4.1s · import 0.000s · 39MB
37MB installed
● package 37MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Glean
from glean import Glean
from glean_api_client import Glean

Initialize the client with an API token and perform a basic search.

import os from glean_api_client import Glean from glean_api_client.models import shared client = Glean( access_token=os.environ.get('GLEAN_ACCESS_TOKEN', ''), server_url='https://my-glean-instance.glean.com' ) search_req = shared.SearchRequest( query='sales report 2025', page_size=10 ) resp = client.search.search(search_req) print(resp.dict() if resp else 'No results')
Debug
Known issues
breakingIn 0.11.x, the client initialization changed from positional arguments to keyword-only. Using `Glean('token')` will fail.
fix
Use keyword argument: `Glean(access_token='token')`.
affects: >=0.11.0
deprecatedAll 'deep' search and advanced filter parameters are deprecated in favor of the new `Facet` and `Filter` objects.
fix
Use `shared.Facet` and `shared.Filter` in search requests.
affects: >=0.12.0
gotchaThe SDK uses `snake_case` for Python, but the Glean API spec uses `camelCase`. Models auto-convert, but raw response dicts from `resp.raw()` return camelCase fields.
fix
Always use dot notation on response objects; avoid direct dict access unless calling `.raw()`.
affects: all
Upgrade
Version history
0.13.0latest on PyPI · released Jun 5, 2026
Audit
Dependencies
httpxrequiredHTTP client used by the SDK
pydanticrequiredData validation and serialization
Agent activity
25 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
glean-api-client — pip install glean-api-client · libregistry