notion_recurring_tasks.main
The main module of notion-recurring-tasks.
check_notion_key
check_notion_key(key: str | None) -> bool
Check the validity of the given Notion key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str | None
|
Notion key |
required |
Raises:
| Type | Description |
|---|---|
EnvironmentError
|
If the given key is not valid. |
Returns:
| Type | Description |
|---|---|
bool
|
True if key is valid. False otherwise. |
Source code in src/notion_recurring_tasks/main.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
get_notion_key
get_notion_key() -> None
Gets the Notion key from the user. If valid, sets the environment variable.
Source code in src/notion_recurring_tasks/main.py
45 46 47 48 49 50 51 52 | |
main
main() -> None
The main function where the program starts.
Source code in src/notion_recurring_tasks/main.py
74 75 76 77 78 79 80 | |
script
script() -> None
The notion-recurring-tasks script.
Source code in src/notion_recurring_tasks/main.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
set_notion_key
set_notion_key(key: str) -> None
Sets the NOTION_KEY environment variable.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
Notion key |
required |
Source code in src/notion_recurring_tasks/main.py
35 36 37 38 39 40 41 42 43 | |