Skip to main content

Curses made simple

PyPI Documentation Status Codacy Travis-CI Tag


pip install cursebox-lib

Cursebox is a library based around the curses standard module. Its goal is to avoid the C-like ceremony of curses and provide a modern approach to terminal drawing:

>>> from cursebox import *
>>> with Cursebox() as cb:
...     width, height = cb.width, cb.height
...     greeting = "Hello, World!"
...     # Center text on the screen
...     cb.put(x=(width - len(greeting)) / 2,
...            y=height / 2, text=greeting,
...            fg=colors.black, bg=colors.white)
...     # Wait for any keypress
...     cb.poll_event()

It provides several useful features:

  • No setup/teardown
  • RGB conversion to terminal 256-colors palette
  • Event management

Full documentation on Read the Docs

TODO

  • Unit tests
  • Finish documentation
  • Handmade curses module using ANSI escape sequences for Windows replacement
  • Add pixel buffer from other project

Metadata

Release files for cursebox-lib 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cursebox-lib 1.0.2
File Size Uploaded Provenance Actions
cursebox-lib-1.0.2.tar.gz 7.3 kB Without provenance Details for cursebox-lib-1.0.2.tar.gz

Release files / cursebox-lib-1.0.2.tar.gz

Download URL cursebox-lib-1.0.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
49487bd785dbf9fb9da9de0b48aec1c351897bfb9592b7b346177a2c8b45037f
BLAKE2b-256 checksum
How to use checksums
573b286d651487243b2f4e51dd00314a0f214a8bd7038399168d842ee1c193b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Security for cursebox-lib 1.0.2

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.

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