Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/albertz/helpers
/ functions
Functions
247 in github.com/albertz/helpers
⨍
Functions
247
◇
Types & classes
26
↓ 1 callers
Function
file_mtime_underscore
(f)
rename-pics.py:153
↓ 1 callers
Function
filename_for_url
(url)
grab-pdfs.py:22
↓ 1 callers
Function
find_date_str
(f)
rename-dirs.py:41
↓ 1 callers
Function
fnpattern_to_re
(pattern: str)
fnmatchex.py:12
↓ 1 callers
Method
fold_text_string
:param str prefix: :param str hidden: :param kwargs: passed to :func:`fold_text` :rtype: str
better_exchook.py:876
↓ 1 callers
Function
formatDate
(t)
lastfm-history-export.py:66
↓ 1 callers
Method
genRequestObj
Make an HTTP request to a target API method. This is an internal method used to properly craft the url, headers, and params for a API request. I
webserviceclient.py:76
↓ 1 callers
Function
get
(page=1)
lastfm-history-export.py:22
↓ 1 callers
Function
getProcRss
(procId)
cgroup-mem-limit-watcher.py:29
↓ 1 callers
Function
getProcs
()
cgroup-mem-limit-watcher.py:22
↓ 1 callers
Function
getRssLimit
()
cgroup-mem-limit-watcher.py:19
↓ 1 callers
Function
getTotalRss
()
cgroup-mem-limit-watcher.py:37
↓ 1 callers
Function
get_func_from_code_object
:param types.CodeType co: :return: function, such that ``func.__code__ is co``, or None :rtype: types.FunctionType This is CPython s
better_exchook.py:1418
↓ 1 callers
Function
get_func_str_from_code_object
:param types.CodeType co: :return: co.co_name as fallback, but maybe sth better like the full func name if possible :rtype: str
better_exchook.py:1404
↓ 1 callers
Method
get_global_color_enabled
:rtype: bool
better_exchook.py:592
↓ 1 callers
Function
get_history_filename
()
local-history-add.py:22
↓ 1 callers
Function
get_login_user
()
local-history-add.py:8
↓ 1 callers
Function
get_prefix_for_file
Args: filename (str): Returns: (str, str): date prefix, time prefix
rename-pics.py:81
↓ 1 callers
Function
grep_full_py_identifiers
:param typing.Iterable[(str,str)] tokens: :rtype: typing.Iterator[str]
better_exchook.py:195
↓ 1 callers
Method
hide_button
:param io.TextIOBase|io.StringIO file:
better_exchook.py:806
↓ 1 callers
Method
hide_button_span
:param int mode: 1 or 2 :param io.TextIOBase|io.StringIO file:
better_exchook.py:789
↓ 1 callers
Function
iminfo
(filename: str)
rename-pics.py:48
↓ 1 callers
Method
indentation
:param io.TextIOBase|io.StringIO file:
better_exchook.py:799
↓ 1 callers
Function
ipshell
Run the IPython shell.
better_exchook.py:316
↓ 1 callers
Function
is_at_exit
Some heuristics to figure out whether this is called at a stage where the Python interpreter is shutting down. :return: whether the Python i
better_exchook.py:889
↓ 1 callers
Method
is_dark_terminal_background
:return: Whether we have a dark Terminal background color, or None if unknown. We currently just check the env var COLORFGBG,
better_exchook.py:599
↓ 1 callers
Function
is_good_entry
(entry: str)
local-history-add.py:26
↓ 1 callers
Function
iter_traceback
Iterates a traceback of various formats: - traceback (types.TracebackType) - frame object (types.FrameType) - stack summary (tr
better_exchook.py:1438
↓ 1 callers
Method
kill
(self, procid, signal)
asyncproc.py:363
↓ 1 callers
Function
loadLog
()
lastfm-history-export.py:35
↓ 1 callers
Method
logical_block
:param io.TextIOBase|io.StringIO file:
better_exchook.py:780
↓ 1 callers
Function
main
()
tex-text-replace.py:17
↓ 1 callers
Function
main
()
local-history-add.py:51
↓ 1 callers
Function
main
()
rename-pics.py:286
↓ 1 callers
Function
main
()
cgroup-mem-log-rss-max.py:39
↓ 1 callers
Function
make_proper_unique_pdffilename
(fn)
grab-pdfs.py:27
↓ 1 callers
Function
match_hostname
Verify that *cert* (in decoded format as returned by SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 rules are mostly followed, but
rest.py:67
↓ 1 callers
Function
maybe_add_entry
(entry: str)
local-history-add.py:45
↓ 1 callers
Function
normalize_basename
(f)
rename-dirs.py:111
↓ 1 callers
Function
output_limit
:return: num chars :rtype: int
better_exchook.py:362
↓ 1 callers
Function
parse
(s, out)
wolframalpha_translate.py:21
↓ 1 callers
Function
parse_py_statements
:param str source_code: :return: via :func:`parse_py_statement` :rtype: typing.Iterator[typing.Tuple[str,str]]
better_exchook.py:184
↓ 1 callers
Function
patch
(lines, prefix)
add-header.py:38
↓ 1 callers
Function
print_tb
:param types.TracebackType|types.FrameType|StackSummary tb: :param io.TextIOBase|io.StringIO|typing.TextIO|None file: stderr by default :
better_exchook.py:1213
↓ 1 callers
Method
readboth
Read data written by the process to its standard output and error. Return value is a two-tuple ( stdout-data, stderr-data ). WARNING! The
asyncproc.py:297
↓ 1 callers
Method
readerr
Read data written by the process to its standard error.
asyncproc.py:288
↓ 1 callers
Method
reap
Remove a process. If the process is still running, it is killed with no pardon. The process will become unaccessible, and its identifier may
asyncproc.py:393
↓ 1 callers
Function
replace
(text: str, pattern: str, replacement: str)
tex-text-replace.py:35
↓ 1 callers
Function
replace_tab_indent
:param str s: string with tabs :param str replace: e.g. 4 spaces :rtype: str
better_exchook.py:546
↓ 1 callers
Function
saveLog
()
lastfm-history-export.py:60
↓ 1 callers
Function
savepdf
(h)
grab-pdfs.py:37
↓ 1 callers
Function
simple_debug_shell
:param dict[str] globals: :param dict[str] locals: :return: nothing
better_exchook.py:235
↓ 1 callers
Function
str_visible_len
:param str s: :return: len without escape chars :rtype: int
better_exchook.py:481
↓ 1 callers
Method
terminate
Terminate the process, with escalating force as needed. First try gently, but increase the force if it doesn't respond to persuassion. The
asyncproc.py:221
↓ 1 callers
Function
to_bool
:param str s: str to be converted to bool, e.g. "1", "0", "true", "false" :param T fallback: if s is not recognized as a bool :return: bo
better_exchook.py:566
↓ 1 callers
Function
usage
()
grab-pdfs.py:4
↓ 1 callers
Function
user_input
(text, convfunc)
rename-pics.py:59
↓ 1 callers
Function
user_input
(text, convfunc)
rename-dirs.py:28
↓ 1 callers
Function
user_loop
(args)
rename-pics.py:240
↓ 1 callers
Function
user_repr
(v)
rename-pics.py:113
↓ 1 callers
Function
utc_datetime_str
()
local-history-add.py:17
Method
GET
(self, url, headers=None, raw_response=False)
rest.py:211
Method
POST
(self, url, params=None, headers=None, raw_response=False)
rest.py:215
Method
PUT
(self, url, body, headers=None, raw_response=False)
rest.py:223
Method
PUT
Perform a PUT request using RESTClient.request
rest.py:277
Function
_P1
()
asyncproc.py:414
Function
_P2
()
asyncproc.py:417
Function
_StackSummary_extract
Replacement for :func:`StackSummary.extract`. Create a StackSummary from a traceback or stack object. Very simplified copy of the origin
better_exchook.py:1535
Method
__call__
(self, *args, **kwargs)
better_exchook.py:667
Method
__del__
(self, __killer=os.kill, __sigkill=signal.SIGKILL)
asyncproc.py:162
Method
__feeder
Feed data from the list pending to the file drain.
asyncproc.py:265
Method
__init__
(self, prefix: bytes)
our_exif.py:247
Method
__init__
(self, host, port, trusted_cert_file=TRUSTED_CERT_FILE)
rest.py:38
Method
__init__
(self, http_connect=None)
rest.py:128
Method
__init__
(self, host, e)
rest.py:287
Method
__init__
(self, *params, **kwparams)
asyncproc.py:122
Method
__init__
(self)
asyncproc.py:347
Method
__init__
(self, key, secret)
webservicesession.py:32
Method
__init__
(self, consumer_key, consumer_secret, rest_client=rest.RESTClient)
webservicesession.py:45
Method
__init__
Initialize the WebServiceClient object. Args: session: A webservicesession.WebServiceSession object to use for making requests. [optional] re
webserviceclient.py:58
Method
__init__
:param Color color:
better_exchook.py:907
Method
__init__
(self, frame, **kwargs)
better_exchook.py:1500
Method
__init__
(self, filename, lineno, name, f_locals=None, f_globals=None, f_builtins=None)
better_exchook.py:1519
Method
__init__
(self, stat_file)
cgroup-mem-log-rss-max.py:21
Method
__reader
Read data from source until EOF, adding it to collector.
asyncproc.py:252
Method
__repr__
(self)
better_exchook.py:1754
Method
__setitem__
(self, tag, value)
our_exif.py:313
Method
__str__
(self)
rest.py:318
Function
_accept
(prefix)
our_exif.py:235
Function
_debug_shell
()
better_exchook.py:1713
Function
_debug_shell_exception
()
better_exchook.py:1717
Method
_peek
(self)
asyncproc.py:312
Function
_test
()
better_exchook.py:1703
Function
_test_add_indent_lines
Test :func:`add_indent_lines`.
better_exchook.py:1605
Function
_test_get_same_indent_prefix
Test :func:`get_same_indent_prefix`.
better_exchook.py:1613
Function
_test_get_source_code_multi_line
()
better_exchook.py:1683
Function
_test_is_source_code_missing_open_brackets
Test :func:`is_source_code_missing_open_brackets`.
better_exchook.py:1592
Function
_test_parse_py_statement_prefixed_str
()
better_exchook.py:1696
Function
_test_remove_indent_lines
Test :func:`remove_indent_lines`.
better_exchook.py:1622
Function
_test_syntax_error
Test :class:`SyntaxError`.
better_exchook.py:1648
← previous
next →
101–200 of 247, ranked by callers