pyditor


Namepyditor JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/sshu2017/pyditor
SummaryA minimalist Python runner for coding interviews
upload_time2025-10-27 05:09:53
maintainerNone
docs_urlNone
authorsshu2017
requires_python>=3.6
licenseMIT
keywords python editor runner coding interview tkinter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.

<p align="center">
    <img src="assets/screenshot.gif" width="50%" alt="Pyditor Demo">
</p>

## 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:
```bash
sudo apt update
sudo apt install python3-tk
```


### Setup

```bash
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](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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sshu2017/pyditor",
    "name": "pyditor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "python, editor, runner, coding, interview, tkinter",
    "author": "sshu2017",
    "author_email": "sshu2017 <sshu2017@yahoo.com>",
    "download_url": "https://files.pythonhosted.org/packages/3b/0d/c680fd50c0ac34811e429692d9c8d3511585a31c2ba5bd53a2bf0a4781c7/pyditor-0.1.3.tar.gz",
    "platform": null,
    "description": "# pyditor\n## A minimalist Python runner\n\nPyditor 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.\n\n<p align=\"center\">\n    <img src=\"assets/screenshot.gif\" width=\"50%\" alt=\"Pyditor Demo\">\n</p>\n\n## Features\n\n- **Clean UI**: Minimalist interface with syntax highlighting for Python code\n- **Instant Execution**: Run Python code with a single click\n- **Real-time Output**: Displays stdout, stderr, and execution status\n- **Syntax Highlighting**: Color-coded keywords, strings, comments, numbers, and built-in functions\n- **Multi-monitor Support**: Automatically centers window on the active monitor (Linux/xrandr)\n- **File Operations**: Save code snippets for later use\n- **Timeout Protection**: Automatic timeout after 5 seconds to prevent infinite loops\n\n## Installation\n\n### Prerequisites\n- Python 3.6 or higher\n- Tkinter (usually included with Python)\n\n - 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:\n```bash\nsudo apt update\nsudo apt install python3-tk\n```\n\n\n### Setup\n\n```bash\npip install pyditor\n```\n\n### Run\nRun ```pyditor``` in termianl (MacOS and Linux) or in powershell (Windows).\n\n\n## Keyboard Shortcuts\n\nThe application uses standard Tkinter text widget shortcuts:\n- **Ctrl+A**: Select all\n- **Ctrl+C**: Copy\n- **Ctrl+V**: Paste\n- **Ctrl+X**: Cut\n- **Ctrl+Z**: Undo\n\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details\n\n## Use Cases\n\n- Coding interviews and technical assessments\n- Quick Python prototyping and testing\n- Learning Python syntax and features\n- Code snippet testing without IDE overhead\n- Teaching Python programming basics\n\n## Contributing\n\nThis is a minimalist tool by design. If you find bugs or have suggestions, feel free to open an issue or submit a pull request.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A minimalist Python runner for coding interviews",
    "version": "0.1.3",
    "project_urls": {
        "Bug Reports": "https://github.com/sshu2017/pyditor/issues",
        "Homepage": "https://github.com/sshu2017/pyditor",
        "Source": "https://github.com/sshu2017/pyditor"
    },
    "split_keywords": [
        "python",
        " editor",
        " runner",
        " coding",
        " interview",
        " tkinter"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5f24f0f9d486410f7684d8fe7d5bafd5c9cfc85e636182f74c6f41b67c5066a2",
                "md5": "e630002bbc6dc75bc1c29525f5cfad02",
                "sha256": "5d25da892677d7e37626df5f9436b6ee9670ce8c28abdcb2e874e24b0e980e08"
            },
            "downloads": -1,
            "filename": "pyditor-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e630002bbc6dc75bc1c29525f5cfad02",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8896,
            "upload_time": "2025-10-27T05:09:52",
            "upload_time_iso_8601": "2025-10-27T05:09:52.177995Z",
            "url": "https://files.pythonhosted.org/packages/5f/24/f0f9d486410f7684d8fe7d5bafd5c9cfc85e636182f74c6f41b67c5066a2/pyditor-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3b0dc680fd50c0ac34811e429692d9c8d3511585a31c2ba5bd53a2bf0a4781c7",
                "md5": "c41f8abb631fc05843f5e9182b67146b",
                "sha256": "665c2d0108a8ee38d66b156ceafe0bc13f89db2cb65ff4cc4d8a204dfc18460c"
            },
            "downloads": -1,
            "filename": "pyditor-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "c41f8abb631fc05843f5e9182b67146b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 257342,
            "upload_time": "2025-10-27T05:09:53",
            "upload_time_iso_8601": "2025-10-27T05:09:53.823713Z",
            "url": "https://files.pythonhosted.org/packages/3b/0d/c680fd50c0ac34811e429692d9c8d3511585a31c2ba5bd53a2bf0a4781c7/pyditor-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-27 05:09:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sshu2017",
    "github_project": "pyditor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyditor"
}
        
Elapsed time: 1.83592s