Skip to main content
logo

A simple cross-platform TUI editor with a CLI and API using Textual

License: WTFPL PyPI Ask DeepWiki PyPI Downloads Code style: black

Installation

# without syntax highlight
pip install ted-editor

# with syntax highlight
pip install ted-editor[syntax]

Key Features

  1. Dual Interface:

    • CLI: ted <filepath>
    • API: ted.edit(content, filepath)
  2. File Handling:

    • Prompt for file path if not provided
    • Ask for file creation if doesn't exist
    • Handle permission errors
  3. TUI Editor:

    • Textual-based interface
    • Save with Ctrl+S or Save button
    • Quit with Ctrl+Q or Quit button
    • Shows modification status in title
    • Auto-save on quit if modified
  4. API Behavior:

    • content=None: Load from file if exists
    • filepath=None: Memory-only editing
    • Returns edited content
  5. Cross Platform:

    • Available in Windows, macOS, Linux

Usage

CLI:

ted  # Prompts for file path
ted myfile.txt

API:

from ted import edit

# Edit existing file
content = edit(filepath="existing.txt")

# Create new file
new_content = edit(content="New content", filepath="new.txt")

# Memory-only editing
temp_content = edit(content="Temporary text")

Screenshots

Demo

See also

edit (Microsoft rewrite in Rust)

textual-editor (Most similar, with a directory tree tab)

TED (MS-DOS)

ted (Go implementation)

Metadata

Release files for ted-editor 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ted-editor 0.1.4
File Size Uploaded Provenance
ted_editor-0.1.4.tar.gz 9.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ted-editor 0.1.4
File Interpreter ABI Platform
ted_editor-0.1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.1 kB

Release files / ted_editor-0.1.4.tar.gz

Download URL ted_editor-0.1.4.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c3c0928d8b4fbf99fdd733f30c6f2ca94f5c0377954405385ea2f51a9429ece0
BLAKE2b-256 checksum
How to use checksums
cb222521fc57ae12c2c15f5e4327cd6129af3fc986d5041ed60f82f33c338938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Release files / ted_editor-0.1.4-py2.py3-none-any.whl

Download URL ted_editor-0.1.4-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d0a816c5b3bac97f7c53512351fc7d317683be25f5f4d32a7375a05ac96eeb30
BLAKE2b-256 checksum
How to use checksums
2501cbb8538f7dfb465334f99d4d806bec1ddd3c81ba5b3129354d1f28009efe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Security for ted-editor 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page