Skip to main content

Iron Editor

PyPI - Version PyPI - Python Version License: MIT

A terminal-based code editor built with Textual. Designed for educational environments where students edit code directly in the terminal.


Features

  • Syntax highlighting for Python, JavaScript, HTML, CSS, Java, C, C++, JSON and Markdown
  • Multi-tab editing
  • Integrated file explorer (sidebar)
  • Integrated terminal panel
  • File integrity verification via HMAC signature
  • Log panel for debugging
  • Dracula theme

Installation

pip install iron-editor

Requirements: Python 3.9+


Usage

# Open editor in current directory
ironedit

# Open editor in a specific directory
ironedit /path/to/project

Keyboard Shortcuts

Key Action
N Create new file
Shift+N Create new folder
Ctrl+S Save current file
Ctrl+W Close current tab
Ctrl+T Toggle terminal panel
Ctrl+L Toggle log panel
Ctrl+R Run current file (in terminal)
Q Quit

File Signing

Iron Editor signs every saved file with an HMAC signature. Files created or modified outside of Iron Editor will be blocked when opened. This is intentional for classroom use — it ensures students work within the editor.



Para alumnos / For Students (Español)

Instalación

pip install iron-editor

Cómo usarlo

Abre una terminal y escribe:

ironedit

Esto abrirá el editor en la carpeta actual. También puedes indicar una carpeta específica:

ironedit C:\Users\TuNombre\mis-proyectos

Interfaz

┌─────────────────────────────────────────────────────┐
│  IronEdit                              🕐 12:00      │
├──────────┬──────────────────────────┬────────────────┤
│          │  archivo.py  ×           │                │
│  📁 src  │──────────────────────────│   Log          │
│  📄 main │  1  def main():          │                │
│  📄 util │  2      print("Hola")    │                │
│          │  3                       │                │
│          ├──────────────────────────┤                │
│          │  Terminal                │                │
├──────────┴──────────────────────────┴────────────────┤
│  N Nueva  Shift+N Carpeta  Ctrl+S Guardar  Q Salir   │
└─────────────────────────────────────────────────────┘
  • Panel izquierdo: explorador de archivos. Haz clic en un archivo para abrirlo.
  • Centro: editor de código con pestañas. Puedes tener varios archivos abiertos.
  • Panel inferior (Ctrl+T): terminal integrada para ejecutar tu código.
  • Panel derecho (Ctrl+L): log de eventos del editor.

Atajos principales

Tecla Acción
N Crear archivo nuevo
Shift+N Crear carpeta nueva
Ctrl+S Guardar archivo actual
Ctrl+W Cerrar pestaña actual
Ctrl+T Mostrar/ocultar terminal
Ctrl+L Mostrar/ocultar log
Ctrl+R Ejecutar archivo actual
Q Salir del editor

Nota sobre los archivos

Iron Editor firma los archivos que guarda. Si intentas abrir un archivo que no fue creado o guardado con Iron Editor, el editor lo bloqueará. Esto es para garantizar que trabajes siempre dentro del entorno del editor.


Changelog

v0.0.3

  • Terminal: resize panel with Ctrl+Up / Ctrl+Down
  • Terminal: added min-height to prevent collapsing too small
  • File explorer: F5 refreshes the directory tree
  • pyproject.toml: corrected author email and GitHub URLs

v0.0.2

  • Integrated terminal panel with command history and cd support
  • Ctrl+T toggle for terminal, Ctrl+R to run current file
  • Log panel toggle (Ctrl+L) and last-log in status bar

v0.0.1

  • Initial release: syntax highlighting, multi-tab editor, file explorer, HMAC file signing

License

iron-editor is distributed under the terms of the MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iron_editor-0.0.4.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

iron_editor-0.0.4-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file iron_editor-0.0.4.tar.gz.

File metadata

  • Download URL: iron_editor-0.0.4.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for iron_editor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7ba535896b51143c65c9a0bdbb1d2fc41059488f57ff6cbe5a0a38ba13421a95
MD5 dd0c6f564ee127a84c266074f01f3efd
BLAKE2b-256 a8269146848b770b1706c4c5698f9e0b48ac5fbf4614a422a5ea6348d707e197

See more details on using hashes here.

File details

Details for the file iron_editor-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: iron_editor-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.11

File hashes

Hashes for iron_editor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f9ead43e637898dcf8269ecee09133091a335dc6586e34b97184a615fd1e42
MD5 623756d6752d3f56651657630d9a3c62
BLAKE2b-256 add92e1fe8e3044a833cdcda9f369023520bfb2bd37bff261294d55f32512aaa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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