Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShichaoMa/toolkit
/ functions
Functions
797 in github.com/ShichaoMa/toolkit
⨍
Functions
797
◇
Types & classes
90
↳
Endpoints
1
Method
fun
()
tests/test_async_context.py:214
Method
fun
(self)
tests/test_service/test_combine.py:29
Method
fun
(process)
tests/test_components/test_processor.py:21
Function
funescape
( _, escaped, escapedWhitespace )
docs/_build/html/_static/jquery-3.2.1.js:677
Method
get
(self)
toolkit/async_context.py:36
Method
get_bool
(self, k, d=False)
toolkit/settings/settings.py:92
Method
get_float
(self, k, d=None)
toolkit/settings/settings.py:102
Function
get_ip
获取局域网ip :return: 局域网ip
toolkit/__init__.py:655
Function
get_version
Return package version as listed in `__version__` in `__init__.py`.
toolkit/tools/package_control.py:8
Function
google
(self, src_data, proxies, src_template, acquirer)
toolkit/translator/sites.py:109
Function
groupby
自实现groupby,itertool的groupby不能合并不连续但是相同的组, 且返回值是iter :param it: 一个列表套字典的结构 :param key: 从字典从取值的函数,作为group_by后的key :return: 字典对象
toolkit/__init__.py:450
Function
handler
( event )
docs/_build/html/_static/jquery-3.2.1.js:8318
Function
helper
(*args, **kwds)
toolkit/async_context.py:135
Method
hit
(self, val)
tools/lru.py:19
Method
host
提供host地址来获取必要信息
toolkit/translator/token_acquirer.py:16
Function
ib
(a,b,c)
docs/_build/html/_static/jquery.js:3
Function
idb
ipdb封装 :return:
toolkit/__init__.py:54
Method
init_console
(self)
toolkit/service/plugins.py:238
Function
inner
(*args, **kwargs)
tools/review.py:4
Function
inner
(*args, **kwargs)
toolkit/__init__.py:493
Method
insert
(self, data)
tools/tree.py:88
Function
insert_sort
(arr)
tools/insert_sort.py:3
Function
install_requires
Return requires in requirements.txt :return:
toolkit/tools/package_control.py:20
Method
isatty
(self)
toolkit/service/console.py:22
Function
later
()
docs/_build/html/_static/underscore-1.3.1.js:533
Method
left_child
(self)
tools/wine.py:29
Method
left_sibling
(self)
tools/wine.py:36
Function
load
返回字符串表示的模块、函数、类、若类的属性等 :param prop_str: 函数、类、类属性、模块描述字符串,如: module1.class.function.... :return: 函数、类、模块等。
toolkit/__init__.py:548
Method
load_from_string
从配置语句中获取配置信息 :param settings_string: 配置信息语句 :param module_name: 配置信息的环境变量 :return:
toolkit/settings/settings.py:145
Function
load_function
返回字符串表示的函数对象 :param function_str: 函数描述字符串,如:module1.module2.function :return: function: 找到的函数
toolkit/__init__.py:514
Method
lock
()
tests/test_tools/test_redis_tools.py:21
Method
logger
(self)
toolkit/service/monitors.py:26
Function
lower_bound
(arr, target, start=0, end=None)
tools/review.py:30
Function
main
()
toolkit/tools/markdown_helper.py:105
Method
name
(self)
tests/test_async_context.py:144
Function
next
()
docs/_build/html/_static/jquery-3.2.1.js:4381
Function
out_wrapper
(func)
toolkit/__init__.py:379
Function
outer
(func: types.FunctionType)
toolkit/__init__.py:730
Function
outer
(source_cls)
toolkit/service/combine.py:23
Function
parse_cookie
解析cookie :param string: cookie字符串 :param regex: 解析cookie的正则表达式 :return: cookie字典
toolkit/__init__.py:464
Method
pop
(self)
toolkit/structures/queues.py:56
Method
pop_all
(self)
toolkit/structures/thread_safe_collections.py:22
Method
pop_all
(self)
toolkit/structures/thread_safe_collections.py:53
Method
process
(self)
toolkit/components/multi_worker.py:65
Method
proxy_choice
随机选取代理 :return: 代理
toolkit/translator/__init__.py:35
Method
push
(self, *strings)
toolkit/structures/queues.py:52
Method
push
(self, *strings)
toolkit/structures/queues.py:96
Function
qq
腾讯翻译的实现, 腾讯翻译最长只能翻译2000个字符 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :param acquirer: cookie获取器 :r
toolkit/translator/sites.py:84
Function
quick
快排知识点总结 :param arr: :param start: :param end: :return:
tools/quick_sort.py:1
Function
ra
()
docs/_build/html/_static/jquery.js:2
Function
readexactly
asyncio stream read :param stream: 流 :param n: 读取字节的长度 :return:
toolkit/__init__.py:998
Method
readline
(self)
toolkit/service/console.py:34
Method
register_types
(cls, types)
toolkit/settings/settings.py:127
Method
remove
(self, data)
tools/tree.py:113
Method
remove
(self, value)
tools/hash_set.py:79
Method
remove_handler
(self, fd)
tools/coroutine.py:46
Function
repl
(mth)
tools/curl_to_requests.py:6
Function
replace_dot
mongodb不支持key中带有".",该函数用来将"."转换成"_" :param data: 要处理的字典 :return: 返回的字典
toolkit/__init__.py:440
Function
restoreScript
( elem )
docs/_build/html/_static/jquery-3.2.1.js:5649
Function
retry_for
(times)
tools/review.py:1
Method
retry_times
(self)
toolkit/translator/translate_adapter.py:49
Function
returnFalse
()
docs/_build/html/_static/jquery-3.2.1.js:4893
Function
returnTrue
()
docs/_build/html/_static/jquery-3.2.1.js:4889
Function
rid
去掉匹配成功的字段 :param value: 要被处理的字符串 :param old: 被替换的内容,可以为正则表达示或字符串 :param new: 替换的字符串 :return: 结果
toolkit/__init__.py:185
Method
rid
(self, count)
toolkit/structures/queues.py:63
Method
rid
(self, count)
toolkit/structures/queues.py:119
Method
right_child
(self)
tools/wine.py:25
Method
right_sibling
(self)
tools/wine.py:43
Function
rm_container
()
tools/rm_images_and_container.py:15
Function
rm_image
()
tools/rm_images_and_container.py:21
Method
running
(self)
tools/coroutine.py:106
Function
safely_json_loads
返回安全的json类型 :param json_str: 要被loads的字符串 :param defaulttype: 若load失败希望得到的对象类型 :param escape: 是否将单引号变成双引号 :return: 结果
toolkit/__init__.py:215
Method
set
(self, val)
toolkit/async_context.py:30
Function
setFilters
()
docs/_build/html/_static/jquery-3.2.1.js:2166
Method
setUp
(self)
tests/test_service/test_monitors.py:8
Method
setUp
(self)
tests/test_structures/test_queue.py:10
Method
setUp
(self)
tests/test_structures/test_queue.py:37
Method
set_logger
(self, logger=None)
toolkit/translator/translate_adapter.py:60
Method
skip
通过判断下一个进度值是否小于当前进度来决定是否跳过 @return:
toolkit/components/processor.py:44
Method
skip_all
如果派生了子进度条,则通过判断子进度最大进度值来决定是否直接跳过子进度条 @return:
toolkit/components/processor.py:51
Function
sortOrder
( a, b )
docs/_build/html/_static/jquery-3.2.1.js:581
Function
strip
安全strip,如果不是字符串类型,直接返回。 :param value: 要strip的值 :param chars: 需要去掉的字符 :return: 结果
toolkit/__init__.py:150
Function
superMatcher
( seed, context, xml, results, outermost )
docs/_build/html/_static/jquery-3.2.1.js:2509
Method
tearDown
(self)
tests/test_structures/test_queue.py:30
Method
tearDown
(self)
tests/test_structures/test_queue.py:57
Method
test_add
(self)
tests/test_structures/test_linked_list.py:79
Method
test_async_cached_property
(self, capsys)
tests/test_async_context.py:170
Method
test_async_cached_property_in_async
(self, capsys)
tests/test_async_context.py:178
Method
test_async_method_with_async
(self)
tests/test_async_context.py:93
Method
test_async_method_with_async_with_error
(self)
tests/test_async_context.py:98
Method
test_async_method_with_async_with_inner_error_after
(self)
tests/test_async_context.py:111
Method
test_async_method_with_async_with_inner_error_before
(self)
tests/test_async_context.py:105
Method
test_async_method_with_sync
(self)
tests/test_async_context.py:117
Method
test_async_method_with_sync_with_error
(self)
tests/test_async_context.py:122
Method
test_async_method_with_sync_with_inner_error_after
(self)
tests/test_async_context.py:135
Method
test_async_method_with_sync_with_inner_error_before
(self)
tests/test_async_context.py:129
Method
test_async_processor
(self)
tests/test_components/test_processor.py:43
Method
test_async_property
(self, capsys)
tests/test_async_context.py:155
Method
test_async_property_in_async
(self, capsys)
tests/test_async_context.py:163
Function
test_blocker
()
tests/test_tools/test_manager.py:6
← previous
next →
601–700 of 797, ranked by callers