llama-index readers google integration
Project description
LlamaIndex Integration: Google Readers
Effortlessly incorporate Google-based data loaders into your Python workflow using LlamaIndex. Unlock the potential of various readers to enhance your data loading capabilities. Below are examples of integrating Google Docs and Google Sheets readers:
Google Docs Reader
from llama_index.readers.google import GoogleDocsReader
# Specify the document IDs you want to load
document_ids = ["<document_id>"]
# Load data from Google Docs
documents = GoogleDocsReader().load_data(document_ids=document_ids)
Google Sheets Reader (Documents and Dataframes)
from llama_index.readers.google import GoogleSheetsReader
# Specify the list of sheet IDs you want to load
list_of_sheets = ["spreadsheet_id"]
# Create a Google Sheets Reader instance
sheets_reader = GoogleSheetsReader()
# Load data into Pandas in Data Classes of choice (Documents or Dataframes)
documents = sheets.load_data(list_of_sheets)
dataframes = sheets_reader.load_data_in_pandas(list_of_sheets)
Integrate these readers seamlessly to efficiently manage and process your data within your Python environment, providing a robust foundation for your data-driven workflows with LlamaIndex.
Note
Make sure you have a "token.json" or a "credentials.json" file in your environment to authenticate the Google Cloud Platform
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_readers_google-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f284b84523371d13b87f6188ea899ada5bc3a77611b582a4df9910ae96510f3 |
|
MD5 | 7c94224405b1b3db9084d5a330870430 |
|
BLAKE2b-256 | 2017ab4db7b4976b27e9a0b9a0519c7e905f05b88c2ac2177529a8509e3e68b8 |
Close
Hashes for llama_index_readers_google-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15417f1c2b1258ffa1f42818136126a639597d4edb4f4144f49b9e738eee7ada |
|
MD5 | 13b7530a8b65e28db90e842ffc908e88 |
|
BLAKE2b-256 | 1def2881270f5dc69512c2c2411f8b71ab7887204df6b8c83b8ddade9670a531 |