Name | llama-index-tools-notion JSON |
Version |
0.4.0
JSON |
| download |
home_page | None |
Summary | llama-index tools notion integration |
upload_time | 2025-07-30 23:09:44 |
maintainer | jerryjliu |
docs_url | None |
author | None |
requires_python | <4.0,>=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Notion Tool
This tool loads and updates documents from Notion. The user specifies an API token to initialize the NotionToolSpec.
## Usage
This tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-notion/examples/notion.ipynb)
Here's an example usage of the NotionToolSpec.
```python
from llama_index.tools.notion import NotionToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
tool_spec = NotionToolSpec()
agent = FunctionAgent(
tools=tool_spec.to_tool_list(),
llm=OpenAI(model="gpt-4.1"),
)
print(await agent.run("Append the heading 'I am legend' to the movies page"))
```
`load_data`: Loads a list of page or databases by id
`search_data`: Searches for matching pages or databases
`append_data`: Appends content to the matching page or database
This loader is designed to be used as a way to load data as a Tool in a Agent.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-notion",
"maintainer": "jerryjliu",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Your Name <you@example.com>",
"download_url": "https://files.pythonhosted.org/packages/a4/39/713a7718c37af7828fd36f484d600d2993bfbcf04936919199d30e787810/llama_index_tools_notion-0.4.0.tar.gz",
"platform": null,
"description": "# Notion Tool\n\nThis tool loads and updates documents from Notion. The user specifies an API token to initialize the NotionToolSpec.\n\n## Usage\n\nThis tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-notion/examples/notion.ipynb)\n\nHere's an example usage of the NotionToolSpec.\n\n```python\nfrom llama_index.tools.notion import NotionToolSpec\nfrom llama_index.core.agent.workflow import FunctionAgent\nfrom llama_index.llms.openai import OpenAI\n\ntool_spec = NotionToolSpec()\n\nagent = FunctionAgent(\n tools=tool_spec.to_tool_list(),\n llm=OpenAI(model=\"gpt-4.1\"),\n)\n\nprint(await agent.run(\"Append the heading 'I am legend' to the movies page\"))\n```\n\n`load_data`: Loads a list of page or databases by id\n`search_data`: Searches for matching pages or databases\n`append_data`: Appends content to the matching page or database\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": null,
"summary": "llama-index tools notion integration",
"version": "0.4.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6cd384138df108d51d5efefb72418228f250e67cac97cbca17419ae27578b192",
"md5": "e7a146d58902821a5f81ac662c56eddb",
"sha256": "6ea8de67b359c85f8bd2309ed7d768d6fa2f1804ea654dca80377db6cefc0d03"
},
"downloads": -1,
"filename": "llama_index_tools_notion-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e7a146d58902821a5f81ac662c56eddb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 4023,
"upload_time": "2025-07-30T23:09:43",
"upload_time_iso_8601": "2025-07-30T23:09:43.051880Z",
"url": "https://files.pythonhosted.org/packages/6c/d3/84138df108d51d5efefb72418228f250e67cac97cbca17419ae27578b192/llama_index_tools_notion-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a439713a7718c37af7828fd36f484d600d2993bfbcf04936919199d30e787810",
"md5": "b49ea85c76db3adc64801a8caba90cf5",
"sha256": "40091c02c01db5bf03464b84f59c1831edc2117ca4044e1490ec9342b8b07fbe"
},
"downloads": -1,
"filename": "llama_index_tools_notion-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "b49ea85c76db3adc64801a8caba90cf5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 4422,
"upload_time": "2025-07-30T23:09:44",
"upload_time_iso_8601": "2025-07-30T23:09:44.065908Z",
"url": "https://files.pythonhosted.org/packages/a4/39/713a7718c37af7828fd36f484d600d2993bfbcf04936919199d30e787810/llama_index_tools_notion-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 23:09:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-notion"
}