# SheetsBaseTool

> **Class** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/sheets/base/SheetsBaseTool)

Base class for Google Sheets tools.

Authentication:
- `api_resource`: OAuth2 credentials for full access (read/write private sheets)
- `api_key`: API key for read-only access (public sheets only)

!!! note

    Write operations require OAuth2 credentials.

## Signature

```python
SheetsBaseTool()
```

## Extends

- `BaseTool`

## Properties

- `api_resource`
- `api_key`

## Methods

- [`from_api_resource()`](https://reference.langchain.com/python/langchain-google-community/sheets/base/SheetsBaseTool/from_api_resource)
- [`from_api_key()`](https://reference.langchain.com/python/langchain-google-community/sheets/base/SheetsBaseTool/from_api_key)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/sheets/base.py#L21)