Skip to main content

A command line utility to extract and patch strings of various filetypes, with a focus on compatibility and translation.

Project description

strindex

PyPI version PyPI downloads GitHub downloads license

A command line utility to extract and patch strings of various filetypes, with a focus on compatibility and translation.

This utility will allow you to replace strings in supported filetypes with other strings. It's useful to change the text of a program without having to recompile it, for example, to translate a program into another language.

Apart from using offsets to replace strings, there's also an option to use the original string itself to ensure compatibility with different versions of the same program.

There are a lot of features to help with translation, such as spellchecking & filtering strings by length and character set.

The release includes a precompiled version of the program, which ONLY does the patching. If you want to use the other features, you will need to install Python 3.6 or later and the required libraries.

Supported filetypes

Support for more types won't be added unless I find some motivation to...

  • PE files (".exe, ".dll"...)
  • Gamemaker data files ("data.win")

Installation

You can install the program with the command pip install strindex.

Usage

You can run the program with the command strindex <action> <input file(s)> [options].

These are the available actions:

  • create: Create a list of strings from a PE file (a strindex). Use -c to create a strindex that uses the original strings as references.
  • patch: Patch a PE file with a strindex.
  • patch_gui: Patch a PE file with a strindex using a GUI.
  • update Update a strindex pointers' with the updated version of a file.
  • filter: Filter a strindex by detected language, wordlist or length. You can specify those in the strindex settings.
  • delta: Create a delta file between two strindexes, that only contains the lines of the first strindex missing in the second one.
  • spellcheck: Spellcheck a strindex. You can specify the target language in the strindex settings as an ISO 639-1 code.

Usage Examples

  • Create a strindex from a PE file:
    strindex create program.exe -o strindex.txt
    
  • Patch a PE file with a strindex:
    strindex patch program.exe strindex.txt
    

Strindex Example

You can find an example of a strindex file and an explanation of its settings here.

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

strindex-3.4.0.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

strindex-3.4.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file strindex-3.4.0.tar.gz.

File metadata

  • Download URL: strindex-3.4.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for strindex-3.4.0.tar.gz
Algorithm Hash digest
SHA256 d72f3e811e5162eb8612a2c51490ca15d052aa1813e519581216da2a5c9ce237
MD5 c00ab303f0d721798ba9b70c833eb4fb
BLAKE2b-256 c19d5c83fbc7ba12346994ac4c0e065474bb9a4848a31d442952f5a15a86071a

See more details on using hashes here.

File details

Details for the file strindex-3.4.0-py3-none-any.whl.

File metadata

  • Download URL: strindex-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for strindex-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ecbaf62f729dce72e765f127338a119dd25cc7f95c4c04e38fa3774052dd65c
MD5 dc8d87bced5d9b0d58f26646602758d7
BLAKE2b-256 d3cdc57663cb060e43878007a82ab986aa74435648a14180caa438ae0353db41

See more details on using hashes here.

Supported by

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