MCPcopy Create free account

hub / github.com/bpython/bpython / functions

Functions1,126 in github.com/bpython/bpython

↓ 156 callersMethodassertAccess
r"""Asserts that self.func matches as described by s, which uses a little language to describe matches: abcd<efg>hijklmnopqrstuvwx|yz
bpython/test/test_line_properties.py:81
↓ 88 callersMethodappend
(self, line: str)
bpython/history.py:56
↓ 73 callersFunction_
(message)
bpython/translations/__init__.py:12
↓ 56 callersMethodassert_paint_ignoring_formatting
( self, screen, cursor_row_col=None, **paint_kwargs )
bpython/test/test_curtsies_painting.py:73
↓ 49 callersMethodenter
Enter a line of text, avoiding autocompletion windows autocomplete could still happen if the entered line has autocompletion that wou
bpython/test/test_curtsies_painting.py:254
↓ 42 callersMethodprocess_event
Returns True if shutting down, otherwise returns None. Mostly mutates state of Repl object
bpython/curtsiesfrontend/repl.py:635
↓ 39 callersMethodcomplete
Construct a full list of possible completions and display them in a window. Also check if there's an available argspec (via the inspec
bpython/repl.py:769
↓ 34 callersMethodpush
(self, line)
bpython/test/test_curtsies_repl.py:351
↓ 31 callersMethodstart
(self)
bpython/urwid.py:950
↓ 27 callersMethodwrite
For overriding stdout defaults
bpython/urwid.py:911
↓ 23 callersMethodmatches
( self, cursor_offset: int, line: str, *, locals_: dict[str, Any] | No
bpython/autocomplete.py:383
↓ 23 callersMethodnotify
( self, s: str, n: float = 10.0, wait_for_keypress: bool = False )
bpython/repl.py:348
↓ 21 callersMethodwrite
(self, value)
bpython/curtsiesfrontend/repl.py:218
↓ 19 callersFunctionsimple_eval
Safely evaluate an expression node or a string containing a Python expression without triggering any user code. The string or node provi
bpython/simpleeval.py:62
↓ 17 callersMethodset_input_line
Set current input line of the test REPL.
bpython/test/test_repl.py:174
↓ 15 callersMethodfinditer
(self, *args, **kwargs)
bpython/lazyre.py:43
↓ 15 callersMethodget_args
Check if an unclosed parenthesis exists, then attempt to get the argspec() for it. On success, update self.funcprops,self.arg_pos and
bpython/repl.py:662
↓ 15 callersMethodmessage
Sets a temporary message
bpython/curtsiesfrontend/interaction.py:67
↓ 14 callersMethodback
Move one step back in the history.
bpython/history.py:77
↓ 14 callersFunctionfunc_for_letter
Returns FmtStr constructor for a bpython-style color code
bpython/curtsiesfrontend/parse.py:29
↓ 14 callersMethodundo
(self)
bpython/test/test_curtsies_painting.py:268
↓ 14 callersMethodupdate
Called to reset the match index and update the word being replaced Should only be called if there's a target to update - otherwise, call
bpython/repl.py:303
↓ 13 callersMethodadd
(self, key, func, overwrite=False)
bpython/curtsiesfrontend/manual_readline.py:32
↓ 13 callersMethodadd_normal_character
(self, char, narrow_search=True)
bpython/curtsiesfrontend/repl.py:1172
↓ 12 callersFunctioncreate_repl
(**kwargs)
bpython/test/test_curtsies_repl.py:234
↓ 12 callersMethodflush
Flush the internal buffer. This is a no-op. Flushing stdin doesn't make any sense anyway.
bpython/curtsiesfrontend/repl.py:214
↓ 12 callersMethodforward
Move one step forward in the history.
bpython/history.py:127
↓ 12 callersMethodsearch
(self, *args, **kwargs)
bpython/lazyre.py:46
↓ 12 callersMethodsend
(self, timeout=None)
bpython/test/test_curtsies.py:26
↓ 12 callersMethodset_input_line
Set current input line of the test REPL.
bpython/test/test_repl.py:369
↓ 11 callersMethodon_tab
Do something on tab key taken from bpython.cli Does one of the following: 1) add space to move up to the next %4==0 column
bpython/curtsiesfrontend/repl.py:955
↓ 11 callersMethodrunsource
Execute Python code. source, filename and symbol are passed on to code.InteractiveInterpreter.runsource.
bpython/repl.py:138
↓ 10 callersFunctiongetpreferredencoding
Get the user's preferred encoding.
bpython/config.py:54
↓ 10 callersMethodon_enter
(self, new_code=True, reset_rl_history=True)
bpython/curtsiesfrontend/repl.py:942
↓ 10 callersMethodpaint
Returns an array of min_height or more rows and width columns, plus cursor position Paints the entire screen - ideally the terminal d
bpython/curtsiesfrontend/repl.py:1543
↓ 9 callersMethodassertEvaled
(self, line, value, ns=None)
bpython/test/test_simpleeval.py:104
↓ 9 callersFunctioncompleter
(matches)
bpython/test/test_autocomplete.py:41
↓ 9 callersMethodpredicted_indent
(self, line)
bpython/curtsiesfrontend/repl.py:1228
↓ 8 callersFunctionforward_word
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:203
↓ 8 callersFunctionlog_version
(module: ModuleType, name: str)
bpython/args.py:72
↓ 8 callersMethodmatch
(self, *args, **kwargs)
bpython/lazyre.py:49
↓ 8 callersMethodout
(self, msg)
doc/sphinx/source/simplerepl.py:66
↓ 8 callersFunctionoutput_to_repl
(repl)
bpython/test/test_curtsies_painting.py:236
↓ 8 callersFunctionsetup_config
()
bpython/test/test_curtsies_painting.py:29
↓ 7 callersMethod_set_current_line
( self, line: str, update_completion=True, reset_rl_history=True, clea
bpython/curtsiesfrontend/repl.py:1872
↓ 7 callersMethodassertIndented
(self, obj_or_name)
bpython/test/test_preprocess.py:74
↓ 7 callersMethodprevious
(self)
bpython/repl.py:258
↓ 7 callersMethodprocess_box_characters
(self, screen)
bpython/test/test_curtsies_painting.py:81
↓ 7 callersMethodprocess_multiple_events
(self, event_list)
bpython/test/test_brackets_completion.py:38
↓ 6 callersMethodcall
(self, key, **kwargs)
bpython/curtsiesfrontend/manual_readline.py:65
↓ 6 callersMethodcfwp
(self, source)
bpython/test/test_curtsies_repl.py:44
↓ 6 callersMethodcompleter
(self, matches)
bpython/test/test_autocomplete.py:84
↓ 6 callersMethodfind_coroutine
(self)
bpython/importcompletion.py:253
↓ 6 callersMethodformat
(self, tbtext: str, lexer: Any)
bpython/curtsiesfrontend/interpreter.py:97
↓ 6 callersMethodload_temp_config
Write config to a temporary file and load it.
bpython/test/test_config.py:13
↓ 6 callersMethodlocate
(self, cursor_offset: int, line: str)
bpython/autocomplete.py:413
↓ 6 callersMethodsend_key
(self, key)
bpython/test/test_curtsies_painting.py:285
↓ 6 callersMethodsend_to_stdouterr
Send unicode strings or FmtStr to Repl stdout or stderr Must be able to handle FmtStrs because interpreter pass in tracebacks already
bpython/curtsiesfrontend/repl.py:1368
↓ 6 callersMethodupdate_completion
Update visible docstring and matches and box visibility
bpython/curtsiesfrontend/repl.py:1219
↓ 5 callersMethod_set_cursor_offset
( self, offset: int, update_completion=True, reset_rl_history=False, c
bpython/curtsiesfrontend/repl.py:1896
↓ 5 callersMethodassertCannotEval
(self, line, ns=None)
bpython/test/test_simpleeval.py:112
↓ 5 callersMethodassert_get_source_error_for_current_function
(self, func, msg)
bpython/test/test_repl.py:303
↓ 5 callersMethodclear_modules_and_reevaluate
(self)
bpython/curtsiesfrontend/repl.py:1139
↓ 5 callersFunctioncompletion_target
(num_names, chars_in_first_name=1)
bpython/test/test_curtsies_painting.py:711
↓ 5 callersMethodcurrent_string
If the line ends in a string get it, otherwise return
bpython/repl.py:562
↓ 5 callersFunctionencode
encode(3, 'abdcd', (1, 3, 'bdc')) -> a<bd|c>d' Written for prettier assert error messages
bpython/test/test_line_properties.py:55
↓ 5 callersMethodget_last_word
(self)
bpython/curtsiesfrontend/repl.py:880
↓ 5 callersMethodget_source_of_current_name
Return the unicode source code of the object which is bound to the current name in the current input line. Throw `SourceNotFound` if the
bpython/repl.py:718
↓ 5 callersMethodmatches
( self, cursor_offset: int, line: str, *, locals_: dict[str, Any] | No
bpython/autocomplete.py:468
↓ 5 callersMethodprocess_multiple_events
(self, event_list)
bpython/test/test_brackets_completion.py:110
↓ 5 callersMethodprompt
(self, more)
bpython/urwid.py:969
↓ 5 callersMethodreset
(self)
bpython/curtsiesfrontend/filewatch.py:34
↓ 5 callersMethodrun_code
Returns Truthy values if code finishes, False otherwise if for_code is provided, send that value to the code greenlet if source code
bpython/curtsiesfrontend/coderunner.py:125
↓ 5 callersMethodrun_code_and_maybe_finish
(self, for_code=None)
bpython/curtsiesfrontend/repl.py:1296
↓ 5 callersMethodtokenize
Tokenizes a line of code, returning pygments tokens with side effects/impurities: - reads self.cpos to see what parens should be highl
bpython/repl.py:1094
↓ 5 callersFunctiontranspose_character_before_cursor
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:311
↓ 5 callersMethodunhighlight_paren
Modify line in self.display_buffer to unhighlight a paren if possible. self.highlighted_paren should be a line in ?
bpython/curtsiesfrontend/repl.py:1330
↓ 4 callersMethod__init__
(self, bottom_w, listbox)
bpython/urwid.py:458
↓ 4 callersMethod_add_module
Add a python module to track changes
bpython/curtsiesfrontend/filewatch.py:39
↓ 4 callersMethodappend_to
(self, entries: list[str], line: str)
bpython/history.py:59
↓ 4 callersMethodassertMatchesStdlib
(self, expr)
bpython/test/test_simpleeval.py:14
↓ 4 callersMethodassert_paint
(self, screen, cursor_row_col)
bpython/test/test_curtsies_painting.py:68
↓ 4 callersMethodclear
Clear the status bar.
bpython/urwid.py:246
↓ 4 callersMethodclear
(self)
bpython/repl.py:329
↓ 4 callersFunctioncombined_events
( event_provider: SupportsEventGeneration, paste_threshold: int = 3 )
bpython/curtsies.py:285
↓ 4 callersMethodcur_line
Returns a cursor offset and line with the current substitution made
bpython/repl.py:265
↓ 4 callersFunctioncurrent_word
the object.attribute.attribute just before or under the cursor
bpython/line.py:26
↓ 4 callersFunctiondecode
a<bd|c>d' -> ((3, 'abcd'), (1, 3, 'bdc'))
bpython/test/test_line_properties.py:30
↓ 4 callersMethodescape
unfocus from statusbar, clear prompt state, wait for notify call
bpython/curtsiesfrontend/interaction.py:127
↓ 4 callersFunctionevaluate_current_expression
Return evaluated expression to the right of the dot of current attribute. Only evaluates builtin objects, and do any attribute lookup.
bpython/simpleeval.py:200
↓ 4 callersMethodformat
( self, tokensource: Iterable[MutableMapping[_TokenType, str]], outfile: TextIO, )
bpython/formatter.py:117
↓ 4 callersMethodincremental_search
(self, reverse=False, include_current=False)
bpython/curtsiesfrontend/repl.py:893
↓ 4 callersMethodkeypress
(self, size, key)
bpython/urwid.py:470
↓ 4 callersMethodmatches
( self, cursor_offset: int, line: str, *, funcprops: inspection.FuncPr
bpython/autocomplete.py:575
↓ 4 callersMethodmatches
( self, cursor_offset: int, line: str, **kwargs: Any )
bpython/autocomplete.py:645
↓ 4 callersMethodschedule_event
(self, event, when)
bpython/test/test_curtsies.py:22
↓ 4 callersMethodsend
( self, timeout: float | None )
bpython/curtsies.py:39
↓ 4 callersMethodsend_refreshes
(self)
bpython/test/test_curtsies_painting.py:249
↓ 4 callersMethodsend_to_stdin
(self, line)
bpython/curtsiesfrontend/repl.py:1403
↓ 4 callersMethodsettext
Set the text on the status bar to a new value. If permanent is True, the new value will be permanent. If that status bar is in prompt mode,
bpython/urwid.py:229
next →1–100 of 1,126, ranked by callers