Weblate Python API
Instalacja
The Python API is shipped separately, you need to install the Klient Weblate (wlc) to have it.
pip install wlc
wlc
WeblateException
- exception wlc.WeblateException
Base class for all exceptions.
Weblate
- class wlc.Weblate(key='', url=None, config=None)
- Parametry
key (str) – Klucz użytkownika
url (str) – API server URL, if not specified default is used
config (wlc.config.WeblateConfig) – Configuration object, overrides any other parameters.
Access class to the API, define API key and optionally API URL.
- get(path)
-
Performs a single API GET call.
wlc.config
WeblateConfig
wlc.main
- wlc.main.main(settings=None, stdout=None, args=None)
- Parametry
Main entry point for command-line interface.
- @wlc.main.register_command(command)
Decorator to register
Command
class in main parser used bymain()
.
Command
- class wlc.main.Command(args, config, stdout=None)
Main class for invoking commands.