Skip to main content

A command-line utility for Weblate, translation tool with tight version control integration

Project description

Weblate

Weblate is libre software web-based continuous localization system, used by over 2500 libre projects and companies in more than 165 countries.

wlc

wlc is a Weblate command-line client using Weblate's REST API.

Website Translation status CII Best Practices PyPI package Documenation

PIP Installation

Install using pip:

pip3 install wlc

Sources are available at https://github.com/WeblateOrg/wlc.

Usage

Please see Weblate documentation for more complete documentation.

Command-line usage:

wlc list-projects
wlc list-components
wlc list-translations
wlc list-languages
wlc show
wlc ls
wlc commit
wlc push
wlc pull
wlc repo
wlc stats
wlc lock
wlc unlock
wlc lock-status
wlc download
wlc upload

Configuration is stored in ~/.config/weblate. The key/values (retries, timeout, method_whitelist, backoff_factor, status_forcelist) are closely coupled with the urllib3 parameters and allows the user to configure request parameters.

[weblate]
url = https://hosted.weblate.org/api/
retries = 3
method_whitelist = PUT,POST,GET
backoff_factor = 0.2
status_forcelist = 429,500,502,503,504
timeout = 30

[keys]
https://hosted.weblate.org/api/ = APIKEY

Docker image

The image is published on Docker Hub.

Building locally:

docker build -t weblate/wlc .

Detailed documentation is available in Weblate documentation.

Docker hub tags

You can use following tags on Docker hub:

Tag name Description Use case
latest wlc stable release, matches latest tagged release Rolling updates in a production environment
edge wlc development Staging environment
version wlc stable release, see weblate/wlc Well defined deploy in a production environment

Every image is tested by our CI before it gets published, so even the bleeding version should be quite safe to use.

Contributing

Contributions are welcome! See documentation for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wlc-1.15.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

wlc-1.15-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file wlc-1.15.tar.gz.

File metadata

  • Download URL: wlc-1.15.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for wlc-1.15.tar.gz
Algorithm Hash digest
SHA256 d13f1c32ae4caeffd8828e817d8868dec8c5baef1d619c9432d25ce6069bb86e
MD5 0fbfb91e1be26059ea1de06f3f7f32d4
BLAKE2b-256 24570b63c58996dce7873c3f3185930acdd19871e4807fde02118d220a86868c

See more details on using hashes here.

File details

Details for the file wlc-1.15-py3-none-any.whl.

File metadata

  • Download URL: wlc-1.15-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for wlc-1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd0b54efdb5b92f608666266552d5e5170be9c1daf4cc352a7106bf358f758a
MD5 92738a2d6187045ee119852d08e3012f
BLAKE2b-256 c4365b885ce5d3c4c6c1b7ffcac0b988802713725a246cb40dec424d7792c4f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page