Skip to main content

python-localizable

Localizable.strings parser for Python

Usage

Install using pip.

$ pip install localizable

You can either parse a full string directly or pass a file path:

import localizable

strings = localizable.parse_strings(filename='Localizable.strings')
strings = localizable.parse_strings(content="content of .strings file") # this works too

The output format is an array of dictionaries, in order, with the following key/value pairs:

/* Comment */
"Key" = "Value";
  • key: "Key"
  • value: "Value"
  • comment: "Comment"

License

GPLv2. Adapted from Transifex.

Metadata

Release files for localizable 0.1.3

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

Source distribution (sdist)

Source distribution for localizable 0.1.3
File Size Uploaded Provenance Actions
localizable-0.1.3.tar.gz 9.7 kB Without provenance Details for localizable-0.1.3.tar.gz

Release files / localizable-0.1.3.tar.gz

Download URL localizable-0.1.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bb6c1ed3542da130796346af1c85ec0effc851eddbfad06e18d312c706879812
BLAKE2b-256 checksum
How to use checksums
f34f41a646026e646ff18525168e0b86f54373329a0ab61a420ba43b6a8d2caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.4

Security for localizable 0.1.3

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.

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