Weblate’s Python API¶
Instalation¶
The Python API is shipped separately, you need to install wlc to have it, it also include Weblate Client:
pip install wlc
wlc
¶
WeblateException
¶
-
exception
wlc.
WeblateException
¶ Base class for all exceptions.
Weblate
¶
-
class
wlc.
Weblate
(key='', url=None, config=None)¶ Parámetros: - key (string) – User key
- url (string) – API server URL, if not specified default is used
- config (WeblateConfig) – Configuration object, overrides any other parameters.
Access class to the API, define API key and optionally API URL.
wlc.config
¶
WeblateConfig
¶
-
class
wlc.config.
WeblateConfig
(section='wlc')¶ Parámetros: section (string) – Configuration section to use Configuration file parser following XDG specification.
-
load
(path=None)¶ Parámetros: path (string) – Path where to load configuration. Loads configuration from a file, if none is specified it loads from wlc configuration file placed in XDG configuration path (
~/.config/wlc
and/etc/xdg/wlc
).
-