Skip to main content

Tools for dealing with the .strings files for iOS and macOS

Project description

dotstrings

This is a Python toolkit for interacting with the localization files for iOS and macOS.

Examples

Read in a .strings file and print the entries:

import dotstrings

entries = dotstrings.load("/path/to/file.strings")

for entry in entries:
    print("Key: " + entry.key)
    print("Value: " + entry.value)
    print("Comments: " + "\n".join(entry.comments))

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dotstrings-3.1.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

dotstrings-3.1.4-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file dotstrings-3.1.4.tar.gz.

File metadata

  • Download URL: dotstrings-3.1.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for dotstrings-3.1.4.tar.gz
Algorithm Hash digest
SHA256 24ea787b4e04a5c444bb2ab2b04817ff234e9cf99713e9e25649c7bfcc698a81
MD5 e8e8a2da0b82f176c5f0f1b840a1df90
BLAKE2b-256 a787f2d17b1ef81abf03b39182b5f43f3c9edc18d10109b34e5b2ea507a39bb8

See more details on using hashes here.

File details

Details for the file dotstrings-3.1.4-py3-none-any.whl.

File metadata

  • Download URL: dotstrings-3.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.9 Darwin/24.3.0

File hashes

Hashes for dotstrings-3.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 527fd6211a0063c2a752f2f7146be6ba5b55d73ce5ddfe402414c96896b565f9
MD5 36a33b6e0d4a540ab4e0d078335e1baa
BLAKE2b-256 05cdc0724bde8a244ca3b1af378e474bdfcb9539860af814b94120d54a89d13b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page