MCPcopy Create free account

hub / github.com/ShichaoMa/toolkit / functions

Functions797 in github.com/ShichaoMa/toolkit

Methodtest_cache_class_property
(self)
tests/test_cache.py:56
Methodtest_cache_property
(self)
tests/test_cache.py:38
Methodtest_classproperty
(self)
tests/test_cache.py:49
Functiontest_clear_cache
()
tests/test_toolkit.py:25
Functiontest_combine1
默认组合方式,所有方法各自调各自的
tests/test_service/test_combine.py:34
Functiontest_combine2
默认组合方式,所有方法各自调各自的,但除__init__的方法(fun)调用顺序变了
tests/test_service/test_combine.py:47
Functiontest_combine3
继承方式,除了__init__方法以外,使用E的实例来调用
tests/test_service/test_combine.py:61
Functiontest_combine4
在__init__中调用普通方法,无论是继承还是组合的方式,全部使用G的实例调用。
tests/test_service/test_combine.py:73
Methodtest_context
(self)
tests/test_async_context.py:210
Methodtest_context_clear_coroutine
(self)
tests/test_async_context.py:249
Methodtest_context_clear_thread
(self)
tests/test_async_context.py:255
Methodtest_context_inherit
(self)
tests/test_async_context.py:229
Methodtest_dict_get
(self)
tests/test_settings/test_frozen.py:8
Methodtest_find
(self)
tests/test_structures/test_linked_list.py:40
Methodtest_get
(self)
tests/test_structures/test_linked_list.py:26
Methodtest_global_cache_class_property
(self)
tests/test_cache.py:63
Methodtest_iadd
(self)
tests/test_structures/test_linked_list.py:72
Methodtest_in
(self)
tests/test_structures/test_linked_list.py:47
Methodtest_init
(self)
tests/test_structures/test_linked_list.py:8
Methodtest_insert
(self)
tests/test_structures/test_linked_list.py:67
Methodtest_list_dict_get
(self)
tests/test_settings/test_frozen.py:13
Methodtest_lock_async
(self)
tests/test_tools/test_redis_tools.py:20
Methodtest_lock_sync
(self)
tests/test_tools/test_redis_tools.py:11
Methodtest_logger
(self)
tests/test_service/test_monitors.py:11
Functiontest_no_raise
()
tests/test_tools/test_except_context.py:12
Methodtest_normalize
(self)
tests/test_settings/test_frozen.py:17
Methodtest_pop
(self)
tests/test_structures/test_linked_list.py:16
Methodtest_pop_reverse
(self)
tests/test_structures/test_linked_list.py:21
Functiontest_prepare
单元测试时,动态添加PYTHONPATH。 :param search_paths: 要将哪个路径加入PYTHONPATH
toolkit/__init__.py:24
Methodtest_processor_with_same_from_to
(self, capsys)
tests/test_components/test_processor.py:18
Methodtest_processor_with_weight_zero
(self)
tests/test_components/test_processor.py:30
Methodtest_qq
(self)
tests/test_translate.py:50
Functiontest_raise
()
tests/test_tools/test_except_context.py:6
Methodtest_readonly
(self)
tests/test_settings/test_frozen.py:26
Methodtest_remove
(self)
tests/test_structures/test_linked_list.py:33
Methodtest_reverse_iter
(self)
tests/test_structures/test_linked_list.py:12
Methodtest_rid_1
(self)
tests/test_structures/test_queue.py:24
Methodtest_rid_1
(self)
tests/test_structures/test_queue.py:51
Methodtest_rid_2
(self)
tests/test_structures/test_queue.py:19
Methodtest_rid_2
(self)
tests/test_structures/test_queue.py:46
Methodtest_rid_3
(self)
tests/test_structures/test_queue.py:13
Methodtest_rid_3
(self)
tests/test_structures/test_queue.py:40
Methodtest_run_async
(self)
tests/test_async_context.py:188
Methodtest_run_future
(self)
tests/test_async_context.py:193
Functiontest_settings
()
tests/test_settings/test_settings.py:4
Methodtest_singleton
(self)
tests/test_singleton.py:10
Methodtest_slice
(self)
tests/test_structures/test_linked_list.py:51
Methodtest_split
(self, weight)
tests/test_components/test_processor.py:13
Methodtest_sync_method_with_async
(self)
tests/test_async_context.py:69
Methodtest_sync_method_with_async_with_error
(self)
tests/test_async_context.py:74
Methodtest_sync_method_with_async_with_inner_error_after
(self)
tests/test_async_context.py:87
Methodtest_sync_method_with_async_with_inner_error_before
(self)
tests/test_async_context.py:81
Methodtest_sync_method_with_sync
(self)
tests/test_async_context.py:48
Methodtest_sync_method_with_sync_with_error
(self)
tests/test_async_context.py:52
Methodtest_sync_method_with_sync_with_inner_error_after
(self)
tests/test_async_context.py:63
Methodtest_sync_method_with_sync_with_inner_error_before
(self)
tests/test_async_context.py:58
Functiontest_timer
()
tests/test_tools/test_timer.py:6
Functiontest_version1
(join_root_dir)
tests/test_tools/test_package_control.py:4
Functiontest_version10
(join_root_dir)
tests/test_tools/test_package_control.py:94
Functiontest_version11
(join_root_dir)
tests/test_tools/test_package_control.py:104
Functiontest_version12
(join_root_dir)
tests/test_tools/test_package_control.py:114
Functiontest_version2
(join_root_dir)
tests/test_tools/test_package_control.py:14
Functiontest_version3
(join_root_dir)
tests/test_tools/test_package_control.py:24
Functiontest_version4
(join_root_dir)
tests/test_tools/test_package_control.py:34
Functiontest_version5
(join_root_dir)
tests/test_tools/test_package_control.py:44
Functiontest_version6
(join_root_dir)
tests/test_tools/test_package_control.py:54
Functiontest_version7
(join_root_dir)
tests/test_tools/test_package_control.py:64
Functiontest_version8
(join_root_dir)
tests/test_tools/test_package_control.py:74
Functiontest_version9
(join_root_dir)
tests/test_tools/test_package_control.py:84
Functionthread_safe
对指定函数进行线程安全包装,需要提供锁 :param lock: 锁
toolkit/__init__.py:594
Functionthread_safe_for_method
对类中的方法进行线程安全包装
toolkit/__init__.py:609
Functiontick
()
docs/_build/html/_static/jquery-3.2.1.js:7048
Functiontimeout
装饰一个方法,用来限制其执行时间,超时后返回default,只能在主线程使用。 :param timeout_time: 超时时间 :param default: 超时后的返回
toolkit/__init__.py:400
Functiontimeout_function
(f)
toolkit/__init__.py:410
Functiontimeout_handler
(signum, frame)
toolkit/__init__.py:412
Methodtotal
(self)
tools/wine.py:69
Methodtrans_error_handler
error_handler实现参数 :param func_name: 重试函数的名字 :param retry_time: 重试到了第几次 :param e: 需要重试的异常 :param args: 重试参数的参数
toolkit/translator/translate_adapter.py:85
Methodtrans_thread
(self, site)
tests/test_translate.py:15
Methodtranslate_timeout
(self)
toolkit/translator/translate_adapter.py:44
FunctionunloadHandler
()
docs/_build/html/_static/jquery-3.2.1.js:714
Methodupdate
(*args, **kwds)
toolkit/structures/thread_safe_collections.py:49
Methodupdate
(self)
toolkit/translator/token_acquirer.py:167
Methodupdate_handler
(self, fd, events)
tools/coroutine.py:42
Functionurldecode
与urlencode相反,不过没有unquote :param query: url查询字符串 :return: 查询字符串的字典
toolkit/__init__.py:313
Functionv
(a,b)
docs/_build/html/_static/jquery.js:2
Methodweb_site
(self)
toolkit/translator/translate_adapter.py:39
Functionweight
(request)
tests/test_components/test_processor.py:7
Functionwrap_key
将javascript 对象字串串形式的key转换成被双字符包裹的格式如{a: 1} => {"a": 1} :param json_str: 要处理的json字符串 :param key_pattern: 用来处理的正则表达式 :return: 结果
toolkit/__init__.py:202
Functionwrapper
(func)
tools/review.py:2
Functionwrapper
(*args, **kwargs)
toolkit/__init__.py:381
Functionwrapper
(*args, **kwargs)
toolkit/async_context.py:174
Functionwrapper
(*args, **kwargs)
toolkit/service/combine.py:45
Functionwrapper
(obj)
docs/_build/html/_static/underscore-1.3.1.js:946
Methodwrite
(self, data)
toolkit/service/console.py:137
Methodwritelines
(self, x)
toolkit/service/console.py:54
Functionyoudao
有道翻译的实现(废弃) :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :return: 结果
toolkit/translator/sites.py:10
Methodzoo
(self)
tests/test_toolkit.py:13
← previous701–797 of 797, ranked by callers