Skip to main content

Matimo provider — Notion tools (pages, databases, comments)

Project description

matimo-notion

Notion tools for Matimo — create pages, query databases, search, and manage content.

PyPI Docs


Installation

pip install matimo matimo-notion

Available Tools (7 Total)

Tool Description
notion_search Search pages and databases across a workspace
notion_list_databases List databases the integration has access to
notion_query_database Query a database with optional filters and sorts
notion_create_page Create a new page (in a database or as a child page)
notion_update_page Update page properties or archive/restore a page
notion_create_comment Add a comment to a page or discussion thread
notion_get_user Get user profile by ID or get the bot user

Quick Start

import asyncio
from matimo import Matimo
from matimo_notion import get_tools_path

async def main():
    matimo = await Matimo.init(get_tools_path())

    # Search for pages/databases
    results = await matimo.execute('notion_search', {
        'query': 'Product Roadmap',
    })

    # Query a database
    rows = await matimo.execute('notion_query_database', {
        'database_id': 'your-database-id',
        'filter': {'property': 'Status', 'select': {'equals': 'In Progress'}},
    })

    # Create a page in a database
    await matimo.execute('notion_create_page', {
        'parent_id': 'your-database-id',
        'title': 'New Task',
        'properties': {'Status': {'select': {'name': 'Todo'}}},
    })

asyncio.run(main())

Authentication

export NOTION_API_KEY="secret_your-integration-token"

Setting Up a Notion Integration

  1. Go to notion.so/my-integrationsNew integration
  2. Set capabilities: Read content, Update content, Insert content
  3. Copy the Internal Integration Secret
  4. Share the pages/databases you want to access with your integration

Documentation


Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matimo_notion-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matimo_notion-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file matimo_notion-0.1.0.tar.gz.

File metadata

  • Download URL: matimo_notion-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_notion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b275f07d37bcab0e23f3ada74059a84d2f0e2635f049440d086f3798acccbe52
MD5 03fea1ceecb077d3392e06fd40f603af
BLAKE2b-256 a709dcbe7f8338a374de056e535b14f0ab7a5f86e421b517a878580feb62e8d8

See more details on using hashes here.

File details

Details for the file matimo_notion-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: matimo_notion-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_notion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5a2de065fe9ca25d7213afdcec2430798b0cf66af75ca122a7f30563f83c5d3
MD5 ae7cfa9cefe1cf5e2217b3c875623802
BLAKE2b-256 81dac1e083aa67a62d49b96df2dcbf2238adbec96268c1dd653d4edcf5a33ac8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page