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-0.4.0.tar.gz
(49.7 kB
view hashes)
Built Distribution
Close
Hashes for python-lokalise-api-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ba07c0e42ee811e25402c02368c871c2ea0f27fe6550bbdacd78c7b5fd6e365 |
|
MD5 | e7bb33d60c322372c3ce73c6bbc3d117 |
|
BLAKE2b-256 | b1c9a7fa3ae4db7c51867490fb7ce6531a36fd353a1745b06275f8be1e0e0f85 |
Close
Hashes for python_lokalise_api-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c38c749a9208aa345c0223ea5dd9bf319783f1b99aab5ab5b3cd3cfb32393784 |
|
MD5 | 0137f04fc75a776b5f4a802de3465f67 |
|
BLAKE2b-256 | 8b47808b187856880f654bedc1abb7dc2d6346730faedf39eca651d0e97e8a32 |