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.2.0.tar.gz
(49.0 kB
view hashes)
Built Distribution
Close
Hashes for python-lokalise-api-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fabb49f261a094df5a07749cb51174fbad17d55629283141a92234a38f2ee53 |
|
MD5 | c766f47df6c22fc91fba01520def3301 |
|
BLAKE2b-256 | 37dac96b4665dac89a4b1a1ab115fb00d7235c0f00a2604396f25fadffe2ed7d |
Close
Hashes for python_lokalise_api-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318ae4b81d38cc4fc2124bfe73b45d932e2aa80bb3868c44e7588211dbaa6dbf |
|
MD5 | 6d8252d787bda9d6f463d5454fbd1dc8 |
|
BLAKE2b-256 | c75de01be8ee2f0c9a2868f47b453d4e17fba768cc46043e4748d08acf5eb21a |