nitrokey.updates¶
- exception nitrokey.updates.DownloadError¶
Osnove:
Exception
- __init__(msg)¶
- Parametri:
msg (str)
- Vrne tip:
None
- exception nitrokey.updates.OverwriteError¶
Osnove:
Exception
- __init__(path)¶
- Parametri:
path (str)
- Vrne tip:
None
- class nitrokey.updates.Asset¶
Osnove:
object
Asset(oznaka: str, url: str)
- __init__(tag, url)¶
- Parametri:
tag (str)
url (str)
- Vrne tip:
None
- download(f, callback=None)¶
- Parametri:
f (BinaryIO)
callback (Callable[[int, int], None] | None)
- Vrne tip:
None
- download_to_dir(d, overwrite=False, callback=None)¶
- Parametri:
d (str)
overwrite (bool)
callback (Callable[[int, int], None] | None)
- Vrne tip:
str
- read(callback=None)¶
- Parametri:
callback (Callable[[int, int], None] | None)
- Vrne tip:
bytes
- tag: str¶
- url: str¶
- class nitrokey.updates.Release¶
Osnove:
object
Release(oznaka: str, sredstva: seznam[str])
- __init__(tag, assets)¶
- Parametri:
tag (str)
assets (list[str])
- Vrne tip:
None
- assets: list[str]¶
- tag: str¶