Skip to main content

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

Project description

Weblate

Weblate is a copylefted libre software web-based continuous localization system, used by over 1150 libre projects and companies in more than 115 countries.

wlc

wlc is a Weblate commandline client using Weblate's REST API.

Website Translation status CII Best Practices Docker Layers 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.

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.10.tar.gz (60.2 kB view details)

Uploaded Source

Built Distribution

wlc-1.10-py3-none-any.whl (84.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wlc-1.10.tar.gz
  • Upload date:
  • Size: 60.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wlc-1.10.tar.gz
Algorithm Hash digest
SHA256 e06e1576fb2f8122e0ca317e789f5dc577b4ffcdb52ad61fbbae7c28ca2cd1e0
MD5 abf4982aa6c9b3b8baf754e57e177269
BLAKE2b-256 78c53f2599f70ae9c5ef09aa6fdfce632396cfa8dd084cd066f224494e1d71ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wlc-1.10-py3-none-any.whl
  • Upload date:
  • Size: 84.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for wlc-1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f83502b033cb6ceafa00ad2cf7c99414467b49d2b8c8c68a961d97344a1f00
MD5 89086830b81d99184078d5bad504f486
BLAKE2b-256 fdb52f35ec9ceea7a9e8da75fe498bb0a9ba083f7d66fbcf9bc6e382ffec194a

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