Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'Un-compiling' an .exe ?
#1
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
Reply
#2
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 2,591 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Compiling SlicerCAT flaviu2 1 2,573 Sep-21-2020, 08:38 AM
Last Post: buran
  Compiling on win10 ebolisa 1 2,286 Sep-04-2020, 04:39 PM
Last Post: ebolisa
  Compiling to windows installer DT2000 1 2,086 May-04-2020, 09:17 PM
Last Post: DT2000
  Compiling python CommanderCody66 7 148,408 Apr-19-2019, 08:12 PM
Last Post: snippsat
  Having Trouble Compiling From Source (3.7.2) pnicolosi78 6 10,099 Feb-06-2019, 07:24 PM
Last Post: nilamo
  compiling python using pyinstaller sabeesh90 0 3,305 Aug-16-2018, 09:58 AM
Last Post: sabeesh90

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020