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
test_cache_class_property
(self)
tests/test_cache.py:56
Method
test_cache_property
(self)
tests/test_cache.py:38
Method
test_classproperty
(self)
tests/test_cache.py:49
Function
test_clear_cache
()
tests/test_toolkit.py:25
Function
test_combine1
默认组合方式,所有方法各自调各自的
tests/test_service/test_combine.py:34
Function
test_combine2
默认组合方式,所有方法各自调各自的,但除__init__的方法(fun)调用顺序变了
tests/test_service/test_combine.py:47
Function
test_combine3
继承方式,除了__init__方法以外,使用E的实例来调用
tests/test_service/test_combine.py:61
Function
test_combine4
在__init__中调用普通方法,无论是继承还是组合的方式,全部使用G的实例调用。
tests/test_service/test_combine.py:73
Method
test_context
(self)
tests/test_async_context.py:210
Method
test_context_clear_coroutine
(self)
tests/test_async_context.py:249
Method
test_context_clear_thread
(self)
tests/test_async_context.py:255
Method
test_context_inherit
(self)
tests/test_async_context.py:229
Method
test_dict_get
(self)
tests/test_settings/test_frozen.py:8
Method
test_find
(self)
tests/test_structures/test_linked_list.py:40
Method
test_get
(self)
tests/test_structures/test_linked_list.py:26
Method
test_global_cache_class_property
(self)
tests/test_cache.py:63
Method
test_iadd
(self)
tests/test_structures/test_linked_list.py:72
Method
test_in
(self)
tests/test_structures/test_linked_list.py:47
Method
test_init
(self)
tests/test_structures/test_linked_list.py:8
Method
test_insert
(self)
tests/test_structures/test_linked_list.py:67
Method
test_list_dict_get
(self)
tests/test_settings/test_frozen.py:13
Method
test_lock_async
(self)
tests/test_tools/test_redis_tools.py:20
Method
test_lock_sync
(self)
tests/test_tools/test_redis_tools.py:11
Method
test_logger
(self)
tests/test_service/test_monitors.py:11
Function
test_no_raise
()
tests/test_tools/test_except_context.py:12
Method
test_normalize
(self)
tests/test_settings/test_frozen.py:17
Method
test_pop
(self)
tests/test_structures/test_linked_list.py:16
Method
test_pop_reverse
(self)
tests/test_structures/test_linked_list.py:21
Function
test_prepare
单元测试时,动态添加PYTHONPATH。 :param search_paths: 要将哪个路径加入PYTHONPATH
toolkit/__init__.py:24
Method
test_processor_with_same_from_to
(self, capsys)
tests/test_components/test_processor.py:18
Method
test_processor_with_weight_zero
(self)
tests/test_components/test_processor.py:30
Method
test_qq
(self)
tests/test_translate.py:50
Function
test_raise
()
tests/test_tools/test_except_context.py:6
Method
test_readonly
(self)
tests/test_settings/test_frozen.py:26
Method
test_remove
(self)
tests/test_structures/test_linked_list.py:33
Method
test_reverse_iter
(self)
tests/test_structures/test_linked_list.py:12
Method
test_rid_1
(self)
tests/test_structures/test_queue.py:24
Method
test_rid_1
(self)
tests/test_structures/test_queue.py:51
Method
test_rid_2
(self)
tests/test_structures/test_queue.py:19
Method
test_rid_2
(self)
tests/test_structures/test_queue.py:46
Method
test_rid_3
(self)
tests/test_structures/test_queue.py:13
Method
test_rid_3
(self)
tests/test_structures/test_queue.py:40
Method
test_run_async
(self)
tests/test_async_context.py:188
Method
test_run_future
(self)
tests/test_async_context.py:193
Function
test_settings
()
tests/test_settings/test_settings.py:4
Method
test_singleton
(self)
tests/test_singleton.py:10
Method
test_slice
(self)
tests/test_structures/test_linked_list.py:51
Method
test_split
(self, weight)
tests/test_components/test_processor.py:13
Method
test_sync_method_with_async
(self)
tests/test_async_context.py:69
Method
test_sync_method_with_async_with_error
(self)
tests/test_async_context.py:74
Method
test_sync_method_with_async_with_inner_error_after
(self)
tests/test_async_context.py:87
Method
test_sync_method_with_async_with_inner_error_before
(self)
tests/test_async_context.py:81
Method
test_sync_method_with_sync
(self)
tests/test_async_context.py:48
Method
test_sync_method_with_sync_with_error
(self)
tests/test_async_context.py:52
Method
test_sync_method_with_sync_with_inner_error_after
(self)
tests/test_async_context.py:63
Method
test_sync_method_with_sync_with_inner_error_before
(self)
tests/test_async_context.py:58
Function
test_timer
()
tests/test_tools/test_timer.py:6
Function
test_version1
(join_root_dir)
tests/test_tools/test_package_control.py:4
Function
test_version10
(join_root_dir)
tests/test_tools/test_package_control.py:94
Function
test_version11
(join_root_dir)
tests/test_tools/test_package_control.py:104
Function
test_version12
(join_root_dir)
tests/test_tools/test_package_control.py:114
Function
test_version2
(join_root_dir)
tests/test_tools/test_package_control.py:14
Function
test_version3
(join_root_dir)
tests/test_tools/test_package_control.py:24
Function
test_version4
(join_root_dir)
tests/test_tools/test_package_control.py:34
Function
test_version5
(join_root_dir)
tests/test_tools/test_package_control.py:44
Function
test_version6
(join_root_dir)
tests/test_tools/test_package_control.py:54
Function
test_version7
(join_root_dir)
tests/test_tools/test_package_control.py:64
Function
test_version8
(join_root_dir)
tests/test_tools/test_package_control.py:74
Function
test_version9
(join_root_dir)
tests/test_tools/test_package_control.py:84
Function
thread_safe
对指定函数进行线程安全包装,需要提供锁 :param lock: 锁
toolkit/__init__.py:594
Function
thread_safe_for_method
对类中的方法进行线程安全包装
toolkit/__init__.py:609
Function
tick
()
docs/_build/html/_static/jquery-3.2.1.js:7048
Function
timeout
装饰一个方法,用来限制其执行时间,超时后返回default,只能在主线程使用。 :param timeout_time: 超时时间 :param default: 超时后的返回
toolkit/__init__.py:400
Function
timeout_function
(f)
toolkit/__init__.py:410
Function
timeout_handler
(signum, frame)
toolkit/__init__.py:412
Method
total
(self)
tools/wine.py:69
Method
trans_error_handler
error_handler实现参数 :param func_name: 重试函数的名字 :param retry_time: 重试到了第几次 :param e: 需要重试的异常 :param args: 重试参数的参数
toolkit/translator/translate_adapter.py:85
Method
trans_thread
(self, site)
tests/test_translate.py:15
Method
translate_timeout
(self)
toolkit/translator/translate_adapter.py:44
Function
unloadHandler
()
docs/_build/html/_static/jquery-3.2.1.js:714
Method
update
(*args, **kwds)
toolkit/structures/thread_safe_collections.py:49
Method
update
(self)
toolkit/translator/token_acquirer.py:167
Method
update_handler
(self, fd, events)
tools/coroutine.py:42
Function
urldecode
与urlencode相反,不过没有unquote :param query: url查询字符串 :return: 查询字符串的字典
toolkit/__init__.py:313
Function
v
(a,b)
docs/_build/html/_static/jquery.js:2
Method
web_site
(self)
toolkit/translator/translate_adapter.py:39
Function
weight
(request)
tests/test_components/test_processor.py:7
Function
wrap_key
将javascript 对象字串串形式的key转换成被双字符包裹的格式如{a: 1} => {"a": 1} :param json_str: 要处理的json字符串 :param key_pattern: 用来处理的正则表达式 :return: 结果
toolkit/__init__.py:202
Function
wrapper
(func)
tools/review.py:2
Function
wrapper
(*args, **kwargs)
toolkit/__init__.py:381
Function
wrapper
(*args, **kwargs)
toolkit/async_context.py:174
Function
wrapper
(*args, **kwargs)
toolkit/service/combine.py:45
Function
wrapper
(obj)
docs/_build/html/_static/underscore-1.3.1.js:946
Method
write
(self, data)
toolkit/service/console.py:137
Method
writelines
(self, x)
toolkit/service/console.py:54
Function
youdao
有道翻译的实现(废弃) :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :return: 结果
toolkit/translator/sites.py:10
Method
zoo
(self)
tests/test_toolkit.py:13
← previous
701–797 of 797, ranked by callers