Skip to main content

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.

  1. Wraps bash or another shell you pass in, so that it behaves exactly like what you'd expect.
  2. Except that when you run the chat command, it switches into a separate mode where you're talking to ChatGPT about the past 1k (configurable) lines of interaction.
  3. You have a back and forth conversation, and all of ChatGPT's responses are read aloud.
  4. You can Ctrl-C to interrupt and go back to the chat prompt.
  5. You type exit to go back to your shell.
  6. You can also type pdb at 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 2000 character scrollback buffer
  • use espeak for text-to-speech
  • and gpt-3.5-turbo as 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-4
                          
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.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lowvision-0.2.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file lowvision-0.2.2.tar.gz.

File metadata

  • Download URL: lowvision-0.2.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for lowvision-0.2.2.tar.gz
Algorithm Hash digest
SHA256 59837db3b1c2dd43220caaac3eb579bb4e07e461dce7365968e29c210f85b8ca
MD5 abd0cdd54dde3fad8c5065782d395833
BLAKE2b-256 134937d695d0b73d6f520da8e41be2c4a46338c7dd09158ad501035c0ab5c314

See more details on using hashes here.

File details

Details for the file lowvision-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: lowvision-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for lowvision-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 921db573e205bce048291c848e17df02693e15c5ce893fc2912d961cdec2f24e
MD5 13739ab80cdadc0ed98f7f3aa3601b41
BLAKE2b-256 2af24e6dc9e6666825f6e2e1e30af7825ca31053fda9b191fd8a26b082f12a58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page