skillfed

python-lokalise-api

Official Python interface for the Lokalise API v2

python-lokalise-api v4.1.0 170.5K downloads/30d#10,392 on PyPI15
Permissive license Active released

What it is and what it does

This is the official Python interface to Lokalise's REST API v2, a service for managing translation projects and localization workflows. It wraps HTTP requests to the Lokalise backend and returns structured Python objects representing projects, translation keys, and file upload operations, eliminating the need to parse raw JSON responses manually.

You authenticate with an API token or OAuth 2 credentials, then instantiate a client and call methods like project(), keys(), and upload_file() to interact with your translation data. The library handles serialization and deserialization, making it natural to work with Lokalise resources as Python objects rather than dictionaries.

Use it for:

  • Automate bulk uploads of translation files to Lokalise projects from a CI/CD pipeline.
  • Retrieve and iterate over translation keys programmatically to sync with external localization systems.
  • Build a custom dashboard or reporting tool that queries project metadata and translation statistics.
  • Manage multiple Lokalise projects and their settings via Python scripts instead of the web UI.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for the Lokalise API v2, providing object-oriented access to translation project management, file uploads, and key retrieval operations.

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. Install it if you need to integrate Lokalise translation management into Python applications or automation workflows. The Python 3.10+ requirement is a hard constraint worth checking before adoption.

Install

python-lokalise-api on PyPI

pip

pip install python-lokalise-api

uv

uv add python-lokalise-api

poetry

poetry add python-lokalise-api

Installing python-lokalise-api

Before you install

Low install friction with only two runtime dependencies (requests and exceptiongroup). Active maintenance with a recent release 23 days ago and ongoing repository activity.

License in practice

Permissive BSD 3 Clause License allows commercial and private use with minimal restrictions.

Quickstart

pip install python-lokalise-api

import lokalise

client = lokalise.Client('YOUR_API_TOKEN')
project = client.project('123.abc')
print(project.name)

Requires Python 3.10 or above.

Verify before relying

  • Whether OAuth 2 token support is production-ready or still experimental.
  • Rate limiting behavior and handling of large pagination requests.
  • Performance characteristics when working with projects containing thousands of translation keys.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — exceptiongroup, requests
Maintenance actively maintained — 23 days since the last release
Last repo commit
First released
Downloads 170,537/month — #10,392 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python_lokalise_api-4.1.0-py3-none-any.whl

Keywords: api, client, lokalise

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Tags

lokalise api python clienttranslation management apilokalise file uploadtranslation keys apilocalization api client
localizationrest-api-client

More Python Modules packages