Tools for low-vision coders
Project description
Tools for low-vision coders
Shell Chat
A wrapper for your shell that lets you talk to ChatGPT about the recent interactions.
- Wraps bash or another shell you pass in, so that it behaves exactly like what you'd expect.
- Except that when you run the
chatcommand, it switches into a separate mode where you're talking to ChatGPT about the past 1k (configurable) lines of interaction. - You have a back and forth conversation, and all of ChatGPT's responses are read aloud.
- You can
Ctrl-Cto interrupt and go back to the chat prompt. - You type
exitto go back to your shell. - You can also type
pdbat the chat prompt to drop into the debugger.
Installation
pip install lowvision
Then set your OpenAI API key
export OPENAI_API_KEY='whatever'
Usage
See the help with
python -m lowvision.shell -h
Without arguments, it will
- launch Bash
- with a 1000 character scrollback buffer
- use
espeakfor text-to-speech - and
gpt-4as the ChatGPT model
Here's an example that changes all of those defaults:
python -m lowvision.shell --shell /bin/sh \
--scrollback 5000 \
--tts 'say -v Daniel --rate 220' \
--model gpt-3.5-turbo
sh-3.2$ ping -c 3 google.com
PING google.com (142.251.163.100): 56 data bytes
64 bytes from 142.251.163.100: icmp_seq=0 ttl=106 time=18.316 ms
^C
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 18.316/18.316/18.316/0.000 ms
sh-3.2$ chat
?> what happened?
The user performed a ping test to google.com by sending 3 packets, and received a reply from one packet. The response shows the IP address of google.com and the round-trip time for the packet. The test was interrupted with ^C after receiving one response.
?> exit
sh-3.2$
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lowvision-0.2.0.tar.gz
(4.7 kB
view details)
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
lowvision-0.2.0-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file lowvision-0.2.0.tar.gz.
File metadata
- Download URL: lowvision-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
709fc2188cd7934edeaadfc0a1a83c28b3dea95bfede19fbde07ea37722d2f30
|
|
| MD5 |
3c78806e8c252f6023e18bd3ca72d11f
|
|
| BLAKE2b-256 |
04f98b07c62db6bab1e9da776c6df0f6c277d7233e3e9dd7eb95f55097baf37c
|
File details
Details for the file lowvision-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lowvision-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b71751ed0e921745feafddb5f4b248dc5bb507c1a1470aafef199df0034d20e
|
|
| MD5 |
7a71b5ffb6004cec89e09ca2cc2ea6f8
|
|
| BLAKE2b-256 |
fde96c84e0e8edd7ea8b8a379e9a5c5c071ee6c66e0eb8c89d74853e0b59b036
|