background preloader

Python in Action

Facebook Twitter

Plenty of examples of Python in action throughout the tools and libraries of Python itself, just keep your eyes open. But this Pearltree is here so I have a place to remember interesting applications of Python that didn't fit elsewhere in my collection.

The Eric IDE is an interesting application of Python, but is already covered in the IDE pearltree, so Eric isn't here in the "Python in Action" pearltree. Episodes - [Talk Python To Me Podcast] Welcome to Pyke. Why Every Language Needs Its Underscore - Hackflow. (This is an adaptation of a talk I gave at PyCon and DevDay.

Why Every Language Needs Its Underscore - Hackflow

Slides and video are available in russian) Do you know what underscore is? In its most general it’s a JavaScript library that makes life better. For whoever writes in JavaScript. I mostly write Python and I also wanted my life better, so I went ahead and wrote a similar library for Python. The problem To answer this question we should look at problems this kind of libraries solve. A piece of entangled code This messy piece of code was taken from a real project and slightly simplified: There are several things entangled in here, but my point is that this could be written much shorter: If it seems hard at first, then it’s okay.

Dirty dictionary But let’s go on and clean some dirty dictionary: Here we go through dictionary and clean its values by coercing them to int. And it’s entirely possible with funcy. Pairwise iteration This code checks if a sequence is ascending: And pairwise does exactly that. Extracting abstractions Wrap-up P.S. Why should librarians learn python? (a better answer) Scalability at YouTube. Invent Your Own Computer Games with Python - Chapters. Chapter 1 Read online: Chapter 1 - Installing Python Videos: Chapter 2 Read online: Chapter 2 - The Interactive Shell Chapter 3 Read online: Chapter 3 - Strings Download source: Copy source to clipboard: Use the online diff tool to find typos in your code: Chapter 4 Read online: Chapter 4 - Guess the Number.

Invent Your Own Computer Games with Python - Chapters

PythonTurtle. 5. Embedding Python in Another Application. The previous chapters discussed how to extend Python, that is, how to extend the functionality of Python by attaching a library of C functions to it.

5. Embedding Python in Another Application

It is also possible to do it the other way around: enrich your C/C++ application by embedding Python in it. Embedding provides your application with the ability to implement some of the functionality of your application in Python rather than C or C++. This can be used for many purposes; one example would be to allow users to tailor the application to their needs by writing some scripts in Python. You can also use it yourself if some of the functionality can be written in Python more easily. Embedding Python is similar to extending it, but not quite. So if you are embedding Python, you are providing your own main program. A simple demo of embedding Python can be found in the directory Demo/embed/ of the source distribution. See also.


PyMCU - The Python Controlled Microcontroller. WikidPad - wiki notebook for Windows/Linux/Mac OS. Ulipad - python editor based on wxPython. The project has been moved to github You can find What is UliPad Ulipad is a wxPython powered, programmer oriented and flexible editor.

ulipad - python editor based on wxPython

It has many features such as class browser, code auto-complete, html viewer, directory browser, wizard and many others. The most interesting and distinctive feature is the use of mixin technique which makes Ulipad an easy-to-extend programming environment. Why named it UliPad? The name comes from Claudio Grondi (thank you!). Claudio Grondi said: As we are on the way to make NewEdit THE programmer editor I think, thata new unique name will help here much (NewEdit is just cheap...). I suggest to use 'UliPad'. It has the shortcut of UnLImited.It tells it is a plain text editor (Pad).It tells something about the original author (LImodou). But the most important advantage is: Google has no entry for 'UliPad' yet!

Wonderful! Description UliPad uses Mixin and Plugin technique as its architecture. Requirements: Python 2.3+ wxPython Unicode Version.