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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file auto_notion_py-0.1.4.tar.gz
.
File metadata
- Download URL: auto_notion_py-0.1.4.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.10 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e37d4faedd92fad9bf1076c1bf82c56a54eea95414dec2e6384fabcf1dace72 |
|
MD5 | fafedb55fc0a12bb9bda55022b315a5e |
|
BLAKE2b-256 | 2ce1070440a2b9dc13e5120c0f1203d3ea081773aaf9e28e1284076f2dbb3222 |
File details
Details for the file auto_notion_py-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: auto_notion_py-0.1.4-py3-none-any.whl
- Upload date:
- Size: 54.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.10 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bdadfb32e6bb2ab07a3ae0b7b3430b6c7cd4c64950a7bc06b4a513704ce3c23 |
|
MD5 | 7eecfa0c088271addb47879890f16b49 |
|
BLAKE2b-256 | c79398316b295aa5255ad0789091de4aacef088cf725daa3bb2d48d1a6f08529 |