how to convert .pyc files to .py files in python - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

how to convert .pyc files to .py files in python

fabulousfreakfabulousfreak Posts: 1Member
hi,

i am new to python , currently i want to decompile a python project and make changes
that project doesnt have any .py files it contains .pyc files
for that i have to convert .pyc files to .py files
so how can i do that
any suggestions to this issue kindly help me


Comments

  • shatteredcodeshatteredcode Posts: 3Member
    Hello,

    2 things:

    1. Make sure the project that you have is OK with you changing their software, otherwise what you're doing is illegal.

    2. I found a couple of places where this could be done, but one is not free if the files are over 5kb.

    DePython is an online service which will do this, but only up to Python 2.5, and costs some money after 5kb.
    http://depython.net/

    UnPyc supports 2.6 as well, but some people say it doesn't work. I've never needed to use the tool, so I'm not sure.

    Hope it helped!

    -Rick
Sign In or Register to comment.