comicbox.version ¶
Package name and version.
get_version() ¶
Get the current installed comicbox version.
Source code in comicbox/version.py
11 12 13 14 15 16 17 | |
set_user_agent_context(entry_point, jobs=None, client=None) ¶
Record how this process drives comicbox, for the outgoing User-Agent.
entry_point is "cli" or "lib"; jobs is the worker count a batch runs with; client names an embedding application.
Call before the first online request: API clients bake the header in at construction and are memoized per credential set, so a later change does not reach a session that already exists.
Source code in comicbox/version.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
user_agent() ¶
Return the User-Agent for outgoing API requests.
Source code in comicbox/version.py
65 66 67 68 69 70 71 72 73 | |