Metadata-Version: 2.4
Name: cortexflow-notion
Version: 0.1.0
Summary: CortexFlow plugin — search Notion pages and databases.
Author-email: Amit Chandra <amit.vervebot@gmail.com>
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cortexflow-sdk>=0.1.0
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: pytest>=8.2.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
Dynamic: license-file

# cortexflow-notion

Example CortexFlow plugin: a `notion_search` tool that searches Notion pages
and databases shared with your Notion integration.

## Install

```bash
pip install -e ./cortexflow-sdk        # not yet on PyPI
pip install -e examples/plugins/cortexflow-notion
```

## Setup

1. Create a Notion integration at https://www.notion.so/my-integrations
2. Share the pages/databases you want searchable with that integration
3. Set `NOTION_TOKEN` in your environment to the integration's secret

## Usage

```python
from cortexflow_notion import NotionSearchTool

tool = NotionSearchTool(token="secret_...")
result = await tool.execute(query="Q3 roadmap", limit=5)
print(result.output)
```

Once installed alongside the CortexFlow gateway, `PluginRegistry.discover()`
finds it via the `cortexflow.plugins` entry point declared in
`pyproject.toml`.
