Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bpython/bpython
/ functions
Functions
1,126 in github.com/bpython/bpython
⨍
Functions
1,126
◇
Types & classes
215
↳
Endpoints
7
↓ 156 callers
Method
assertAccess
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 callers
Method
append
(self, line: str)
bpython/history.py:56
↓ 73 callers
Function
_
(message)
bpython/translations/__init__.py:12
↓ 56 callers
Method
assert_paint_ignoring_formatting
( self, screen, cursor_row_col=None, **paint_kwargs )
bpython/test/test_curtsies_painting.py:73
↓ 49 callers
Method
enter
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 callers
Method
process_event
Returns True if shutting down, otherwise returns None. Mostly mutates state of Repl object
bpython/curtsiesfrontend/repl.py:635
↓ 39 callers
Method
complete
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 callers
Method
push
(self, line)
bpython/test/test_curtsies_repl.py:351
↓ 31 callers
Method
start
(self)
bpython/urwid.py:950
↓ 27 callers
Method
write
For overriding stdout defaults
bpython/urwid.py:911
↓ 23 callers
Method
matches
( self, cursor_offset: int, line: str, *, locals_: dict[str, Any] | No
bpython/autocomplete.py:383
↓ 23 callers
Method
notify
( self, s: str, n: float = 10.0, wait_for_keypress: bool = False )
bpython/repl.py:348
↓ 21 callers
Method
write
(self, value)
bpython/curtsiesfrontend/repl.py:218
↓ 19 callers
Function
simple_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 callers
Method
set_input_line
Set current input line of the test REPL.
bpython/test/test_repl.py:174
↓ 15 callers
Method
finditer
(self, *args, **kwargs)
bpython/lazyre.py:43
↓ 15 callers
Method
get_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 callers
Method
message
Sets a temporary message
bpython/curtsiesfrontend/interaction.py:67
↓ 14 callers
Method
back
Move one step back in the history.
bpython/history.py:77
↓ 14 callers
Function
func_for_letter
Returns FmtStr constructor for a bpython-style color code
bpython/curtsiesfrontend/parse.py:29
↓ 14 callers
Method
undo
(self)
bpython/test/test_curtsies_painting.py:268
↓ 14 callers
Method
update
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 callers
Method
add
(self, key, func, overwrite=False)
bpython/curtsiesfrontend/manual_readline.py:32
↓ 13 callers
Method
add_normal_character
(self, char, narrow_search=True)
bpython/curtsiesfrontend/repl.py:1172
↓ 12 callers
Function
create_repl
(**kwargs)
bpython/test/test_curtsies_repl.py:234
↓ 12 callers
Method
flush
Flush the internal buffer. This is a no-op. Flushing stdin doesn't make any sense anyway.
bpython/curtsiesfrontend/repl.py:214
↓ 12 callers
Method
forward
Move one step forward in the history.
bpython/history.py:127
↓ 12 callers
Method
search
(self, *args, **kwargs)
bpython/lazyre.py:46
↓ 12 callers
Method
send
(self, timeout=None)
bpython/test/test_curtsies.py:26
↓ 12 callers
Method
set_input_line
Set current input line of the test REPL.
bpython/test/test_repl.py:369
↓ 11 callers
Method
on_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 callers
Method
runsource
Execute Python code. source, filename and symbol are passed on to code.InteractiveInterpreter.runsource.
bpython/repl.py:138
↓ 10 callers
Function
getpreferredencoding
Get the user's preferred encoding.
bpython/config.py:54
↓ 10 callers
Method
on_enter
(self, new_code=True, reset_rl_history=True)
bpython/curtsiesfrontend/repl.py:942
↓ 10 callers
Method
paint
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 callers
Method
assertEvaled
(self, line, value, ns=None)
bpython/test/test_simpleeval.py:104
↓ 9 callers
Function
completer
(matches)
bpython/test/test_autocomplete.py:41
↓ 9 callers
Method
predicted_indent
(self, line)
bpython/curtsiesfrontend/repl.py:1228
↓ 8 callers
Function
forward_word
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:203
↓ 8 callers
Function
log_version
(module: ModuleType, name: str)
bpython/args.py:72
↓ 8 callers
Method
match
(self, *args, **kwargs)
bpython/lazyre.py:49
↓ 8 callers
Method
out
(self, msg)
doc/sphinx/source/simplerepl.py:66
↓ 8 callers
Function
output_to_repl
(repl)
bpython/test/test_curtsies_painting.py:236
↓ 8 callers
Function
setup_config
()
bpython/test/test_curtsies_painting.py:29
↓ 7 callers
Method
_set_current_line
( self, line: str, update_completion=True, reset_rl_history=True, clea
bpython/curtsiesfrontend/repl.py:1872
↓ 7 callers
Method
assertIndented
(self, obj_or_name)
bpython/test/test_preprocess.py:74
↓ 7 callers
Method
previous
(self)
bpython/repl.py:258
↓ 7 callers
Method
process_box_characters
(self, screen)
bpython/test/test_curtsies_painting.py:81
↓ 7 callers
Method
process_multiple_events
(self, event_list)
bpython/test/test_brackets_completion.py:38
↓ 6 callers
Method
call
(self, key, **kwargs)
bpython/curtsiesfrontend/manual_readline.py:65
↓ 6 callers
Method
cfwp
(self, source)
bpython/test/test_curtsies_repl.py:44
↓ 6 callers
Method
completer
(self, matches)
bpython/test/test_autocomplete.py:84
↓ 6 callers
Method
find_coroutine
(self)
bpython/importcompletion.py:253
↓ 6 callers
Method
format
(self, tbtext: str, lexer: Any)
bpython/curtsiesfrontend/interpreter.py:97
↓ 6 callers
Method
load_temp_config
Write config to a temporary file and load it.
bpython/test/test_config.py:13
↓ 6 callers
Method
locate
(self, cursor_offset: int, line: str)
bpython/autocomplete.py:413
↓ 6 callers
Method
send_key
(self, key)
bpython/test/test_curtsies_painting.py:285
↓ 6 callers
Method
send_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 callers
Method
update_completion
Update visible docstring and matches and box visibility
bpython/curtsiesfrontend/repl.py:1219
↓ 5 callers
Method
_set_cursor_offset
( self, offset: int, update_completion=True, reset_rl_history=False, c
bpython/curtsiesfrontend/repl.py:1896
↓ 5 callers
Method
assertCannotEval
(self, line, ns=None)
bpython/test/test_simpleeval.py:112
↓ 5 callers
Method
assert_get_source_error_for_current_function
(self, func, msg)
bpython/test/test_repl.py:303
↓ 5 callers
Method
clear_modules_and_reevaluate
(self)
bpython/curtsiesfrontend/repl.py:1139
↓ 5 callers
Function
completion_target
(num_names, chars_in_first_name=1)
bpython/test/test_curtsies_painting.py:711
↓ 5 callers
Method
current_string
If the line ends in a string get it, otherwise return
bpython/repl.py:562
↓ 5 callers
Function
encode
encode(3, 'abdcd', (1, 3, 'bdc')) -> a<bd|c>d' Written for prettier assert error messages
bpython/test/test_line_properties.py:55
↓ 5 callers
Method
get_last_word
(self)
bpython/curtsiesfrontend/repl.py:880
↓ 5 callers
Method
get_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 callers
Method
matches
( self, cursor_offset: int, line: str, *, locals_: dict[str, Any] | No
bpython/autocomplete.py:468
↓ 5 callers
Method
process_multiple_events
(self, event_list)
bpython/test/test_brackets_completion.py:110
↓ 5 callers
Method
prompt
(self, more)
bpython/urwid.py:969
↓ 5 callers
Method
reset
(self)
bpython/curtsiesfrontend/filewatch.py:34
↓ 5 callers
Method
run_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 callers
Method
run_code_and_maybe_finish
(self, for_code=None)
bpython/curtsiesfrontend/repl.py:1296
↓ 5 callers
Method
tokenize
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 callers
Function
transpose_character_before_cursor
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:311
↓ 5 callers
Method
unhighlight_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 callers
Method
__init__
(self, bottom_w, listbox)
bpython/urwid.py:458
↓ 4 callers
Method
_add_module
Add a python module to track changes
bpython/curtsiesfrontend/filewatch.py:39
↓ 4 callers
Method
append_to
(self, entries: list[str], line: str)
bpython/history.py:59
↓ 4 callers
Method
assertMatchesStdlib
(self, expr)
bpython/test/test_simpleeval.py:14
↓ 4 callers
Method
assert_paint
(self, screen, cursor_row_col)
bpython/test/test_curtsies_painting.py:68
↓ 4 callers
Method
clear
Clear the status bar.
bpython/urwid.py:246
↓ 4 callers
Method
clear
(self)
bpython/repl.py:329
↓ 4 callers
Function
combined_events
( event_provider: SupportsEventGeneration, paste_threshold: int = 3 )
bpython/curtsies.py:285
↓ 4 callers
Method
cur_line
Returns a cursor offset and line with the current substitution made
bpython/repl.py:265
↓ 4 callers
Function
current_word
the object.attribute.attribute just before or under the cursor
bpython/line.py:26
↓ 4 callers
Function
decode
a<bd|c>d' -> ((3, 'abcd'), (1, 3, 'bdc'))
bpython/test/test_line_properties.py:30
↓ 4 callers
Method
escape
unfocus from statusbar, clear prompt state, wait for notify call
bpython/curtsiesfrontend/interaction.py:127
↓ 4 callers
Function
evaluate_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 callers
Method
format
( self, tokensource: Iterable[MutableMapping[_TokenType, str]], outfile: TextIO, )
bpython/formatter.py:117
↓ 4 callers
Method
incremental_search
(self, reverse=False, include_current=False)
bpython/curtsiesfrontend/repl.py:893
↓ 4 callers
Method
keypress
(self, size, key)
bpython/urwid.py:470
↓ 4 callers
Method
matches
( self, cursor_offset: int, line: str, *, funcprops: inspection.FuncPr
bpython/autocomplete.py:575
↓ 4 callers
Method
matches
( self, cursor_offset: int, line: str, **kwargs: Any )
bpython/autocomplete.py:645
↓ 4 callers
Method
schedule_event
(self, event, when)
bpython/test/test_curtsies.py:22
↓ 4 callers
Method
send
( self, timeout: float | None )
bpython/curtsies.py:39
↓ 4 callers
Method
send_refreshes
(self)
bpython/test/test_curtsies_painting.py:249
↓ 4 callers
Method
send_to_stdin
(self, line)
bpython/curtsiesfrontend/repl.py:1403
↓ 4 callers
Method
settext
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