Skip to main content

Cursy

Little and simple wrapper for curses application.

Getting started

The @curses_application decorator is a util built upon curses.wrapper function. This decorator adds stdscr to self object on execution time of start method of the class under @curses_application decorator, so it can be used within the method to access the initialized curses screen.

Installation

pip install cursy

Usage

@cursy.curses_application
class Application:
    def start(self):
        self.stdscr.clear()
        self.stdscr.addstr(0, 0, 'Hello world')
        self.stdscr.getch()

if __name__ == "__main__":
    app = Application()
    app.start()

License

MIT

Metadata

Release files for cursy 1.0.1

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

Source distribution (sdist)

Source distribution for cursy 1.0.1
File Size Uploaded
cursy-1.0.1.tar.gz 2.2 kB Details

Release files / cursy-1.0.1.tar.gz

Download URL cursy-1.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c4a30121c496dc255f936eeae3dd27deee66da3b9a5e3f0adf66ab900c2bb90
BLAKE2b-256 checksum
How to use checksums
9951050f9cccc26005f5b1759e13b179b321fd8d895fa6787d35242304290c71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

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