Rephrase
A command-line tool to rephrase text in different styles (normal (default), casual, formal, academic, or filipino taglish for some 🧂) using OpenAI's API.
Installation
Prerequisites
- Python 3.11 or higher
- An OpenAI API key
Steps
-
Install via pip
$ pip install rephrase
-
Set Your OpenAI API Key
$ export OPENAI_API_KEY="your-api-key-here"
Add it to your .bashrc, .zshrc, or equivalent to persist it.
Usage
Basic command
$ rephrase "The meeting is scheduled for tomorrow."
Available Styles
--style normal(default): Clear and natural rephrasing.--style casual: Relaxed and informal tone.--style formal: Polite and professional wording.--style academic: Precise and scholarly language.--style filipino: Taglish (Filipino-English mix).
Examples
Here are some sample inputs and outputs to demonstrate how rephrase works with different styles:
| Command | Output (example) |
|---|---|
$ rephrase "I'm tired after work." |
"I'm exhausted from work." |
$ rephrase "I'm tired after work." --style casual |
"I'm wiped out after work" |
$ rephrase "I'm tired after work." --style formal |
"I find myself fatigued following work." |
$ rephrase "I'm tired after work." -s academic |
"I experience fatigue subsequent to my workday." |
$ rephrase "I'm tired after work." -s filipino |
"Pagod na ako after work." |
Help
See all options:
rephrase --help
Metadata
Release files for rephrase 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rephrase-0.1.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rephrase-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / rephrase-0.1.1.tar.gz
| Download URL | rephrase-0.1.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7456664c633ee1a07068cfa0c2ffdaf66545b2496717739c8c14050e6a7d0d7
|
|
BLAKE2b-256 checksum How to use checksums |
92867dd32484aa2a9c606476d2e219f5cbe87f1bdc0c37bbcc2039d2ba7a5726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Release files / rephrase-0.1.1-py3-none-any.whl
| Download URL | rephrase-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce9a13079d8c0a63e30c963cc42ce8bf5c9646edb6d9cce44f906e0fb0227e42
|
|
BLAKE2b-256 checksum How to use checksums |
9bfd205877d937ff7967d86f70ddb7eb926db240d254d32d2b12e73f9291f896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|