Skip to main content

Quickly create new Notion pages for your databases with rofi as GUI

Project description

Rofi-Notion

wakatime Maintainability PyPi version

This script allows you to quickly create new Notion pages for your databases.

Example: I use a Notion database as a task tracker for my business. With Rofi-Notion and some key bindings, I can quickly create a new entry in my Notion database without the hassle of waiting and navigating the slow Notion interface.

https://user-images.githubusercontent.com/37625778/172062053-0332ab05-2782-482b-97ee-98d33854e58d.mp4

Requirements

  • Python >= 3.7
  • A Notion integration with read and write access to the desired databases.

Installation

For archlinux users (AUR package)

yay -S rofi-notion-bin

AUR package details

For everyone else

pip install rofi-notion

Pypi package details

Setup

Check if the installation was successful

rofi-notion -h

1. Add your Bot Notion secret

Get your API_SECRET by creating a new Notion integration.

rofi-notion set-creds
# Then paste your creds

2. Link your first database

rofi-notion link
# Follow instructions

3. Run rofi-notion

rofi-notion run $YOUR_DB_NAME

Add i3 bindings

Simply add a similar line to your i3 config file.

bindsym $mod+Insert exec rofi-notion run $YOUR_DB_NAME

Config

Default config destination is $XDG_CONFIG_HOME/rofi-notion or $HOME/.config/rofi-notion if $XDG_CONFIG_HOME is not set.

Development

Use this command to run the CLI locally.

python3 stub.py

Publish

Do not forget to bump versions in pyproject.toml and PKGBUILD.

PyPi

Run make to publish a new version.

Git tag the new version and push it. Then publish the automatically created Draft release.

git tag vX.X.X
git push --tags

AUR

First publish new release on GitHub, then run make aur.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rofi_notion-2.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

rofi_notion-2.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file rofi_notion-2.1.1.tar.gz.

File metadata

  • Download URL: rofi_notion-2.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for rofi_notion-2.1.1.tar.gz
Algorithm Hash digest
SHA256 72ce449501f9674f80bdfe66c56de92efb4890685228aaad31a2829b2228cb45
MD5 1ded81ae3ba26ca66ef70345b35422fc
BLAKE2b-256 8eb9c30589fb55bc068544559760f06cdc8302b0dfc48ce1056b63445c3fdc18

See more details on using hashes here.

File details

Details for the file rofi_notion-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: rofi_notion-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for rofi_notion-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c8f92c8ef42b4f67f231754f5d372db6d51cda96c5442e079445421cf4a49a
MD5 b8cfa4ec52d9228e46bda509046cb580
BLAKE2b-256 bf61586cd579ba7844eeef8a20cae3c4f17082c62f6d02d808e11dccc4b08a37

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page