MyText: A Minimal AI-Powered Text Rewriting Tool
Project description
Overview
MyText is a lightweight AI-powered text enhancement tool that rewrites, paraphrases, and adjusts tone using modern LLM providers. It offers a clean command-line interface and a minimal Python API, supports multiple providers (Google AI Studio & Cloudflare Workers AI), and automatically selects the first available provider based on your environment variables.
| PyPI Counter | |
| Github Stars |
| Branch | main | dev |
| CI |
| Code Quality |
Installation
Source Code
- Download Version 0.3 or Latest Source
pip install .
PyPI
- Check Python Packaging User Guide
pip install mytext==0.3
Usage
CLI
mytext --mode="paraphrase" --tone="formal" --text="Can you update me on the project timeline by the end of the day?"
ℹ️ Supported modes: paraphrase, grammar, summarize, simplify, bulletize, shorten
ℹ️ Supported tones: neutral, formal, casual, friendly, professional, academic, creative
Library
You can also use MyText directly inside Python.
from mytext import run_mytext
from mytext import Mode, Tone, Provider
auth = {"api_key": "YOUR_KEY"}
result = run_mytext(
text="Let me know if you have any questions after reviewing the attached document.",
auth=auth,
mode=Mode.PARAPHRASE,
tone=Tone.NEUTRAL,
provider=Provider.AI_STUDIO
)
print(result["status"], result["message"])
Supported Providers
MyText automatically detects which providers are available based on environment variables:
| Provider | Description | Required Environment Variables |
|---|---|---|
| AI Studio | Google AI Studio (Gemini models) | AI_STUDIO_API_KEY |
| Cloudflare | Cloudflare Workers AI | CLOUDFLARE_API_KEY, CLOUDFLARE_ACCOUNT_ID |
| OpenRouter | OpenRouter | OPENROUTER_API_KEY |
| Cerebras | Cerebras | CEREBRAS_API_KEY |
Set them before using:
export AI_STUDIO_API_KEY="your-key"
export CLOUDFLARE_API_KEY="your-key"
export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export OPENROUTER_API_KEY="your-key"
export CEREBRAS_API_KEY="your-key"
Issues & Bug Reports
Just fill an issue and describe it. We'll check it ASAP!
- Please complete the issue template
Show Your Support
Star This Repo
Give a ⭐️ if this project helped you!
Donate to Our Project
Bitcoin
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCyEthereum
0xcD4Db18B6664A9662123D4307B074aE968535388Litecoin
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZDoge
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDhTron
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7Ripple
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qqBinance Coin
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qefTether
0xcD4Db18B6664A9662123D4307B074aE968535388Dash
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3sStellar
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNLZilliqa
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5Coffeete
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
0.3 - 2025-12-17
Added
- OpenRouter provider
- Cerebras provider
Changed
- Test system modified
README.mdupdated- AI Studio main model changed to
gemini-2.5-flash - AI Studio fallback model changed to
gemma-3-1b-it - Providers moved to
providers.py
0.2 - 2025-12-05
Added
- Logo
summarizemodesimplifymodebulletizemodeshortenmode
Changed
README.mdupdated- Cloudflare fallback model changed to
meta/llama-3.1-8b-instruct-fast - Model switching modified
0.1 - 2025-11-26
Added
run_mytextfunction- AI Studio provider
- Cloudflare provider
--modeargument--toneargument
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
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 mytext-0.3.tar.gz.
File metadata
- Download URL: mytext-0.3.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7840f27941bd76ef68e2c53cd28cb7665fe718f177516e6c9b148b280e8d4c61
|
|
| MD5 |
8f54e026150c2dde063b45664be8ebb7
|
|
| BLAKE2b-256 |
75be727cc5a8427966e95ba69b637590e1c982ebb0b5e5e2032a80fc15b3ea52
|
File details
Details for the file mytext-0.3-py3-none-any.whl.
File metadata
- Download URL: mytext-0.3-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb1d53bb98f5cf2eb0cbef1b165b13595918cc7ff301e461f2a50fa94d6acd63
|
|
| MD5 |
b65c6fb486cab0868663628413db6eeb
|
|
| BLAKE2b-256 |
6af61bd957d26ad02606d575910aad4c8049796601500e02fea773bb4189d0c9
|