Which Python IDE [duplicate] - python

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
What IDE to use for Python?
Hi recently started looking at Python, basically for scripting, so far I've been doing exercises from the web, which is OK. I'm using gEdit and its fine. but I'm curious to know what is a good IDE for python, that will still allow me to discover. One of the things I'm used to in Visual Studio is code completion,code snippets and tips, so when you type FOO then CTRL+SPACE you get to see what methods,properties etc are available for FOO. You can select a method press F1 and get HELP on its usage. Really helps discovery and learning. Can anyone recommend a good IDE preferably FREE that works well on windows(Linux is optional) and has features such as code completion,code snippets,code tips

You might want to try Vim or Eclipse.

Related

What is the best way to share a python application with someone who isn't a dev [duplicate]

This question already has answers here:
How can I run a Python project on another computer without installing anything on it?
(6 answers)
Closed 9 months ago.
Problem:
I need to send someone (who has little to no computer knowledge) a python program, but I don't even know if he has python installed let alone all the dependencies.
Question:
Assuming he doesn't have python, how should I go about sending the application so that It is as straightforward as possible for him?
What I've tried:
Initially, I thought of using venv and sending him the whole thing, but there has got to be a better solution, as my code only uses two of the built-in libraries.
In my research, I came across Docker, but I think he would need to have that installed. I also saw pipenv but it wouldn't work without python on his PC.
You have multiple ways to do so:
Create an executable file, which is quite a long process but can be useful is you project contains a lot of files and multiple dependencies
Send them the python code (I recommend it if your project fits in one .py file). The person will need to install python and possibly a few pip libraires, but it's not extremely complicated in my opinion, with clear instructions.
Finally, you can go on repl.it and create a repl, which is simply a way to execute code on your browser. I think this is the best option for both large and small projects, except if it contains a lot of odd dependencies, and I'm not sure if repl.it supports graphical interfaces either. Anyway, you should take a look, it might be perfectly fit your needs

How to obfuscate python code to be compiled to an executeable? [duplicate]

This question already has answers here:
How to obfuscate Python code effectively? [duplicate]
(22 answers)
Closed 2 years ago.
I have been distributing my python scripts as Pyinstaller compiled executeables so that people can't steal my code, but I found that there are many tools like this which can easily decompile executeables generated by Pyinstaller. Is there any way to obfuscate this code. I have seen other people asking similar questions, but people just reply convert the code to c or c++ and compile it. This seems like it would work, but I have no idea where to start.
You can check out this How to obfuscate Python code effectively? for details on how to do a simple obfuscation, but the reality is that obfuscation is basically always reversible. Depending on why you are obfuscating your code there may be better ways to go about this.
If it's just to keep people from stealing your source, most people won't even go as far as the decompilation, but the SO answer above should help. Full on obfuscation even in C or C++ has issues, and usually a system exists to decompile all popular obfuscation systems.

How do I see how my program is executed line by line [duplicate]

This question already has answers here:
How to step through Python code to help debug issues?
(15 answers)
Closed 3 years ago.
I am trying to learn the basics of programming using python, and I am getting to the point where I have to deal with if statements and for loops. The thing is that I am getting a bit confused as to how my code is running. Is there a way to see how my code is being executed line by line; I feel that that would deepen my understanding of why code has to be written a certain way in order for computers to understand what I am trying to accomplish. I dont know if my question makes any sense to you guys, but I hope you can help me. Thanks a lot in advance.
You can use an interactive debugger. Some Python IDEs provide it.
You may want to give VS Code a try. Take a look at the debugger part of the tutorial.
What you are looking for is called a debugger. You can find some online, for example here: https://www.onlinegdb.com/online_python_debugger . Alternatively you can use pdb, the python debugger (the above link is just a friendly wrapper around it), directly from the command line, but if you are new to python and programming I wouldn't recommand it.
Try pdb.
python -m pdb script.py
More information on How to step through Python code to help debug issues?.
pdb documentation here.

Searching for a Python lightweight IDE (or text-editor) [duplicate]

