px-eh
One simple Flask login/session practical for Python IDLE. Python 3.10+ with Tk and IDLE is required. Flask is installed automatically.
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.
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.
Metadata
Release files for px-eh 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| px_eh-0.1.0.tar.gz | 28.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| px_eh-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / px_eh-0.1.0.tar.gz
| Download URL | px_eh-0.1.0.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2bf4615a9a47de565d1bcba6be17cd04451b439e89c9436838b5a82b7144839
|
|
BLAKE2b-256 checksum How to use checksums |
8d85f5bd9c9df5448c8f3c5e88efd50297e6c89b9a679f1356c0ee51b9c1746e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / px_eh-0.1.0-py3-none-any.whl
| Download URL | px_eh-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c02710ed442ad464331a55e1afeb6d4cc7a5a842355e2cbce8b37e336f1f560f
|
|
BLAKE2b-256 checksum How to use checksums |
0eaf3927e5ba491b53840a835c0af71b6fe4c9017b11dbb2c056cdf5d87e961f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|