File: tabview.pyi

package info (click to toggle)
python-clevercsv 0.8.3%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,076 kB
  • sloc: python: 6,184; ansic: 870; makefile: 90
file content (163 lines) | stat: -rw-r--r-- 4,857 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
import io

from typing import Any

basestring = str
file = io.FileIO

def KEY_CTRL(key): ...
def addstr(*args): ...
def insstr(*args): ...

class ReloadException(Exception):
    start_pos: Any
    column_width_mode: Any
    column_gap: Any
    column_widths: Any
    search_str: Any
    def __init__(
        self, start_pos, column_width, column_gap, column_widths, search_str
    ) -> None: ...

class QuitException(Exception): ...

class Viewer:
    scr: Any
    data: Any
    info: Any
    header_offset_orig: int
    header: Any
    header_offset: Any
    num_data_columns: Any
    column_width_mode: Any
    column_gap: Any
    trunc_char: Any
    num_columns: int
    vis_columns: int
    init_search: Any
    modifier: Any
    def __init__(self, *args, **kwargs) -> None: ...
    def column_xw(self, x): ...
    def quit(self) -> None: ...
    def reload(self) -> None: ...
    def consume_modifier(self, default: int = ...): ...
    def down(self) -> None: ...
    def up(self) -> None: ...
    def left(self) -> None: ...
    def right(self) -> None: ...
    y: Any
    win_y: Any
    def page_down(self) -> None: ...
    def page_up(self) -> None: ...
    x: Any
    win_x: Any
    def page_right(self) -> None: ...
    def page_left(self) -> None: ...
    def mark(self) -> None: ...
    def goto_mark(self) -> None: ...
    def home(self) -> None: ...
    def goto_y(self, y) -> None: ...
    def goto_row(self) -> None: ...
    def goto_x(self, x) -> None: ...
    def goto_col(self) -> None: ...
    def goto_yx(self, y, x) -> None: ...
    def line_home(self) -> None: ...
    def line_end(self) -> None: ...
    def show_cell(self) -> None: ...
    def show_info(self): ...
    textpad: Any
    search_str: Any
    def search(self) -> None: ...
    def search_results(
        self, rev: bool = ..., look_in_cur: bool = ...
    ) -> None: ...
    def search_results_prev(
        self, rev: bool = ..., look_in_cur: bool = ...
    ) -> None: ...
    def help(self) -> None: ...
    def toggle_header(self) -> None: ...
    def column_gap_down(self) -> None: ...
    def column_gap_up(self) -> None: ...
    column_width: Any
    def column_width_all_down(self) -> None: ...
    def column_width_all_up(self) -> None: ...
    def column_width_down(self) -> None: ...
    def column_width_up(self) -> None: ...
    def sort_by_column_numeric(self): ...
    def sort_by_column_numeric_reverse(self): ...
    def sort_by_column(self) -> None: ...
    def sort_by_column_reverse(self) -> None: ...
    def sort_by_column_natural(self) -> None: ...
    def sort_by_column_natural_reverse(self) -> None: ...
    def sorted_nicely(self, ls, key, rev: bool = ...): ...
    def float_string_key(self, value): ...
    def toggle_column_width(self) -> None: ...
    def set_current_column_width(self) -> None: ...
    def yank_cell(self) -> None: ...
    keys: Any
    def define_keys(self) -> None: ...
    def run(self) -> None: ...
    def handle_keys(self) -> None: ...
    def handle_modifier(self, mod) -> None: ...
    def resize(self) -> None: ...
    def num_columns_fwd(self, x): ...
    def num_columns_rev(self, x): ...
    def recalculate_layout(self) -> None: ...
    def location_string(self, yp, xp): ...
    def display(self) -> None: ...
    def strpad(self, s, width): ...
    def hdrstr(self, x, width): ...
    def cellstr(self, y, x, width): ...
    def skip_to_row_change(self) -> None: ...
    def skip_to_row_change_reverse(self) -> None: ...
    def skip_to_col_change(self) -> None: ...
    def skip_to_col_change_reverse(self) -> None: ...

class TextBox:
    scr: Any
    data: Any
    title: Any
    tdata: Any
    hid_rows: int
    def __init__(self, scr, data: str = ..., title: str = ...) -> None: ...
    def __call__(self) -> None: ...
    handlers: Any
    def setup_handlers(self) -> None: ...
    def run(self) -> None: ...
    def handle_key(self, key) -> None: ...
    def close(self) -> None: ...
    def scroll_down(self) -> None: ...
    def scroll_up(self) -> None: ...
    def display(self) -> None: ...

def csv_sniff(data, enc): ...
def fix_newlines(data): ...
def adjust_space_delim(data, enc): ...
def process_data(
    data,
    enc: Any | None = ...,
    delim: Any | None = ...,
    quoting: Any | None = ...,
    quote_char=...,
): ...
def data_list_or_file(data): ...
def pad_data(d): ...
def readme(): ...
def detect_encoding(data: Any | None = ...): ...
def main(stdscr, *args, **kwargs) -> None: ...
def view(
    data,
    enc: Any | None = ...,
    start_pos=...,
    column_width: int = ...,
    column_gap: int = ...,
    trunc_char: str = ...,
    column_widths: Any | None = ...,
    search_str: Any | None = ...,
    double_width: bool = ...,
    delimiter: Any | None = ...,
    quoting: Any | None = ...,
    info: Any | None = ...,
    quote_char=...,
): ...
def parse_path(path): ...