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
↓ 2 callers
Function
preprocess
(s: str, compiler: CommandCompiler)
bpython/curtsiesfrontend/preprocess.py:52
↓ 2 callers
Method
process_simple_keypress
(self, e: str)
bpython/curtsiesfrontend/repl.py:1073
↓ 2 callers
Method
prompt
Prompt the user for some input (with the optional prompt 's'). After the user hit enter the signal 'prompt_result' will be emitted and the
bpython/urwid.py:211
↓ 2 callers
Method
prompt_undo
(self)
bpython/curtsiesfrontend/repl.py:1961
↓ 2 callers
Method
push
(self, s, insert_into_history=True)
bpython/urwid.py:929
↓ 2 callers
Method
push
Push a line of code onto the buffer, start running the buffer If the interpreter successfully runs the code, clear the buffer
bpython/curtsiesfrontend/repl.py:1247
↓ 2 callers
Method
reevaluate
bpython.Repl.undo calls this
bpython/curtsiesfrontend/repl.py:1983
↓ 2 callers
Method
refresh
(self)
bpython/test/test_curtsies_painting.py:246
↓ 2 callers
Method
release
(self)
bpython/filelock.py:36
↓ 2 callers
Method
request_from_main_context
Return the argument passed in to .run_code(for_code) Nothing means calls to run_code must be... ???
bpython/curtsiesfrontend/coderunner.py:190
↓ 2 callers
Method
reset
(self)
bpython/history.py:191
↓ 2 callers
Method
reset_timer
(self)
bpython/repl.py:95
↓ 2 callers
Function
right_arrow
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:181
↓ 2 callers
Method
run_bpython
Run bpython (with `backend` as backend) in a subprocess and enter the given input. Uses a test config that disables the paste
bpython/test/test_crashers.py:41
↓ 2 callers
Function
safe_eval
Not all that safe, just catches some errors
bpython/simpleeval.py:42
↓ 2 callers
Method
save_to
( self, fd: TextIO, entries: list[str] | None = None, lines: int = 0 )
bpython/history.py:216
↓ 2 callers
Method
send_current_block_to_external_editor
Sends the current code block to external editor to be edited. Usually bound to C-x.
bpython/curtsiesfrontend/repl.py:1087
↓ 2 callers
Method
send_to_external_editor
Returns modified text from an editor, or the original text if editor exited with non-zero
bpython/repl.py:1196
↓ 2 callers
Method
set_docstring
(self)
bpython/repl.py:744
↓ 2 callers
Method
sub
(self, *args, **kwargs)
bpython/lazyre.py:52
↓ 2 callers
Method
substitute
Returns a cursor offset and line with match substituted in
bpython/repl.py:270
↓ 2 callers
Function
tabs_to_spaces
(line: str)
bpython/curtsiesfrontend/repl.py:2195
↓ 2 callers
Method
tempfile
()
bpython/test/test_curtsies_repl.py:361
↓ 2 callers
Function
version_banner
(base: str = "bpython")
bpython/args.py:59
↓ 2 callers
Method
write
(self, s, *args, **kwargs)
bpython/curtsiesfrontend/coderunner.py:217
↓ 2 callers
Method
write_startup_file
(self, fname, encoding)
bpython/test/test_curtsies_repl.py:437
↓ 2 callers
Method
writetb
This outputs the traceback and should be overridden for anything fancy.
bpython/repl.py:201
↓ 1 callers
Method
__enter__
(self)
bpython/curtsiesfrontend/repl.py:561
↓ 1 callers
Method
__exit__
( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, e
bpython/curtsiesfrontend/repl.py:586
↓ 1 callers
Method
__init__
(self, simple_edits=None, cut_buffer_edits=None)
bpython/curtsiesfrontend/manual_readline.py:25
↓ 1 callers
Method
__init__
Constructor. We include an argument for the outfile to pass to the formatter for it to write to.
bpython/curtsiesfrontend/interpreter.py:69
↓ 1 callers
Method
__init__
(self, n: int = 1)
bpython/curtsiesfrontend/events.py:48
↓ 1 callers
Method
_add_module_later
(self, path: str)
bpython/curtsiesfrontend/filewatch.py:51
↓ 1 callers
Function
_callable_postfix
rlcompleter's _callable_postfix done right.
bpython/autocomplete.py:806
↓ 1 callers
Method
_check_for_expired_message
(self)
bpython/curtsiesfrontend/interaction.py:74
↓ 1 callers
Function
_combined_events
Combines consecutive keypress events into paste events.
bpython/curtsies.py:255
↓ 1 callers
Function
_convert
(node)
bpython/simpleeval.py:85
↓ 1 callers
Function
_fix_default_values
Functions taking default arguments that are references to other objects will cause breakage, so we swap out the object itself with the name it was
bpython/inspection.py:176
↓ 1 callers
Function
_get_argspec_from_signature
Get callable signature from inspect.signature in argspec format. inspect.signature is a Python 3 only function that returns the signature of
bpython/inspection.py:312
↓ 1 callers
Method
_get_current_line
(self)
bpython/repl.py:433
↓ 1 callers
Method
_get_cursor_offset
(self)
bpython/repl.py:450
↓ 1 callers
Function
_getpydocspec
(f: Callable)
bpython/inspection.py:223
↓ 1 callers
Method
_guess_source_dir
(self)
setup.py:136
↓ 1 callers
Method
_populate_completion
(self)
bpython/urwid.py:753
↓ 1 callers
Method
_request_refresh
Arrange for the bpython display to be refreshed soon. This method will be called when the Repl wants to refresh the display, but want
bpython/curtsiesfrontend/repl.py:506
↓ 1 callers
Method
_request_reload
Like request_refresh, but for reload requests events.
bpython/curtsiesfrontend/repl.py:517
↓ 1 callers
Function
_safe_glob
(pathname: str)
bpython/autocomplete.py:345
↓ 1 callers
Method
_schedule_refresh
Arrange for the bpython display to be refreshed soon. This method will be called when the Repl wants the display to be refreshed at a
bpython/curtsiesfrontend/repl.py:493
↓ 1 callers
Method
_set_current_line
(self, val: str)
bpython/repl.py:437
↓ 1 callers
Method
_set_cursor_offset
(self, val: int)
bpython/repl.py:454
↓ 1 callers
Method
_set_cursor_offset
(self, val: int)
bpython/test/test_repl.py:56
↓ 1 callers
Method
acquire
(self)
bpython/filelock.py:33
↓ 1 callers
Method
after_suspend
Will be called when process foregrounded after suspend. See to it that process_event is called with None to trigger a refresh if not
bpython/curtsiesfrontend/repl.py:531
↓ 1 callers
Method
append_closing_character
Appends closing character/bracket to the completion
bpython/curtsiesfrontend/repl.py:1019
↓ 1 callers
Method
assertDefinitionIndented
(self, obj)
bpython/test/test_preprocess.py:61
↓ 1 callers
Method
assertLinesIndented
(self, test_name)
bpython/test/test_preprocess.py:69
↓ 1 callers
Method
attr_matches
Taken from rlcompleter.py and bent to my will.
bpython/autocomplete.py:419
↓ 1 callers
Function
back_word
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:219
↓ 1 callers
Function
beginning_of_line
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:187
↓ 1 callers
Function
clean_colors
(s)
bpython/test/test_args.py:115
↓ 1 callers
Method
clean_up_current_line_for_exit
Called when trying to exit to prep for final paint
bpython/curtsiesfrontend/repl.py:628
↓ 1 callers
Function
color_for_letter
(letter_color_code: str, default: str = "k")
bpython/curtsiesfrontend/parse.py:44
↓ 1 callers
Method
complete
Construct a full list of possibly completions for imports.
bpython/importcompletion.py:133
↓ 1 callers
Function
compress_paste_event
If all events in a paste event are identical and not simple characters, returns one of them Useful for when the UI is running so slowly that
bpython/curtsiesfrontend/repl.py:2204
↓ 1 callers
Function
current_from_import_from
If in from import completion, the word after from returns None if cursor not in or just after one of the two interesting parts of an import:
bpython/line.py:168
↓ 1 callers
Function
current_from_import_import
If in from import completion, the word after import being completed returns None if cursor not in or just after one of these words
bpython/line.py:190
↓ 1 callers
Function
current_import
(cursor_offset: int, line: str)
bpython/line.py:219
↓ 1 callers
Function
cursor
ab|c' -> (2, 'abc')
bpython/test/test_line_properties.py:23
↓ 1 callers
Method
cut_to_buffer
(self)
bpython/curtsiesfrontend/repl.py:1035
↓ 1 callers
Method
cw
Return the current word (incomplete word left of cursor).
bpython/urwid.py:709
↓ 1 callers
Method
deactivate
(self)
bpython/curtsiesfrontend/filewatch.py:76
↓ 1 callers
Function
default_editor
Returns the default editor.
bpython/config.py:82
↓ 1 callers
Function
delete
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:224
↓ 1 callers
Function
delete_from_cursor_back
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:257
↓ 1 callers
Method
do_pastebin
Actually perform the upload.
bpython/repl.py:959
↓ 1 callers
Method
down_one_line
(self)
bpython/curtsiesfrontend/repl.py:1060
↓ 1 callers
Method
edit_config
(self)
bpython/repl.py:1218
↓ 1 callers
Function
end_of_line
(cursor_offset, line)
bpython/curtsiesfrontend/manual_readline.py:193
↓ 1 callers
Method
expandtabs
(self, tabsize=8)
bpython/test/test_curtsies_painting.py:211
↓ 1 callers
Function
filename_for_console_input
Remembers a string of source code, and returns a fake filename to use to retrieve it later.
bpython/patch_linecache.py:72
↓ 1 callers
Function
fill_config_with_default_values
( config: ConfigParser, default_values: Mapping[str, Mapping[str, Any]] )
bpython/config.py:87
↓ 1 callers
Method
find_all_modules
Return a list with all modules in `path`, which should be a list of directory names. If path is not given, sys.path will be used.
bpython/importcompletion.py:241
↓ 1 callers
Function
find_attribute_with_name
(node, name)
bpython/simpleeval.py:191
↓ 1 callers
Method
find_match_backward
( self, search_term: str, include_current: bool = False )
bpython/history.py:107
↓ 1 callers
Method
find_match_forward
( self, search_term: str, include_current: bool = False )
bpython/history.py:151
↓ 1 callers
Method
find_modules
Find all modules (and packages) for a given directory.
bpython/importcompletion.py:169
↓ 1 callers
Method
find_partial_match_backward
( self, search_term: str, include_current: bool = False )
bpython/history.py:117
↓ 1 callers
Method
find_partial_match_forward
( self, search_term: str, include_current: bool = False )
bpython/history.py:162
↓ 1 callers
Method
focus_on_subprocess
(self, args)
bpython/curtsiesfrontend/repl.py:2067
↓ 1 callers
Function
formatted_argspec
(funcprops, arg_pos, columns, config)
bpython/curtsiesfrontend/replpainter.py:92
↓ 1 callers
Function
formatted_docstring
(docstring, columns, config)
bpython/curtsiesfrontend/replpainter.py:166
↓ 1 callers
Method
from_string
(cls, value: str)
bpython/autocomplete.py:65
↓ 1 callers
Method
func
(apple, apricot, banana, carrot)
bpython/test/test_autocomplete.py:432
↓ 1 callers
Method
get_current_block
Returns the current code block as string (without prompts)
bpython/curtsiesfrontend/repl.py:1362
↓ 1 callers
Method
get_cursor_coords
(self, size)
bpython/urwid.py:480
↓ 1 callers
Method
get_cursor_vertical_diff
Return how the cursor moved due to a window size change
bpython/curtsiesfrontend/repl.py:481
↓ 1 callers
Function
get_fodder_source
(test_name)
bpython/test/test_preprocess.py:18
↓ 1 callers
Method
get_input
(self)
doc/sphinx/source/simplerepl.py:100
↓ 1 callers
Method
get_session_formatted_for_file
(self)
bpython/curtsiesfrontend/repl.py:2171
↓ 1 callers
Method
get_term_hw
Returns the current width and height of the display area.
bpython/curtsiesfrontend/repl.py:489
← previous
next →
201–300 of 1,126, ranked by callers