Python Forum

Full Version: 'Un-compiling' an .exe ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm a complete NOOB with regard to python so naming might be a bit off so don't shout at me.

I'm running NETBOX (an IPAM app), and someone has written an 'app' that performs reporting on the DEMO version of the app, link below -

https://pypi.org/project/ipams/

When installed an ipams.exe is created in the scripts dir, which is, i'm thinking, a complied file (using something like pyinstaller).
Like taking a .txt file and renaming it .bat so that it can be run.

I'm trying to understand how this 'file' works so that i can 'use it' in my set up, so the question is -

Is it possible to 'un-compile' the .exe to see the original .py file ?

Note - I did email the 'developer', had one reply, but since then the 'email' has gone offline - as though they don't want to be contacted.

Thanks in advance.

Stephen
Have a look at https://stackoverflow.com/q/75258586/4046632

Just open it as a zip file to examine the content

And the whole source code of the package is available in the repo and actually there is cli app, using Typer. Depending on what you want to do you can/should use the CLI app directly

By the way, exe created with pyinstaller is also zip file, so you can open it and examine the content.