Pmemo
Pmemo is a command-line memo editor designed for seamless editing directly in the terminal environment. It offers a range of features to enhance your memo-taking experience and leverages the power of OpenAI's ChatGPT.
Features
- Rebind
ctrl-oto request to ChatGPT - Rebind
ctrl-tto quickly access frequently used registered prompts - CUI memo application that allows seamless editing directly in the terminal
- No fullscreen mode, keeping your workflow within the terminal
- Efficient search functionality for your memos
- Easily customizable to fit your preferences
- Execute code blocks written by you or ChatGPT immediately (Python only)
Installation
$ pip install pmemo
Usage
| command | description |
|---|---|
pm or pm new |
create new memo |
pm edit |
edit memo |
pm remove |
remove memo |
pm list |
list all memos |
pm preview |
preview memo(markdown) on terminal |
pm preference |
please refer to the Preference section |
pm template |
create a new prompt template for completion using ctrl-t |
pm template -e |
edit an existing prompt template. |
pm run |
execute code blocks within your memos. |
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 |
Note: To enable ChatGPT functionality, make sure to set your OpenAI API key as an environment variable or preference.
Versioning
This repo uses Semantic Versioning.
License
pmemo is released under the MIT License. See LICENSE for additional details.
Metadata
Release files for pmemo 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pmemo-0.4.0.tar.gz | 15.0 kB | Without provenance | Details for pmemo-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pmemo-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for pmemo-0.4.0-py3-none-any.whl |
Total release size: 33.5 kB
Release files / pmemo-0.4.0.tar.gz
| Download URL | pmemo-0.4.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdf94608cd4b532a856c8ea19b3591b85af2995e8f60e497d08f07a03850a76f
|
|
BLAKE2b-256 checksum How to use checksums |
61160a77e92e7cb93a13f9e315147326aa0d3f6d5f2fef23198090c4e67228bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1019-azure
|
Release files / pmemo-0.4.0-py3-none-any.whl
| Download URL | pmemo-0.4.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1240a95ee42efcc92f22f18bda9ddfc566dbc3784915d0f087ca69964dbf45ee
|
|
BLAKE2b-256 checksum How to use checksums |
e3782194388f5a877ed50783281b0f9cd62cb0c3e2834df81f36ed0a11542270
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1019-azure
|
Security for pmemo 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.