MCPcopy Create free account

hub / github.com/ShichaoMa/toolkit / functions

Functions797 in github.com/ShichaoMa/toolkit

Methodfun
()
tests/test_async_context.py:214
Methodfun
(self)
tests/test_service/test_combine.py:29
Methodfun
(process)
tests/test_components/test_processor.py:21
Functionfunescape
( _, escaped, escapedWhitespace )
docs/_build/html/_static/jquery-3.2.1.js:677
Methodget
(self)
toolkit/async_context.py:36
Methodget_bool
(self, k, d=False)
toolkit/settings/settings.py:92
Methodget_float
(self, k, d=None)
toolkit/settings/settings.py:102
Functionget_ip
获取局域网ip :return: 局域网ip
toolkit/__init__.py:655
Functionget_version
Return package version as listed in `__version__` in `__init__.py`.
toolkit/tools/package_control.py:8
Functiongoogle
(self, src_data, proxies, src_template, acquirer)
toolkit/translator/sites.py:109
Functiongroupby
自实现groupby,itertool的groupby不能合并不连续但是相同的组, 且返回值是iter :param it: 一个列表套字典的结构 :param key: 从字典从取值的函数,作为group_by后的key :return: 字典对象
toolkit/__init__.py:450
Functionhandler
( event )
docs/_build/html/_static/jquery-3.2.1.js:8318
Functionhelper
(*args, **kwds)
toolkit/async_context.py:135
Methodhit
(self, val)
tools/lru.py:19
Methodhost
提供host地址来获取必要信息
toolkit/translator/token_acquirer.py:16
Functionib
(a,b,c)
docs/_build/html/_static/jquery.js:3
Functionidb
ipdb封装 :return:
toolkit/__init__.py:54
Methodinit_console
(self)
toolkit/service/plugins.py:238
Functioninner
(*args, **kwargs)
tools/review.py:4
Functioninner
(*args, **kwargs)
toolkit/__init__.py:493
Methodinsert
(self, data)
tools/tree.py:88
Functioninsert_sort
(arr)
tools/insert_sort.py:3
Functioninstall_requires
Return requires in requirements.txt :return:
toolkit/tools/package_control.py:20
Methodisatty
(self)
toolkit/service/console.py:22
Functionlater
()
docs/_build/html/_static/underscore-1.3.1.js:533
Methodleft_child
(self)
tools/wine.py:29
Methodleft_sibling
(self)
tools/wine.py:36
Functionload
返回字符串表示的模块、函数、类、若类的属性等 :param prop_str: 函数、类、类属性、模块描述字符串,如: module1.class.function.... :return: 函数、类、模块等。
toolkit/__init__.py:548
Methodload_from_string
从配置语句中获取配置信息 :param settings_string: 配置信息语句 :param module_name: 配置信息的环境变量 :return:
toolkit/settings/settings.py:145
Functionload_function
返回字符串表示的函数对象 :param function_str: 函数描述字符串,如:module1.module2.function :return: function: 找到的函数
toolkit/__init__.py:514
Methodlock
()
tests/test_tools/test_redis_tools.py:21
Methodlogger
(self)
toolkit/service/monitors.py:26
Functionlower_bound
(arr, target, start=0, end=None)
tools/review.py:30
Functionmain
()
toolkit/tools/markdown_helper.py:105
Methodname
(self)
tests/test_async_context.py:144
Functionnext
()
docs/_build/html/_static/jquery-3.2.1.js:4381
Functionout_wrapper
(func)
toolkit/__init__.py:379
Functionouter
(func: types.FunctionType)
toolkit/__init__.py:730
Functionouter
(source_cls)
toolkit/service/combine.py:23
Functionparse_cookie
解析cookie :param string: cookie字符串 :param regex: 解析cookie的正则表达式 :return: cookie字典
toolkit/__init__.py:464
Methodpop
(self)
toolkit/structures/queues.py:56
Methodpop_all
(self)
toolkit/structures/thread_safe_collections.py:22
Methodpop_all
(self)
toolkit/structures/thread_safe_collections.py:53
Methodprocess
(self)
toolkit/components/multi_worker.py:65
Methodproxy_choice
随机选取代理 :return: 代理
toolkit/translator/__init__.py:35
Methodpush
(self, *strings)
toolkit/structures/queues.py:52
Methodpush
(self, *strings)
toolkit/structures/queues.py:96
Functionqq
腾讯翻译的实现, 腾讯翻译最长只能翻译2000个字符 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :param acquirer: cookie获取器 :r
toolkit/translator/sites.py:84
Functionquick
快排知识点总结 :param arr: :param start: :param end: :return:
tools/quick_sort.py:1
Functionra
()
docs/_build/html/_static/jquery.js:2
Functionreadexactly
asyncio stream read :param stream: 流 :param n: 读取字节的长度 :return:
toolkit/__init__.py:998
Methodreadline
(self)
toolkit/service/console.py:34
Methodregister_types
(cls, types)
toolkit/settings/settings.py:127
Methodremove
(self, data)
tools/tree.py:113
Methodremove
(self, value)
tools/hash_set.py:79
Methodremove_handler
(self, fd)
tools/coroutine.py:46
Functionrepl
(mth)
tools/curl_to_requests.py:6
Functionreplace_dot
mongodb不支持key中带有".",该函数用来将"."转换成"_" :param data: 要处理的字典 :return: 返回的字典
toolkit/__init__.py:440
FunctionrestoreScript
( elem )
docs/_build/html/_static/jquery-3.2.1.js:5649
Functionretry_for
(times)
tools/review.py:1
Methodretry_times
(self)
toolkit/translator/translate_adapter.py:49
FunctionreturnFalse
()
docs/_build/html/_static/jquery-3.2.1.js:4893
FunctionreturnTrue
()
docs/_build/html/_static/jquery-3.2.1.js:4889
Functionrid
去掉匹配成功的字段 :param value: 要被处理的字符串 :param old: 被替换的内容,可以为正则表达示或字符串 :param new: 替换的字符串 :return: 结果
toolkit/__init__.py:185
Methodrid
(self, count)
toolkit/structures/queues.py:63
Methodrid
(self, count)
toolkit/structures/queues.py:119
Methodright_child
(self)
tools/wine.py:25
Methodright_sibling
(self)
tools/wine.py:43
Functionrm_container
()
tools/rm_images_and_container.py:15
Functionrm_image
()
tools/rm_images_and_container.py:21
Methodrunning
(self)
tools/coroutine.py:106
Functionsafely_json_loads
返回安全的json类型 :param json_str: 要被loads的字符串 :param defaulttype: 若load失败希望得到的对象类型 :param escape: 是否将单引号变成双引号 :return: 结果
toolkit/__init__.py:215
Methodset
(self, val)
toolkit/async_context.py:30
FunctionsetFilters
()
docs/_build/html/_static/jquery-3.2.1.js:2166
MethodsetUp
(self)
tests/test_service/test_monitors.py:8
MethodsetUp
(self)
tests/test_structures/test_queue.py:10
MethodsetUp
(self)
tests/test_structures/test_queue.py:37
Methodset_logger
(self, logger=None)
toolkit/translator/translate_adapter.py:60
Methodskip
通过判断下一个进度值是否小于当前进度来决定是否跳过 @return:
toolkit/components/processor.py:44
Methodskip_all
如果派生了子进度条,则通过判断子进度最大进度值来决定是否直接跳过子进度条 @return:
toolkit/components/processor.py:51
FunctionsortOrder
( a, b )
docs/_build/html/_static/jquery-3.2.1.js:581
Functionstrip
安全strip,如果不是字符串类型,直接返回。 :param value: 要strip的值 :param chars: 需要去掉的字符 :return: 结果
toolkit/__init__.py:150
FunctionsuperMatcher
( seed, context, xml, results, outermost )
docs/_build/html/_static/jquery-3.2.1.js:2509
MethodtearDown
(self)
tests/test_structures/test_queue.py:30
MethodtearDown
(self)
tests/test_structures/test_queue.py:57
Methodtest_add
(self)
tests/test_structures/test_linked_list.py:79
Methodtest_async_cached_property
(self, capsys)
tests/test_async_context.py:170
Methodtest_async_cached_property_in_async
(self, capsys)
tests/test_async_context.py:178
Methodtest_async_method_with_async
(self)
tests/test_async_context.py:93
Methodtest_async_method_with_async_with_error
(self)
tests/test_async_context.py:98
Methodtest_async_method_with_async_with_inner_error_after
(self)
tests/test_async_context.py:111
Methodtest_async_method_with_async_with_inner_error_before
(self)
tests/test_async_context.py:105
Methodtest_async_method_with_sync
(self)
tests/test_async_context.py:117
Methodtest_async_method_with_sync_with_error
(self)
tests/test_async_context.py:122
Methodtest_async_method_with_sync_with_inner_error_after
(self)
tests/test_async_context.py:135
Methodtest_async_method_with_sync_with_inner_error_before
(self)
tests/test_async_context.py:129
Methodtest_async_processor
(self)
tests/test_components/test_processor.py:43
Methodtest_async_property
(self, capsys)
tests/test_async_context.py:155
Methodtest_async_property_in_async
(self, capsys)
tests/test_async_context.py:163
Functiontest_blocker
()
tests/test_tools/test_manager.py:6
← previousnext →601–700 of 797, ranked by callers