Automate taking notes
Project description
autonote
Description
Automate creating daily, weekly, monthly, and quarterly manual repetitive documents:
- Daily: daily journal, habit tracker
- Weekly: weekly report
- Monthly: monthly report
- Quarterly: quarterly review
Prerequisite
- Confluence API Token
- Notion Integration Token
Installation
pip install autonote
Usage
1. Confluence
1.1. Create a confluence page
Currently only support pre-defined page. TODO: make it configurable
-
Set environment variables:
export CONFLUENCE_URL=https://xxx.atlassian.net export CONFLUENCE_USERNAME=<yourname>@domain.com export CONFLUENCE_PASSWORD=<TOKEN>
-
Run
from autonote.confluence import ConfluenceClient from autonote.html import generate content = generate() client = ConfluenceClient() client.create_page( parent_page_id="<confluence_parent_page_id>", title="title", body=content, )
Generated Page:
2. Notion
Prerequisite: Set environemnt variable
export NOTION_INTEGRATION_TOKEN=xxx
2.1. Create a Notion page
from autonote.notion import NotionClient
client = NotionClient()
client.create_page(
parent_page_id="<parent_page_id>",
title="title",
body="body",
override=True, # update if exists
)
Generated page:
2.2. Create Notion database page from a template
from autonote.notion import NotionClient
client = NotionClient()
client.create_page_from_template(
template_id="<template_id>",
title="OKR 2023Q1",
override=True,
)
Template page:
Generated page:
Credits
autonote
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
autonote
was created by Masato Naka. It is licensed under the terms of the MIT license.
References
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.