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.1.0.tar.gz
(44.6 kB
view hashes)
Built Distribution
Close
Hashes for python-lokalise-api-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54b9aaf1fcf7c86750d0e0b99515c61efe13b731316d10a172a83275d1b6fcf6 |
|
MD5 | 3b2ae69b0b47e0124cf3a956acc2125d |
|
BLAKE2b-256 | 89b33f57bc877d81ce49b736a53af9e9f281d93fa21317552895c3c30066beab |
Close
Hashes for python_lokalise_api-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7776e8d21c897af3e1e5e6f4f66da0a59b44e2a86d1f9a7464912f1eef8fdcd |
|
MD5 | 1c8284e17ace11adf4b4e794d71b2a75 |
|
BLAKE2b-256 | 242b0635cff63f42f608ad53ca084de3a2541fbb4384d02293a7b36ab57309bf |