Skip to main content

pyinstailor is a tailor to replace files directly in the executable file generated by PyInstaller.

Project description

# pyinstailor

pyinstailor is a tailor to replace files directly in the executable file generated by PyInstaller. Sometimes the script is changed a little, for example, only refine log messages, no dependency changed, no analysis is required. In this case, pyinstailor could extract the executable, replace the old script with new one, then repack it.

Usage

pyinstailor.py [-h] [-d] [-s N] executable [files]

Examples

  • List all the available items in the archive

    pyinstailor dist/foo.exe

  • Replace entry script “foo.py” in the bundle “foo.exe”

    pyinstailor dist/foo.exe foo.py

  • If entry scrip is in other path, strip the first N path

    pyinstailor -s 1 dist/foo.exe src/foo.py

  • Replace package file “reader/__init__.py” in the bundle “foo.exe”

    pyinstailor dist/foo.exe reader/__init__.py

  • Strip the first path in the file path

    pyinstailor -s 2 dist/foo.exe ../../reader/__init__.py

This tool doesn’t support PyInstaller 2.0, and it’s not full test.

## Change Logs

### 1.2

  • Fix bug: when repacking an executable where the embedded PKG archive contains subdirectories, the repack script fails

### 1.1

  • Fix bug: the final bundle isn’t patched in some platforms

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

pyinstailor-1.2.zip (7.8 kB view details)

Uploaded Source

File details

Details for the file pyinstailor-1.2.zip.

File metadata

  • Download URL: pyinstailor-1.2.zip
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for pyinstailor-1.2.zip
Algorithm Hash digest
SHA256 7e74f0ad87f8ac1d7cc6ba5c411833f222c696fe216ce8a70c60c73a2ea8289f
MD5 19ae04bde15f2b23f98042fdc53fad9c
BLAKE2b-256 f452d0d266b0158c354790f1858e3422bb6051e33cbf69ff0e78b3e7255bdbf0

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