Skip to main content

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.

  1. Run your script:
    python your_script.py
    
  2. 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)

Source distribution for webcurses 0.9.0
File Size Uploaded Provenance
webcurses-0.9.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for webcurses 0.9.0
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files No provenance

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