Skip to main content

MyText: A Minimal AI-Powered Text Rewriting Tool

Project description

MyText: A Minimal AI-Powered Text Rewriting Tool


built with Python3 GitHub repo size PyPI version

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 CodeFactor

Installation

Source Code

PyPI

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

Set them before using:

export AI_STUDIO_API_KEY="your-key"
export CLOUDFLARE_API_KEY="your-key"
export CLOUDFLARE_ACCOUNT_ID="your-account-id"

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

1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy

Ethereum

0xcD4Db18B6664A9662123D4307B074aE968535388

Litecoin

Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ

Doge

DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh

Tron

TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7

Ripple

rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq

Binance Coin

bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef

Tether

0xcD4Db18B6664A9662123D4307B074aE968535388

Dash

Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s

Stellar

GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL

Zilliqa

zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5

Coffeete

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.2 - 2025-12-05

Added

  • Logo
  • summarize mode
  • simplify mode
  • bulletize mode
  • shorten mode

Changed

  • README.md updated
  • Cloudflare fallback model changed to meta/llama-3.1-8b-instruct-fast
  • Model switching modified

0.1 - 2025-11-26

Added

  • run_mytext function
  • AI Studio provider
  • Cloudflare provider
  • --mode argument
  • --tone argument

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

mytext-0.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mytext-0.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file mytext-0.2.tar.gz.

File metadata

  • Download URL: mytext-0.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for mytext-0.2.tar.gz
Algorithm Hash digest
SHA256 d7d6aeea3d2d89729c264ee981cbbc0ea9784e2d7b26ca6226e9d1e53899cde1
MD5 37164f4a9d8ba9ac8691cf4b9925315e
BLAKE2b-256 47181dea88dc4969ac82f4c926b04ac66939a5cbfc900017f7f76fd7964294fc

See more details on using hashes here.

File details

Details for the file mytext-0.2-py3-none-any.whl.

File metadata

  • Download URL: mytext-0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for mytext-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0053bd7b1efdc964da1c4f7937a8d5dfc125571f8d7d9edba7d9a63b2d9e30
MD5 48e43ec6294376e028d3b3c7db475731
BLAKE2b-256 1ef2f0fc796846efdf5f2226306eeb7ee774fc12f3309e4cee6a3d05fb3b1a58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page