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
__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
Method
a
(self)
tests/test_cache.py:12
Method
a_cache
(self)
tests/test_cache.py:16
Function
aa
(a,b,c)
docs/_build/html/_static/jquery.js:2
Method
acquire
获取字段校验码。 :param text: :return:
toolkit/translator/token_acquirer.py:94
Method
acquire
(self, text)
toolkit/translator/token_acquirer.py:156
Method
add_commandline_arguments
(cls, parser)
toolkit/service/plugins.py:19
Method
add_commandline_arguments
(cls, parser)
toolkit/service/plugins.py:92
Method
add_done_callback
(self, fn)
tools/coroutine.py:117
Method
adjust
(self, text)
toolkit/translator/token_acquirer.py:182
Method
age
(self)
tests/test_async_context.py:149
Function
arg_to_iter
将非可迭代对象转换成可迭代对象 :param arg: 任意对象 :return: 列表对象
toolkit/__init__.py:67
Function
async_cache_classproperty
异步类缓存属性 :param func: :return:
toolkit/async_context.py:215
Function
async_cached_property
有缓存效果异步属性 :param func: :return:
toolkit/async_context.py:188
Function
async_classproperty
异步类属性 :param func: :return:
toolkit/async_context.py:197
Function
async_global_cache_classproperty
异步全局类缓存属性 :param func: :return:
toolkit/async_context.py:206
Function
async_produce_wrapper
pykafka实现异步生产时,使用的装饰器 ` self.producer.produce = async_produce_wrapper(self.producer, self.logger)(self.producer.produce) ` :p
toolkit/__init__.py:477
Function
async_property
异步property,支持将异步方法转换成同步属性,但不支持后续的property.setter等方法。 :return:
toolkit/async_context.py:180
Method
auth
(self, resp)
toolkit/translator/token_acquirer.py:153
Method
auth
(self, resp)
toolkit/translator/token_acquirer.py:192
Method
auth
(self, resp)
toolkit/translator/token_acquirer.py:212
Function
baidu
百度翻译的实现, 百度翻译最长只能翻译5000个字符 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :param acquirer: token获取器 :re
toolkit/translator/sites.py:59
Method
bar
(self)
tests/test_toolkit.py:17
Method
bar
()
tests/test_async_context.py:199
Method
bar
()
tests/test_async_context.py:217
Function
bing
必应翻译的实现 :param src_data: 原生数据 :param proxies: 代理 :param src_template: 原生数据模板 :return: 结果
toolkit/translator/sites.py:33
Function
ca
(a,b)
docs/_build/html/_static/jquery.js:2
Function
cache
(func)
toolkit/__init__.py:871
Function
cache
( key, value )
docs/_build/html/_static/jquery-3.2.1.js:896
Function
cache_for
缓存属性,指定缓存失效时间 :param timeout: 缓存失效时间 second
toolkit/__init__.py:805
Function
cache_method
缓存一个方法的调用结果,持续一定时长, 根据不同的调用参数来缓存不同的结果,调用参数必须是可hash的, 该方法调用失败时,希望抛出异常,此时缓存会失败。 :param timeout: 缓存时长 :s
toolkit/__init__.py:863
Function
cache_method_for_update
缓存方法调用结果直到实例的updated返回True,与cache_method类似。 @param func: 要缓存的方法
toolkit/__init__.py:894
Function
cache_property
缓存属性 :param func: :return:
toolkit/__init__.py:766
Function
call_later
应用场景: 被装饰的方法需要大量调用,随后需要调用保存方法, 但是因为被装饰的方法访问量很高,而保存方法开销很大 所以设计在装饰方法持续调用一定间隔后,再调用保存方法。 规定间隔内,无论调用多少次被装饰方法,保存方法只会 调用一次,除非immedia
toolkit/__init__.py:620
Method
cancel
(self)
tools/coroutine.py:100
Method
cancelled
(self)
tools/coroutine.py:103
Function
chain_all
连接多个序列或字典 :param iter: 字典或列表的列表 :return: 结果
toolkit/__init__.py:235
Method
clear
(self)
toolkit/structures/queues.py:38
Method
clear
(self)
toolkit/structures/queues.py:70
Method
clear
(self)
toolkit/structures/queues.py:153
Method
close
(self)
toolkit/structures/queues.py:157
Function
combine
组合的装饰器实现,使用方法: @combine(Consoler) class Service(): pass 动态将Consoler组合到Service中,Service组合Consoler所有非下划线方法及属性(覆盖),
toolkit/service/combine.py:8
Function
completed
()
docs/_build/html/_static/jquery-3.2.1.js:3927
Function
contextmanager
异步下上文管理器,其支持装饰同步生成器或异步生成器,并支持使用async with 或with。 :param func: :return:
toolkit/async_context.py:128
Method
control
(self, log_path='/dev/null', interval=2, allow_multi=False)
toolkit/service/plugins.py:57
Function
coro_finalize
回收task时,将该task的child和其parent双向绑定到一起 :param task: :return:
toolkit/async_context.py:49
Function
ctor
()
docs/_build/html/_static/underscore-1.3.1.js:473
Function
custom_re
模仿selector.re :param regex: 正则表达式对象 :param text: 被查询的字符串 :return:
toolkit/__init__.py:429
Method
d
(cls)
tests/test_cache.py:20
Method
d_cache
(cls)
tests/test_cache.py:24
Method
d_global_cache
(cls)
tests/test_cache.py:28
Function
decode
decode字段 :param value: 要decode的值 :param encoding: 编码 :return: 结果
toolkit/__init__.py:163
Function
decorate
(func)
toolkit/__init__.py:600
Method
default
(self, obj)
toolkit/__init__.py:358
Function
defaultPrefilter
( elem, props, opts )
docs/_build/html/_static/jquery-3.2.1.js:6830
Function
disableScript
( elem )
docs/_build/html/_static/jquery-3.2.1.js:5645
Method
discard
(self, value)
toolkit/structures/thread_safe_collections.py:18
Method
displayhook
(obj)
toolkit/service/console.py:76
Function
doAnimation
()
docs/_build/html/_static/jquery-3.2.1.js:7259
Function
encode
encode字段 :param value: 要encode的值 :param encoding: 编码 :return: 结果
toolkit/__init__.py:174
Function
f2
(*args)
toolkit/__init__.py:411
Function
fcamelCase
( all, letter )
docs/_build/html/_static/jquery-3.2.1.js:110
Function
fcssescape
( ch, asCodePoint )
docs/_build/html/_static/jquery-3.2.1.js:694
Method
find_max
(self)
tools/tree.py:107
Method
finish
(self)
toolkit/tools/file_buffalo.py:23
Method
finished
(self)
toolkit/tools/file_buffalo.py:20
Function
format_html_string
格式化html, 去掉多余的字符,类,script等。这个函数性能可能会较差。 :param html: 传入的html字符串 :return: 处理完的html
toolkit/__init__.py:291
Function
free_port
找到一个可用端口 :return 端口号
toolkit/__init__.py:580
Method
fun
(self)
tests/test_toolkit.py:9
Method
fun
(a)
tests/test_async_context.py:189
← previous
next →
501–600 of 797, ranked by callers