An iPython REPL that guides and motivates your quest to learn Python. Augments iPython with hints and CFL-style games to track your progress and avoid villains and pitfalls.
Project description
Pythonny Quest
Experiments
shy
workbench
- most promising/reliable approach, based on ipython API
- requires more student interaction with new variables/functions, e.g. quest() or help(quest) or quest.check() or quest.score()
- put the working example script into new pythonny package
pexpect
- would have to emulate entire terminal and listen to entire keyboard, passing through everything back and forth
prompttoolkit
- can detect ctrl-V and other pasting commmands by user
- integrate with workbench
pymux
Almost works for what I need, but seems to only work in Python 3.9 or earlier. Also relies on pydoc which requires old Pythons as well and produces the following warnings:
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:165: SyntaxWarning: invalid escape sequence '\S'
name = re.findall('(<\S*?>)', source)[0]
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:166: SyntaxWarning: invalid escape sequence '\['
value = re.findall('\[default: (.*)\]', source, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:207: SyntaxWarning: invalid escape sequence '\['
matched = re.findall('\[default: (.*)\]', description, flags=re.I)
/home/hobs/code/public-by-others/pymux/.venv/lib/python3.12/site-packages/docopt.py:456: SyntaxWarning: invalid escape sequence '\S'
split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
These seem to be caused by the newer Python parsing of regexesconflict
Pythonny Chat is developed with Aider!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonny_quest-0.1.1.tar.gz.
File metadata
- Download URL: pythonny_quest-0.1.1.tar.gz
- Upload date:
- Size: 84.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8844aca37024ecd8e055a51620848df73a759e0a0af1b93b6c9f9980f958cb06
|
|
| MD5 |
35c93b892365f2395647d9780379da02
|
|
| BLAKE2b-256 |
396dbb0dc3a4a85bd2d4b0bac3c98f69534a458e0c232f9d8883c848fedd1f92
|
File details
Details for the file pythonny_quest-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pythonny_quest-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec2fe4cac4f34f2c285012ac7b8b3734225a2c8d962bf046270a643edf1072c
|
|
| MD5 |
41e7eeeff8ea03edc0cd88258876669e
|
|
| BLAKE2b-256 |
e1ed0f114f48d019247d59b71397888cd179368b81ca03bb9e9bf12e3a3772c3
|