A web-based curses library replacement
Project description
webcurses
A drop-in replacement for the Python curses library that renders to a web browser.
For the original library documentation, see curses — Terminal handling for character-cell displays.
Usage
import webcurses
from webcurses import wrapper
def main(stdscr):
stdscr.clear()
stdscr.addstr(0, 0, "Hello, Webcurses!")
stdscr.refresh()
stdscr.getch()
wrapper(main)
Running
By default, webcurses starts a web server on port 8080.
- Run your script:
python your_script.py - Open your browser to http://localhost:8080.
Configuration
To change the port, set the WEBCURSES_PORT environment variable:
export WEBCURSES_PORT=9090
python your_script.py
Then navigate to http://localhost:9090.
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 webcurses-0.9.0.tar.gz.
File metadata
- Download URL: webcurses-0.9.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d2936a327f40d0a23647a480447d764a17216a3998298d216e230a191ea0f1b
|
|
| MD5 |
70ba7405675192b2f8d7c7a1ab01d956
|
|
| BLAKE2b-256 |
0d90f3057b9b9bcfeaba93d75c2ffd538d62d931f5361636f2f28c3947268acb
|
File details
Details for the file webcurses-0.9.0-py3-none-any.whl.
File metadata
- Download URL: webcurses-0.9.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d048f90a581c5d41bd5d1ba7a0cd1958b54162921524a5ac97e55f32397ce272
|
|
| MD5 |
3f432c0b9655cf552d19bdd04d7cdcb8
|
|
| BLAKE2b-256 |
01ffd861c8871864f0455132e87c9d07c6cf1a272d1e72ba0c06e00a1c007a7d
|