Metadata-Version: 2.4
Name: px-eh
Version: 0.1.0
Summary: Simple Flask session practical expansion for Python IDLE Editors
License-Expression: LicenseRef-PxEh-Local-Use
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: Flask<4,>=3.0
Dynamic: license-file

# px-eh

One simple Flask login/session practical for Python IDLE. Python 3.10+ with
Tk and IDLE is required. Flask is installed automatically.

```powershell
python -m pip install px-eh
python -m px_eh install
python -m idlelib
```

Restart IDLE, open **File → New File**, type `#!flask` on its own line, and
press Enter. Save the inserted code as `flask_login.py` and press **F5**.
Open http://127.0.0.1:5000/ and log in with `admin` / `admin123` or
`guest` / `guest123`. Use **Shell → Restart Shell** to stop the server.

`#!` shows the catalogue. `#>` also works when neither px-idle nor px-stat is
enabled. Arrow keys select; Enter or Tab inserts; Escape dismisses. Expansion
works in Editor windows and is one undo operation.

The practical retains the supplied weak demo key and credentials for the local
session-cookie exercise. HTML is decoded into actual tags. Flask's reloader is
disabled so F5 runs one server in IDLE, bound to 127.0.0.1.

```powershell
python -m px_eh doctor
python -m px_eh uninstall
python -m pip uninstall px-eh
```

Registration changes only PxEh configuration and preserves other extensions.
The bundled code is available in `examples/flask_login.py`; asset hashes are
recorded in the packaged registry. This package contains only the Flask demo.
All rights reserved, local use only; see LICENSE and NOTICE.
