Skip to main content

Pmemo with ChatGPT is a CUI memo app that enables direct terminal editing without full-screen mode. It integrates OpenAI's ChatGPT, allowing interactive inquiries via the ctrl + o shortcut.

Project description

image PyPI PyPI - Python Version GitHub

Pmemo(Prompt/Python memo)

Pmemo is a command-line memo(notepad) application that allows seamless editing directly in the terminal, without opening in full-screen mode like traditional text editors.
Additionally, it provides the functionality to query the selected text to OpenAI's ChatGPT by using ctrl + o as a shortcut, transforming it into a prompt for interactive inquiries.

Installation

$ pip install pmemo

Usage

command description
pm or pm new create new memo
pm edit edit memo (searching with a specified query, similar to using the peco)
pm list list all memos
pm preview preview memo(markdown) on terminal (searching with a specified query, similar to using the peco)
pm preference please refer to the Preference section

Preference

name default description
out_dir $HOME/.pmemo specifies the directory where Pmemo saves memos
memo_preference.max_title_length 30 sets the maximum length of a memo title
editor_preference.prompt_spaces 4 defines the number of spaces used for line numbering in the editor
editor_preference.style_name "github-dark" sets the style of the editor
editor_preference.indentation_spaces 4 sets the number of spaces for indentation (tab size)
openai_preference.api_key None The OpenAI API uses API keys for authentication
openai_preference.model "gpt-3.5-turbo" ID of the model to use
openai_preference.max_tokens 16 the maximum number of tokens to generate in the completion
openai_preference.temperature 0 what sampling temperature to use, between 0 and 2
openai_preference.n 1 how many completions to generate for each prompt

Versioning

This repo uses Semantic Versioning.

License

pmemo is released under the MIT License. See LICENSE for additional details.

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

pmemo-0.2.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

pmemo-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pmemo-0.2.0.tar.gz.

File metadata

  • Download URL: pmemo-0.2.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.9.16 Linux/5.15.0-1037-azure

File hashes

Hashes for pmemo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f4178dd919c5ceaacd18ccdc7092f12aa4fb41ff2ac3cdcd5180e106e1ff93c4
MD5 f7d45bd4e2676b383138da28575e94e9
BLAKE2b-256 a7eab809cf92ffc2c0b86dfad1d7abba841b5b8967b86efa97a39eb2c86fb295

See more details on using hashes here.

File details

Details for the file pmemo-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pmemo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.9.16 Linux/5.15.0-1037-azure

File hashes

Hashes for pmemo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbaeeb07b066ab45327852a7ed31f95e5842f93e30448dd8116b8ec8886816e2
MD5 bc5726984e0e23fc3558c37c8dd24fe8
BLAKE2b-256 481d49ba9a8e536d19fb649293a819cf27fa6197fc8cede37cb592d85a2ef5bd

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