A command-line tool to rephrase text in different styles using OpenAI's API.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rephrase-0.1.1.tar.gz.
File metadata
- Download URL: rephrase-0.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7456664c633ee1a07068cfa0c2ffdaf66545b2496717739c8c14050e6a7d0d7
|
|
| MD5 |
58712befd3a2738113d7fb6b9db55e74
|
|
| BLAKE2b-256 |
92867dd32484aa2a9c606476d2e219f5cbe87f1bdc0c37bbcc2039d2ba7a5726
|
File details
Details for the file rephrase-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rephrase-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce9a13079d8c0a63e30c963cc42ce8bf5c9646edb6d9cce44f906e0fb0227e42
|
|
| MD5 |
b25ef19335d88eef47ec30cd58961618
|
|
| BLAKE2b-256 |
9bfd205877d937ff7967d86f70ddb7eb926db240d254d32d2b12e73f9291f896
|