Skip to main content

A CLI tool for tag-based text processing.

Project description

TagWriting

TagWriting is a CLI tool that enables fast and flexible text generation by simply enclosing prompts in tags within your text files. It is designed to be simple, stateless, and editor-agnostic, making it easy to integrate into any workflow.


Overview

TagWriting is a tool that connects AI and humans more seamlessly through text files. By monitoring a directory, TagWriting will automatically convert text or Markdown files as soon as they are saved.

I am TagWriting.
<prompt>Describe the best feature of TagWriting in one sentence.</prompt>

I am TagWriting.
You can quickly generate text just by enclosing it in tags.

Usage

  1. Edit a file such as .md and enclose your prompt in tags
  2. When you save, the tagged section is converted by the LLM
  3. The result is written directly to the file

Why TagWriting?

Seamless with Text Editing

Just enclose prompts directly in your text with tags. No need to stop your workflow to operate the LLM. You can leverage AI without interrupting your train of thought.

High Readability

By explicitly writing tags, it’s clear which parts you want the AI to handle. Document history and edits are also clear.

Flexibility & Compatibility

TagWriting directly rewrites updated text files. In theory, it works with any editor and any format. As long as your editor supports file reload, you’re ready to go—no plugins needed. Use Visual Studio Code, Vim, Emacs, etc.—whatever you like.


Installation (Python)

  1. Install dependencies:
pip install .
  1. Use as a command-line tool:
tagwriting

How to use .env

Create a .env file in your project directory and specify your API key, model name, and base URL as follows:

API_KEY=sk-xxxxxxx
MODEL=gpt-3.5-turbo
BASE_URL=https://api.openai.com/v1

or

TAGWRITING_API_KEY=sk-xxxxxxx
TAGWRITING_MODEL=gpt-3.5-turbo
TAGWRITING_BASE_URL=https://api.openai.com/v1
  • The .env file in the directory where you run the tagwriting command will be loaded automatically.
  • If you want to use different settings for multiple projects, prepare a separate .env for each directory.
  • Any OpenAPI-compatible endpoint can be used (e.g., Grok, Deepseek, etc.).

Happy Hacking!

More detail? Let's read the Japanese version in GitHub. (Sorry, I'm Japanese and English is not my native language.)

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

tagwriting-0.3.1.5.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

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

tagwriting-0.3.1.5-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file tagwriting-0.3.1.5.tar.gz.

File metadata

  • Download URL: tagwriting-0.3.1.5.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for tagwriting-0.3.1.5.tar.gz
Algorithm Hash digest
SHA256 2391bcb4f13e3736f5c0c2f93acd068ee598271eefeb72d0afece1951a2676e2
MD5 3d9fbe848c97d94098679573302bbbed
BLAKE2b-256 a902d6558dbd82973f25f4e8a5064c3fb8cf1e7de492711b71feb0204e717fc2

See more details on using hashes here.

File details

Details for the file tagwriting-0.3.1.5-py3-none-any.whl.

File metadata

  • Download URL: tagwriting-0.3.1.5-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for tagwriting-0.3.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 15e62f05e725ee33e2225c7dde347fe186854ce9d7cf759f8d2b194e51fc7a64
MD5 9f70f10650378a3468b566cb449b9616
BLAKE2b-256 802dcdda8b1e5cb7bec6880984bf5614af3dce204348039b7551aada684f61c5

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