This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
What IDE to use for Python?
Hi all,
I'm looking for either a lightweight IDE or a text-editor (with plugins, of course) for writing Python code. Some of the features I'd like the software to provide are as follows:
1) Auto-complete/suggest
2) Multi-tab
3) Auto-format (on save if it is possible)
4) Syntax highlighting
5) Easy navigation between .py code (in Eclipse, if you use F3, you can jump to the Class/Interface file)
6) Expand/Collapse (more known as Folding?)
7) Integrate with code-checking specific to Python (code analysis, unit-test tools, etc)
8) [Optional] Source tree (browsing/navigation)
I prefer to use keyboard to navigate around because I'm using a laptop (with limited display size as well) and I'd like to avoid using mouse.
Update: Please list the plugin names as well if the out-of-the-box doesn't provide them.
Thanks
You mention Eclipse - what about PyDev, a Python IDE for Eclipse?
edit - also, this question has an incredibly comprehensive list of Python IDEs, sorted by feature. Might be worth a look.
Wingware's Python IDE fulfills all of your requirements, and I do consider it to be the best Python IDE around. That being said, it's a commercial product and not available free of charge, though Wingware offers noncommercial/open-source licensing.
There is python.el (written by Emacs community) and python-mode.el (written by Python community) for Emacs. Also, rope, ropemacs, and a few more. Look at EmacsWiki, you will find something for sure if you are open to use Emacs.
If you're on Windows, I would suggest you give Python Tools for Visual Studio. Might not be lightweight, but it sure is nice.
Cruder look, but very lightweight and extremely powerful: you could look at using Vim as a Python IDE.

Which editor/IDE should I use for Python? [duplicate]

This question already has an answer here:
Closed 13 years ago.
Possible Duplicate:
What IDE to use for Python
I have Notepad++ and NetBeans 6.8, however I don't know if they work. I know you can edit Python with Notepad++ and compile/run it using the command line thing, but I'm not really sure how. I know NetBeans is a full-featured IDE and you can compile Java programs, but I don't think they support Python?
Any ideas?
Eclipse with PyDev has been a great combination for me. Great editing experience and more importantly a good debugger. Pylint is supported as well, this will save you lots of headaches. This is all open source too. If you want to do IronPython development though I would add SharpDevelop 3.1.1. It has a drag & drop GUI form designer and overall is very much like Visual Studio, except it's free of course.
Actually, netbeans has some python support right now: http://wiki.netbeans.org/Python. It works (still I prefer a plain text editor).
For a list of python IDEs i'd call this list comprehensive: What IDE to use for Python?
I like PyDev under Eclipse ( and of course Eclipse does Java too).
I am using eclipse with pydev extension
Have a look at PythonEditors, there is a huge list of editors/IDEs with python-support.
You have IDLE installed with Python. It is good editor which serves the purpose well. It is multi windowed, have syntax highlighting and auto complete features.
I use Komodo Edit for all of my Python work. Actually, I use Komodo Edit for all of my IDE uses save for when I'm working in .Net. It's not really a full on IDE, but it's been perfect for everything I've used it for. It's pretty lightweight, has good syntax highlighting, but doesn't shove a lot of arcane project file overhead at you that you'd need to learn. It's worth having around, in my opinion, even if it doesn't suit your needs for Python.
Python doesn't need to be compiled - it compiles itself (to bytecode) when you run it. Any text editor will work.
Edit in response to comment: Yes, absolutely (although I think NetBeans does support Python). You'll find that IDEs are much less of a requirement when using a dynamic language like Python or Ruby, compared to Java or C#.
I would go with IntelliJ IDEA, it has a great python plugin.
Eclipse with PyDev is also nice, if you like open source.
I'm certain there are a number of IDEs with Python plugins (Eclipse and Emacs spring to mind) but there are two things you want to look for. The first is support for basic lint checking (little red squiggly concept) through some kind of tool (pylint or pychecker). The second is support for running the Python interpreter embedded into it.

Categories

Resources