Skip to main content

CLI interface for Google Keep matching gog style

Project description

gogkeep

gogkeep is a Google Keep CLI matching the gogcli interface. It enables access for personal Gmail accounts, bypassing the "Workspace-only" restriction of the official Keep API.

Installation

From PyPI

pip install gogkeep

Via pipx

pipx install gogkeep

Authentication

gogkeep automates Master Token extraction using the Chrome DevTools Protocol (CDP), removing the need for manual cookie surfing.

Login

gogkeep login

This automatically launches an isolated browser. Log in, and gogkeep will capture the token. Press Ctrl+C at any time to skip to manual cookie extraction.

[!NOTE] This approach is based on the alternative flow for gpsoauth by julianpitt.

Usage

Root Flags

  • -a, --account EMAIL: Set the account email (also can be set via GOG_ACCOUNT env var).
  • -j, --json: Output as JSON.
  • -p, --plain: Output as tab-separated values.
  • -n, --dry-run: Do not make changes.

Commands

List Notes

gogkeep list

Get Note

gogkeep get <note_id>

Search Notes

gogkeep search "query text"

Create Note

gogkeep create --title "My Title" --text "My body text"

Delete Note

gogkeep delete <note_id>

Download Attachment

gogkeep attachment <attachment_name> --out local_filename.jpg

Attachment names follow the format notes/<note_id>/attachments/<attachment_id>.

Keyring Storage

gogkeep securely stores your Master Token using the system keyring:

  • macOS: Keychain
  • Linux: Secret Service (D-Bus)
  • Fallback: Encrypted file in ~/.config/gogkeep/

You can force specific behavior using environment variables:

  • GOGKEEP_ACCOUNT: Default account email.
  • GOGKEEP_KEYRING_BACKEND: auto, keychain, file, or secret-service.
  • GOGKEEP_KEYRING_PATH: Custom path for the encrypted file backend.
  • GOGKEEP_KEYRING_PASSWORD: Password for the encrypted file (if not in a TTY).

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

gogkeep-0.2.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gogkeep-0.2.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file gogkeep-0.2.1.tar.gz.

File metadata

  • Download URL: gogkeep-0.2.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gogkeep-0.2.1.tar.gz
Algorithm Hash digest
SHA256 30d794731445952308e681cdf266b345db4dd04d9834f48d94b16007df61909e
MD5 95d1b372736fdf5e559618a01fa0cb6d
BLAKE2b-256 ae01158dbcbf665952c9c8a8f50ef39432064caa59aa5817f5131b9659e4481f

See more details on using hashes here.

Provenance

The following attestation bundles were made for gogkeep-0.2.1.tar.gz:

Publisher: publish.yml on eyjohn/gogkeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gogkeep-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: gogkeep-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gogkeep-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6895f93d1d68f2eea42fd226318ed64daf6bc460fd097b2ab1c6f6ca51647dd7
MD5 98181b258ed75b85dcc54a6352caf64a
BLAKE2b-256 0658a43f022d2f29f399d4975c44a85317f3bd2bbe2e7c336ece87313ba6fe9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gogkeep-0.2.1-py3-none-any.whl:

Publisher: publish.yml on eyjohn/gogkeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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