nitrokey.updates¶
- class nitrokey.updates.Asset¶
基类:
object
资产(标签:str,url:str)
- __init__(tag, url)¶
- 参数:
tag (str)
url (str)
- 返回类型:
None
- download(f, callback=None)¶
- 参数:
f (BinaryIO)
callback (Callable[[int, int], None] | None)
- 返回类型:
None
- download_to_dir(d, overwrite=False, callback=None)¶
- 参数:
d (str)
overwrite (bool)
callback (Callable[[int, int], None] | None)
- 返回类型:
str
- read(callback=None)¶
- 参数:
callback (Callable[[int, int], None] | None)
- 返回类型:
bytes
- tag: str¶
- url: str¶