Metadata-Version: 2.1
Name: auto-notion-py
Version: 0.1.4
Summary: Notion automation package
Author: Piotr Styczyński
Author-email: pstyczynski@sumologic.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: PyGithub (>=1.55,<2.0)
Requires-Dist: aiomultiprocess (>=0.9.0,<0.10.0)
Requires-Dist: bs4 (>=0.0.1,<0.0.2)
Requires-Dist: cached-property (>=1.5.2,<2.0.0)
Requires-Dist: chart-studio (>=1.1.0,<2.0.0)
Requires-Dist: commonmark (>=0.9.1,<0.10.0)
Requires-Dist: dictdiffer (>=0.9.0,<0.10.0)
Requires-Dist: githubpy (>=1.1.0,<2.0.0)
Requires-Dist: jupyter (>=1.0.0,<2.0.0)
Requires-Dist: matplotlib (>=3.5.1,<4.0.0)
Requires-Dist: mistletoe (>=0.8.2,<0.9.0)
Requires-Dist: moment (>=0.12.1,<0.13.0)
Requires-Dist: notion-client (>=0.8.0,<0.9.0)
Requires-Dist: pandas (>=1.3.5,<2.0.0)
Requires-Dist: plotly (>=5.6.0,<6.0.0)
Requires-Dist: python-slugify (>=6.1.1,<7.0.0)
Requires-Dist: pyzotero (>=1.5.1,<2.0.0)
Requires-Dist: requests (>=2.27.1,<3.0.0)
Requires-Dist: tzlocal (>=4.2,<5.0)
Description-Content-Type: text/markdown

# Notion automation utilities

**Note: Package in heavy development**

Installation:

```bash
    $ poetry add "auto_notion_py==0.1.4"
```

Quick exmple:

```python

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)
```

