Skip to main content

this code home repository

filling an issue

this module on pypi

iwish interactive wish (tcl/tk interpreter)

iwish is a script that gives interactive features to wish like navigating with arrows backward search ... history files (all that readline can offer).

Due to my limitations, however, input are line based and eval in tcl before being interpreted.

It is made for tinkering with tcl/tk to test something fast with the help of an interactive shell.

A typical session looks like this

# pack [ button .c -text that -command { puts "hello" } ]
# 
tcl output> hello # here we pressed the button "that"
tcl output> hello # here we pressed the button "that"


# set name 32
# puts $name

tcl output> 32

# #?

#l print current recorded session
#? print current help
#! calls python code like
  #!save(name="temp") which saves the current session in current dir in "temp" file
bye exit quit quit the current session

# #l
pack [ button .c -text that -command { puts "hello" } ]
set name 32
puts $name

# #!save("my_test.tcl")
# quit

special words

quit bye exit

These bare keywords exit the shell

#l

This shortcut list the current session

#?

This shortcut call the inline help

Evaluating python

#!...

... being a python command will be evaled in current content

#!save(fn="temp")

Calls the save function which saves the current session in file given as an argument or "temp" in the current directory by default.

#!load(fn="temp")

Loads a tcl file and evaluate it LINE BY LINE (which may break valid multiline tcl code).

Release files for iwish 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iwish 0.1.4
File Size Uploaded
iwish-0.1.4.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iwish 0.1.4
File Interpreter ABI Platform
iwish-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / iwish-0.1.4.tar.gz

Download URL iwish-0.1.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b10cba84eee87d1c0b0ebd283eb1a611059fa0c4215d43cf589d25ab1e7bbf10
BLAKE2b-256 checksum
How to use checksums
873a24c4f80d3bce5a65348be5813fa96d1fa32bc8d870a0613b1b9a42cbd084
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / iwish-0.1.4-py3-none-any.whl

Download URL iwish-0.1.4-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3852c9ccf58c9ac2f9b0018d99c29e3a02164e097c565e09fce51063100d9da5
BLAKE2b-256 checksum
How to use checksums
d439c0317afaa3d2ff1caba8fd62d1ddce519c763a25060b1dc3a1d6fde6b43b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page