Skip to main content

Notion automation package

Project description

Notion automation utilities

Note: Package in heavy development

Installation:

    $ poetry add "auto_notion_py==0.1.4"

Quick exmple:

from auto_notion_py.github.api import get_pull_requests_df, GHFetch, GHFetchOrg, GHFetchRepo
from auto_notion_py.notion.api import notion_db_push
from auto_notion_py.zotero.api import get_zotero_publications_df
import asyncio

# Query all Zotero publications and update the Notion database
zotero_df = await get_zotero_publications_df(
    zotero_api_key,
    zotero_db_id,
)
await notion_db_push(notion_token, notion_db_id_zotero_publications, zotero_df)

# Query all PRs and update the Notion database
all_prs_df = await get_pull_requests_df([
    GHFetch(
        token=github_token,
        creators=None,
        organizations=[
            GHFetchOrg(
                name="covid-genomics",
                creators=None,
                repositories=None,
            ),
        ],
    ),

])
await notion_db_push(notion_token, notion_db_id_pull_requests, all_prs_df)

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

auto_notion_py-0.1.4.tar.gz (46.0 kB view hashes)

Uploaded Source

Built Distribution

auto_notion_py-0.1.4-py3-none-any.whl (54.1 kB view hashes)

Uploaded Python 3

Supported by

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