cursy-1.0.1
توضیحات
Little and simple wrapper for curses application.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cursy-1.0.1 |
| نام | cursy |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | voilalex |
| ایمیل نویسنده | ilya.vouk@gmail.com |
| آدرس صفحه اصلی | https://github.com/VoIlAlex/cursy |
| آدرس اینترنتی | https://pypi.org/project/cursy/ |
| مجوز | MIT |
# 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
```bash
pip install cursy
```
## Usage
```python
@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](LICENSE.md)
نحوه نصب
نصب پکیج whl cursy-1.0.1:
pip install cursy-1.0.1.whl
نصب پکیج tar.gz cursy-1.0.1:
pip install cursy-1.0.1.tar.gz