Official Python interface for the Lokalise API v2
Project description
Lokalise API v2 official Python interface
Official Python 3 interface for the Lokalise APIv2 that represents returned data as Python objects.
Quick start
This plugin requires Python 3.6 and above. Install it:
pip install python-lokalise-api
Obtain a Lokalise API token (in your Personal profile) and use it:
import lokalise
client = lokalise.Client('YOUR_API_TOKEN')
project = client.project('123.abc')
print(project.title)
client.upload_file(project.project_id, {
"data": 'ZnI6DQogIHRlc3Q6IHRyYW5zbGF0aW9u',
"filename": 'python_upload.yml',
"lang_iso": 'en'
})
translation_keys = client.keys(project.project_id, {"page": 2,
"limit": 3,
"disable_references": "1"})
translation_keys.items[0].key_name['web'] # => "sign_up"
Documentation
Find detailed documentation at python-lokalise-api.readthedocs.io.
License
This plugin is licensed under the BSD 3 Clause License.
Copyright (c) Lokalise team, Ilya Bodrov
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-lokalise-api-1.1.0.tar.gz
(48.7 kB
view hashes)
Built Distribution
Close
Hashes for python-lokalise-api-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e33071b10badf750591b54456e3e647765c8309995eb1cad17fec7cee7477404 |
|
MD5 | d6db1c2ea5ee2452330c6c3467507ada |
|
BLAKE2b-256 | 14ab7b3971bfdac27a0f4adab6b1e23114a45da5088ee9c2e8fd3bb3dcaad8f7 |
Close
Hashes for python_lokalise_api-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e0081bd36e52016499ada1900ab5884b90398a5306a15f91593023c943428b |
|
MD5 | 0a7b90dc4918ee6d7581a93840e4c13c |
|
BLAKE2b-256 | 5df823f64d98c06b2203c875cfe035ba1b6ebb9199df1d32dee02fa04e3e621e |