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)
Metadata
Release files for auto-notion-py 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_notion_py-0.1.4.tar.gz | 46.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_notion_py-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.0 kB
Release files / auto_notion_py-0.1.4.tar.gz
| Download URL | auto_notion_py-0.1.4.tar.gz |
|---|---|
| Size | 46.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e37d4faedd92fad9bf1076c1bf82c56a54eea95414dec2e6384fabcf1dace72
|
|
BLAKE2b-256 checksum How to use checksums |
2ce1070440a2b9dc13e5120c0f1203d3ea081773aaf9e28e1284076f2dbb3222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Darwin/19.6.0
|
Release files / auto_notion_py-0.1.4-py3-none-any.whl
| Download URL | auto_notion_py-0.1.4-py3-none-any.whl |
|---|---|
| Size | 54.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bdadfb32e6bb2ab07a3ae0b7b3430b6c7cd4c64950a7bc06b4a513704ce3c23
|
|
BLAKE2b-256 checksum How to use checksums |
c79398316b295aa5255ad0789091de4aacef088cf725daa3bb2d48d1a6f08529
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Darwin/19.6.0
|