Metadata-Version: 2.4
Name: p2e-2t
Version: 2.0.0
Summary: P2E-2T: explain Python code in understandable English
Author: P2E-2T contributors
License: MIT
Keywords: python,education,translator,learning,terminal
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Education
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# P2E-2T

P2E-2T explains Python source code in plain English. It includes a terminal learning mode and a Tkinter GUI with editor tabs, lessons, project saving/loading, and error-help features.

> P2E explains code; it does not execute the user's Python program.

## Install from PyPI

```bat
py -m pip install p2e-2t
```

## Launch terminal mode

```bat
p2e
```

## Launch the GUI

```bat
p2e-gui
```

On Windows, use a Python installation that includes Tcl/Tk for the GUI. If `p2e` is not found immediately after installation, close and reopen CMD so it refreshes PATH.

## Terminal commands

- `help` — show commands
- `translate print('hello')` — translate one line
- `translate` — enter multiline mode; type `END` on its own line to finish
- `explain <code>` — show a step-by-step explanation
- `lesson list` — list built-in lessons
- `lesson 1` through `lesson 8` — show a lesson
- `quit` / `exit` — leave terminal mode

## Development

From this folder:

```bat
py -m pip install --upgrade build twine
py -m build
py -m twine check dist\*
```

Upload to TestPyPI first if desired, then publish to PyPI using an account and API token you control:

```bat
py -m twine upload --repository testpypi dist\*
py -m twine upload dist\*
```

Do not share your PyPI password or API token with anyone. Package name availability must be checked on PyPI before publishing.
