My favorite text editor is Geany. It is very minimalist HERE which supports a huge set of languages – shell, php, python, C … etc. It has automatic finishing and at the same time it is very agile. It lacks some other pleasant opportunity, but at the moment it is more than enough for me. I started an online course Python Programming на SoftUni – to refresh my knowledge and upgrade it because I have not adequately monitored what is happening with python 3. The lecturers of the course recommend PyCharm as an IDE for pyton programming, but I do not like it, of course I use Geany for the exercises.

During the lectures I felt painfully 2 lacks

  1. python autocomplete exhales from documentation of functions and methods
  2. no validation for pep8 standard

The good thing is that Geany is flexible enough to configure and can be easily supplemented by missing ones.. Sometimes add python documentation to our IDE:

  • we pull the following script somewhere in our PATH for example / usr / bin and don't forget to make it executable
  • edit the file ~ / .config / geany / filedefs / filetypes.python by adding the following line in the settings section context_action_cmd=pydocw %s. If there is only add the name of the binary from the previous step. We restart Geany if it is released.
  • We already have a context-action that will get you information about the function. I added a shortcut to make it more convenient as I do not understand any functionality. I like this approach a lot because I am very annoyed by the netbeans approach.

So far so good. Then I really want to have validation of the code I write – whether I write it according to generally accepted standards or I write some ugliness. Basically I found it again tutorials how things happen but it's a bit outdated – Geany has everything built into it, you just need to install the pep8 package. In Debian apt-get install pep8 works in the other distros you have to find out for yourself how the magic happens. In the Build menu, the second button (at least for me) is Lint after clicking it you will find how ugly code you have created 😀

Screenshot from 2016-01-11 20-42-21

Here's a general outline of how to make your Geany work better with Python while still being fast without making your CPU want to pull the bullet.

Malmo is an extremely interesting new project – It is generally designed to protect hosting servers from malware on it, created by my friend and linux guru ShadowX. To clarify what exactly is meant – nothing prevents you from throwing at which hosting a nice c99 shell, for example, and if it is not well-tuned file system, nothing prevents the evil hahor to get access to shell. In general, the idea of ​​malmon is to monitor the upload of such pleasant misery and move them to a quarantine directory other than the document root.. The principle on which it works is quite pleasant – monitors for created new files in a folder that is set to watch the software and in the presence of some file that matches certain signatures sends it to the eternal hunting grounds. Something like antivirus software 😉 The script is written in python which makes it light, fast and flexible. To keep track of new files created, it uses the relatively new kernel mechanism inotify. Although the script is not yet officially a stable version of 3 days I have not had problems on a decently loaded server – one of the sites there is in the top 100 на tyxo 😉

I can keep pouring dry statistics and deep explanations of how the code works, But I will not do it. I will rather urge you to download it, test it and if you have suggestions to write to the author 😉 If you see bugs, write to him again, people are wrong and it is good to support each other.. Cheers!