Skip to main content

Lokalise API v2 official Python interface

PyPI CI Coverage Status Downloads Docs

Official Python 3 interface for the Lokalise APIv2 that represents returned data as Python objects.

Quick start

This plugin requires Python 3.11 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.name)

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"

You can also use OAuth 2 tokens:

client = lokalise.OAuthClient('YOUR_OAUTH2_API_TOKEN')

project = client.project('123.abc')

Documentation

Find detailed documentation at python-lokalise-api.readthedocs.io.

License

This plugin is licensed under the BSD 3 Clause License.

Copyright (c) Lokalise group and Ilya Krukowski

Metadata

Release files for python-lokalise-api 5.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-lokalise-api 5.0.0
File Size Uploaded Provenance Actions
python_lokalise_api-5.0.0.tar.gz 500.2 kB Without provenance Details for python_lokalise_api-5.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-lokalise-api 5.0.0
File Interpreter ABI Platform Actions
python_lokalise_api-5.0.0-py3-none-any.whl Python 3 none any Details for python_lokalise_api-5.0.0-py3-none-any.whl

Total release size: 598.5 kB

Release files / python_lokalise_api-5.0.0.tar.gz

Download URL python_lokalise_api-5.0.0.tar.gz
Size 500.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9c936c95b32e3d3e3160aaeebff86af7826f251cb776e3322887fae1b8da45f8
BLAKE2b-256 checksum
How to use checksums
c5e35b6493a3c356726438b969313441cf6cbd8bb43d2f7cac8a8e18d8de83e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / python_lokalise_api-5.0.0-py3-none-any.whl

Download URL python_lokalise_api-5.0.0-py3-none-any.whl
Size 98.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
154eb159b2b5a8abff27426b090208a0bb24c43e5b33656fc20c7861f656704f
BLAKE2b-256 checksum
How to use checksums
073b94edb0c8dee440d04e6862a67ca6aa27c1f00e5514cb21bbc39951cc825f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.3 {"installer":{"name":"uv","version":"0.13.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for python-lokalise-api 5.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page