Skip to main content

A minimalist Python runner for coding interviews

Project description

pyditor

A minimalist Python runner

Pyditor is a lightweight, standalone Python code editor and runner built with Tkinter. It provides a simple interface for writing and executing Python code with syntax highlighting and real-time output display. Perfect for coding interviews, quick prototyping, and learning Python.

Pyditor Demo

Features

  • Clean UI: Minimalist interface with syntax highlighting for Python code
  • Instant Execution: Run Python code with a single click
  • Real-time Output: Displays stdout, stderr, and execution status
  • Syntax Highlighting: Color-coded keywords, strings, comments, numbers, and built-in functions
  • Multi-monitor Support: Automatically centers window on the active monitor (Linux/xrandr)
  • File Operations: Save code snippets for later use
  • Timeout Protection: Automatic timeout after 5 seconds to prevent infinite loops

Installation

Prerequisites

  • Python 3.6 or higher

  • Tkinter (usually included with Python)

  • Note: While Tkinter is part of Python's standard library, many Linux distributions separate GUI components like Tkinter into their own packages. Run this if Tkiniter is missing:

sudo apt update
sudo apt install python3-tk

Setup

pip install pyditor

Run

Run pyditor in termianl (MacOS and Linux) or in powershell (Windows).

Keyboard Shortcuts

The application uses standard Tkinter text widget shortcuts:

  • Ctrl+A: Select all
  • Ctrl+C: Copy
  • Ctrl+V: Paste
  • Ctrl+X: Cut
  • Ctrl+Z: Undo

License

MIT License - see LICENSE for details

Use Cases

  • Coding interviews and technical assessments
  • Quick Python prototyping and testing
  • Learning Python syntax and features
  • Code snippet testing without IDE overhead
  • Teaching Python programming basics

Contributing

This is a minimalist tool by design. If you find bugs or have suggestions, feel free to open an issue or submit a pull request.

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

pyditor-0.1.3.tar.gz (257.3 kB view details)

Uploaded Source

Built Distribution

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

pyditor-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file pyditor-0.1.3.tar.gz.

File metadata

  • Download URL: pyditor-0.1.3.tar.gz
  • Upload date:
  • Size: 257.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pyditor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 665c2d0108a8ee38d66b156ceafe0bc13f89db2cb65ff4cc4d8a204dfc18460c
MD5 c41f8abb631fc05843f5e9182b67146b
BLAKE2b-256 3b0dc680fd50c0ac34811e429692d9c8d3511585a31c2ba5bd53a2bf0a4781c7

See more details on using hashes here.

File details

Details for the file pyditor-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pyditor-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pyditor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d25da892677d7e37626df5f9436b6ee9670ce8c28abdcb2e874e24b0e980e08
MD5 e630002bbc6dc75bc1c29525f5cfad02
BLAKE2b-256 5f24f0f9d486410f7684d8fe7d5bafd5c9cfc85e636182f74c6f41b67c5066a2

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