# 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.4
Fix bug: it fails when printing toc where the embedded PYZ archive contains subdirectories
### 1.3
Fix python2.7 bug: it raises exception TypeError: makedirs() got an unexpected keyword argument ‘exist_ok’
### 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
Metadata
Release files for pyinstailor 1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyinstailor-1.4.zip | 8.1 kB | Without provenance | Details |
Release files / pyinstailor-1.4.zip
| Download URL | pyinstailor-1.4.zip |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09eec872146c73de2764a2b04caca9669cd05283e845831e0a3ab686759a83d2
|
|
BLAKE2b-256 checksum How to use checksums |
9d0878cc7718e0180c2ad30e690f91c155e21bb3c071571dcf010146b0c3aced
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pyinstailor 1.4
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.