Registry / llm-agents / llamaindex-py-client

llamaindex-py-client

JSON →
library0.1.19pypypiunverified

Official Python client for LlamaIndex cloud API, version 0.1.19. Provides easy access to LlamaCloud services like indexing, querying, and managing documents. Released as needed.

pip install llamaindex-py-client
INSTALL
IMPORT
SIG · LLAMAINDEX-PY-CLIE
L
llamaindex-py-client
llm-agentspythonv0.1.19
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.

LlamaCloudIndex
from llama_index_cloud import LlamaCloudIndex
from llamaindex_py_client import LlamaCloudIndex
The correct package name is 'llama_index_cloud' not 'llamaindex_py_client'.

Initialize a cloud index with API key from environment.

import os from llama_index_cloud import LlamaCloudIndex api_key = os.environ.get('LLAMA_CLOUD_API_KEY', '') index = LlamaCloudIndex( name="my_index", project_name="my_project", api_key=api_key ) print(index.name)
Debug
Known issues
deprecatedThe module 'llamaindex_py_client' is deprecated. Use 'llama_index_cloud' instead.
fix
Replace imports from 'llamaindex_py_client' with 'llama_index_cloud'.
affects: >=0.1.0
breakingBreaking change: API endpoints and response formats changed in v0.1.0.
fix
Update to v0.1.0+ and adjust code accordingly.
affects: <0.1.0
Upgrade
Version history
0.1.19latest on PyPI · released Apr 26, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
OpenAI (training)
1
Resources
llamaindex-py-client — pip install llamaindex-py-client · libregistry