Registry / observability / elastic-agent-client

elastic-agent-client

JSON →
library0.0.1.dev2pypypi✓ verified 82d ago

A Python implementation of an Elastic Agent Client. Currently at version 0.0.1.dev2 (development release). Release cadence is unknown as the project is in early development. Requires Python >=3.10.

pip install elastic-agent-client
INSTALL
IMPORT
SIG · ELASTIC-AGENT-CLIE
E
elastic-agent-client
observabilitypythonv0.0.1.dev2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

ElasticAgentClient
import elastic_agent_client
from elastic_agent_client import ElasticAgentClient

Initialize the client with URL and API key from environment variables, then call health().

from elastic_agent_client import ElasticAgentClient client = ElasticAgentClient( url=os.environ.get('ELASTIC_AGENT_URL', 'http://localhost:8220'), api_key=os.environ.get('ELASTIC_AGENT_API_KEY', '') ) # Example: check health health = client.health() print(health)
Debug
Known issues
gotchaThe package is in early development (0.0.1.dev2). APIs are unstable and may change without notice.
fix
Pin to a specific version and monitor for changes.
affects: <1.0.0
gotchaThe import path uses underscores: 'elastic_agent_client', not hyphens or no underscores.
fix
Use 'from elastic_agent_client import ...'
affects: all
gotchaNo authentication is set by default; you must provide an API key or token via environment variable or constructor argument.
fix
Set ELASTIC_AGENT_API_KEY or pass api_key parameter.
affects: all
Upgrade
Version history
0.0.1.dev2latest on PyPI · released Jan 24, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
elastic-agent-client — pip install elastic-agent-client · libregistry