MCPcopy Create free account

hub / github.com/ShichaoMa/toolkit / functions

Functions797 in github.com/ShichaoMa/toolkit

Method__len__
(self)
toolkit/structures/queues.py:59
Method__len__
(self)
toolkit/structures/queues.py:164
Method__len__
(self)
toolkit/structures/linked_list.py:65
Method__len__
(self)
toolkit/settings/frozen.py:46
Method__new__
元类msc通过__new__组建类对象,其中msc指Singleton :param args: 可以包含类构建所需要三元素,类名,父类,命名空间, 其中 命名空间中__qualname__和函数的__qualname__均含有classname做为
toolkit/singleton.py:21
Method__new__
(cls, json)
toolkit/settings/frozen.py:10
Method__next__
(self)
toolkit/structures/linked_list.py:27
Method__radd__
(self, other)
toolkit/structures/linked_list.py:190
Method__repr__
(self)
toolkit/service/console.py:103
Method__set__
(self, instance, value)
toolkit/__init__.py:801
Method__setattr__
(self, name, value)
toolkit/service/console.py:88
Method__setitem__
(self, key, value)
toolkit/async_context.py:111
Method__setitem__
(self, key, value)
toolkit/structures/linked_list.py:173
Method__setitem__
(self, key, value)
toolkit/settings/frozen.py:52
Method__str__
(self)
tools/merge_link.py:12
Method__str__
(self)
tools/wine.py:72
Method__str__
(self)
tools/hash_set.py:96
Method__str__
(self)
toolkit/structures/linked_list.py:10
Method__str__
(self)
toolkit/structures/linked_list.py:291
Method__str__
(self)
toolkit/settings/frozen.py:58
Method__subclasshook__
(cls, C)
toolkit/service/plugins.py:23
Function_a
(a,b,c,d,e)
docs/_build/html/_static/jquery.js:3
Function_assert
增强版assert,如果data是异常对象则直接抛出。 :param boolean: True/False :param data: 异常或者描述信息
toolkit/__init__.py:1054
Method_console
(self)
toolkit/service/plugins.py:271
Function_coroutine_run_in_child_thread_loop
使用一子线程事件循环来执行异步方法。 :param container: :param coroutine: :return:
toolkit/async_context.py:224
Function_getattr
(*args, **kwargs)
toolkit/service/combine.py:98
Function_init
(*args, **kwargs)
toolkit/service/combine.py:70
Method_remove
(self, node, data)
tools/tree.py:116
Function_rep
(mth, dev)
toolkit/tools/package_control.py:60
Function_repl
(mth, index, dev)
toolkit/tools/package_control.py:52
Method_translate
(self, src, proxies, src_template)
toolkit/translator/translate_adapter.py:133
Methoda
(self)
tests/test_cache.py:12
Methoda_cache
(self)
tests/test_cache.py:16
Functionaa
(a,b,c)
docs/_build/html/_static/jquery.js:2
Methodacquire
获取字段校验码。 :param text: :return:
toolkit/translator/token_acquirer.py:94
Methodacquire
(self, text)
toolkit/translator/token_acquirer.py:156
Methodadd_commandline_arguments
(cls, parser)
toolkit/service/plugins.py:19
Methodadd_commandline_arguments
(cls, parser)
toolkit/service/plugins.py:92
Methodadd_done_callback
(self, fn)
tools/coroutine.py:117
Methodadjust
(self, text)
toolkit/translator/token_acquirer.py:182
Methodage
(self)
tests/test_async_context.py:149
Functionarg_to_iter
将非可迭代对象转换成可迭代对象 :param arg: 任意对象 :return: 列表对象
toolkit/__init__.py:67
Functionasync_cache_classproperty
异步类缓存属性 :param func: :return:
toolkit/async_context.py:215
Functionasync_cached_property
有缓存效果异步属性 :param func: :return:
toolkit/async_context.py:188
Functionasync_classproperty
异步类属性 :param func: :return:
toolkit/async_context.py:197
Functionasync_global_cache_classproperty
异步全局类缓存属性 :param func: :return:
toolkit/async_context.py:206
Functionasync_produce_wrapper
pykafka实现异步生产时,使用的装饰器 ` self.producer.produce = async_produce_wrapper(self.producer, self.logger)(self.producer.produce) ` :p
toolkit/__init__.py:477
Functionasync_property
异步property,支持将异步方法转换成同步属性,但不支持后续的property.setter等方法。 :return:
toolkit/async_context.py:180
Methodauth
(self, resp)
toolkit/translator/token_acquirer.py:153
Methodauth
(self, resp)
toolkit/translator/token_acquirer.py:192
Methodauth
(self, resp)
toolkit/translator/token_acquirer.py:212
Functionbaidu
百度翻译的实现, 百度翻译最长只能翻译5000个字符 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :param acquirer: token获取器 :re
toolkit/translator/sites.py:59
Methodbar
(self)
tests/test_toolkit.py:17
Methodbar
()
tests/test_async_context.py:199
Methodbar
()
tests/test_async_context.py:217
Functionbing
必应翻译的实现 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :return: 结果
toolkit/translator/sites.py:33
Functionca
(a,b)
docs/_build/html/_static/jquery.js:2
Functioncache
(func)
toolkit/__init__.py:871
Functioncache
( key, value )
docs/_build/html/_static/jquery-3.2.1.js:896
Functioncache_for
缓存属性,指定缓存失效时间 :param timeout: 缓存失效时间 second
toolkit/__init__.py:805
Functioncache_method
缓存一个方法的调用结果,持续一定时长, 根据不同的调用参数来缓存不同的结果,调用参数必须是可hash的, 该方法调用失败时,希望抛出异常,此时缓存会失败。 :param timeout: 缓存时长 :s
toolkit/__init__.py:863
Functioncache_method_for_update
缓存方法调用结果直到实例的updated返回True,与cache_method类似。 @param func: 要缓存的方法
toolkit/__init__.py:894
Functioncache_property
缓存属性 :param func: :return:
toolkit/__init__.py:766
Functioncall_later
应用场景: 被装饰的方法需要大量调用,随后需要调用保存方法, 但是因为被装饰的方法访问量很高,而保存方法开销很大 所以设计在装饰方法持续调用一定间隔后,再调用保存方法。 规定间隔内,无论调用多少次被装饰方法,保存方法只会 调用一次,除非immedia
toolkit/__init__.py:620
Methodcancel
(self)
tools/coroutine.py:100
Methodcancelled
(self)
tools/coroutine.py:103
Functionchain_all
连接多个序列或字典 :param iter: 字典或列表的列表 :return: 结果
toolkit/__init__.py:235
Methodclear
(self)
toolkit/structures/queues.py:38
Methodclear
(self)
toolkit/structures/queues.py:70
Methodclear
(self)
toolkit/structures/queues.py:153
Methodclose
(self)
toolkit/structures/queues.py:157
Functioncombine
组合的装饰器实现,使用方法: @combine(Consoler) class Service(): pass 动态将Consoler组合到Service中,Service组合Consoler所有非下划线方法及属性(覆盖),
toolkit/service/combine.py:8
Functioncompleted
()
docs/_build/html/_static/jquery-3.2.1.js:3927
Functioncontextmanager
异步下上文管理器,其支持装饰同步生成器或异步生成器,并支持使用async with 或with。 :param func: :return:
toolkit/async_context.py:128
Methodcontrol
(self, log_path='/dev/null', interval=2, allow_multi=False)
toolkit/service/plugins.py:57
Functioncoro_finalize
回收task时,将该task的child和其parent双向绑定到一起 :param task: :return:
toolkit/async_context.py:49
Functionctor
()
docs/_build/html/_static/underscore-1.3.1.js:473
Functioncustom_re
模仿selector.re :param regex: 正则表达式对象 :param text: 被查询的字符串 :return:
toolkit/__init__.py:429
Methodd
(cls)
tests/test_cache.py:20
Methodd_cache
(cls)
tests/test_cache.py:24
Methodd_global_cache
(cls)
tests/test_cache.py:28
Functiondecode
decode字段 :param value: 要decode的值 :param encoding: 编码 :return: 结果
toolkit/__init__.py:163
Functiondecorate
(func)
toolkit/__init__.py:600
Methoddefault
(self, obj)
toolkit/__init__.py:358
FunctiondefaultPrefilter
( elem, props, opts )
docs/_build/html/_static/jquery-3.2.1.js:6830
FunctiondisableScript
( elem )
docs/_build/html/_static/jquery-3.2.1.js:5645
Methoddiscard
(self, value)
toolkit/structures/thread_safe_collections.py:18
Methoddisplayhook
(obj)
toolkit/service/console.py:76
FunctiondoAnimation
()
docs/_build/html/_static/jquery-3.2.1.js:7259
Functionencode
encode字段 :param value: 要encode的值 :param encoding: 编码 :return: 结果
toolkit/__init__.py:174
Functionf2
(*args)
toolkit/__init__.py:411
FunctionfcamelCase
( all, letter )
docs/_build/html/_static/jquery-3.2.1.js:110
Functionfcssescape
( ch, asCodePoint )
docs/_build/html/_static/jquery-3.2.1.js:694
Methodfind_max
(self)
tools/tree.py:107
Methodfinish
(self)
toolkit/tools/file_buffalo.py:23
Methodfinished
(self)
toolkit/tools/file_buffalo.py:20
Functionformat_html_string
格式化html, 去掉多余的字符,类,script等。这个函数性能可能会较差。 :param html: 传入的html字符串 :return: 处理完的html
toolkit/__init__.py:291
Functionfree_port
找到一个可用端口 :return 端口号
toolkit/__init__.py:580
Methodfun
(self)
tests/test_toolkit.py:9
Methodfun
(a)
tests/test_async_context.py:189
← previousnext →501–600 of 797, ranked by callers