Python

Moderators: None (Apply to moderate this forum)
Number of threads: 400
Number of posts: 1055

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to convert .pyc files to .py files in python Posted by fabulousfreak on 16 Jun 2010 at 10:10 PM
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


Report
Re: how to convert .pyc files to .py files in python Posted by shatteredcode on 14 Jul 2010 at 6:08 AM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.