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.
Metadata
Release files for webcurses 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| webcurses-0.9.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webcurses-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / webcurses-0.9.0.tar.gz
| Download URL | webcurses-0.9.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d2936a327f40d0a23647a480447d764a17216a3998298d216e230a191ea0f1b
|
|
BLAKE2b-256 checksum How to use checksums |
0d90f3057b9b9bcfeaba93d75c2ffd538d62d931f5361636f2f28c3947268acb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / webcurses-0.9.0-py3-none-any.whl
| Download URL | webcurses-0.9.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d048f90a581c5d41bd5d1ba7a0cd1958b54162921524a5ac97e55f32397ce272
|
|
BLAKE2b-256 checksum How to use checksums |
01ffd861c8871864f0455132e87c9d07c6cf1a272d1e72ba0c06e00a1c007a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for webcurses 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.