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.3.0.tar.gz
(49.3 kB
view hashes)
Built Distribution
Close
Hashes for python-lokalise-api-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7057941c1c632efa1355f7d4357310791d6395532198cc054f81078d3a07ed |
|
MD5 | b2415f30b1587fecb880df9ddf6a66d2 |
|
BLAKE2b-256 | 4ba6bd7ef307951cde14af0dca71ba431ce4f74d68c033d26417c87e09c9cb16 |
Close
Hashes for python_lokalise_api-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7421ad24338a4d661880fbea66080cc280bc8d16880128a321138f7804ca3a |
|
MD5 | 30693c203e8e0fd907c9b3929b7d689f |
|
BLAKE2b-256 | 97f878fb9012fb6abbeb303450ab9361fa43797a28dddd679e365a60bf893be4 |