Purpose: Python’s Interactive Debugger
pdb implements an interactive debugging environment for Python programs. It includes features to pause a program, look at the values of variables, and watch program execution step-by-step, so you can understand what the program actually does and find bugs in the logic.
You might look at Python code every day, but what is the lens through which you view code? It's your text editor. This article was written for Python Magazine and was first in a series on Python development environments. Here, we look at how Vim users can boost their productivity by having Vim tell you as much as possible about your program, while you're writing it.
It has come to my attention that somebody ‘round these parts has been preaching the gospel of Sublime Text 3. Well, as the resident senior developer (err, old fogey), I feel it’s my duty to provide a counterexample by way of the only TRUE Python development environment you will ever need – and that environment is of course VIM. That’s right. VIM is ubiquitous, fast, and never crashes. And it can do just about anything!
Finding the perfect IDE for Python isn’t an easy feat. There are a great many to chose from, but even though some of them offer really nifty features, I can’t help myself but feel attracted to VIM anyway. I feel that no IDE accomplishes the task of giving the comfort of complete power over the code – something is always missing out. This is why I always come back to using IDLE and VIM. Those two seem to be best companions when doing some quick and agile hacking – but when it comes to managing bigger and longer term projects, this combo needs some tweaking. But when it’s done, VIM will be a powerful IDE for Python – including code completion(with pydoc display), graphical debugging, task-management and a project view.
Sous le coude !
PyOO allows you to control a running OpenOffice or LibreOffice program for reading and writing spreadsheet documents. The library can be used for generating documents in various formats – including Microsoft Excel 97 (.xls), Microsoft Excel 2007 (.xlsx) and PDF.
The main advantage of the PyOO library is that it can use almost any functionality implemented in OpenOffice / LibreOffice applications. On the other hand it needs a running process of a office suite application which is significant overhead.
BearLibTerminal is a library that creates a terminal-like window facilitating flexible textual output and uncomplicated input processing.
A lot of roguelike games intentionally use asketic textual or pseudographic visual style. However, native output via the command line interface ususally have a few annoying shortcomings like low speed or palette and font restrictions. Using an extended character set (several languages at once or complicated pseudographics) may also be tricky. BearLibTerminal solves that by providing it's own window with a grid of character cells and simple yet powerful API for configuration and textual output.
Notable features of BearLibTerminal include:
Ease of Unicode usage.
Support for bitmap and vector (TrueType) fonts.
Extended output facilities: tile composition, alignment, offsets.
High performance (uses OpenGL).
Keyboard and mouse support.
Windows, Linux and OS X builds.
Bindings for several programming languages: С/С++, C#, Lua, Pascal, Python, Ruby.
TDL is a port of the C library libtcod in an attempt to make it more “Pythonic”
The library can be used for displaying tilesets (ANSI, Unicode, or graphical) in true color.
It also provides functionality to compute path-finding and field of view.
python-tdl is hosted on GitHub: https://github.com/HexDecimal/python-tdl
Online Documentation: http://pythonhosted.org/tdl/
Issue Tracker: https://github.com/HexDecimal/python-tdl/issues
python-tdl is a cffi port of “libtcod”. You can find more about libtcod at http://roguecentral.org/doryen/libtcod/
Kalliopé est un moteur configurable qui permet à chacun de créer de son propre assistant personnel qui communique. Le projet est opensource et accessible sur github
*** > Kalliopé est un programme python qui vous permet de créer vôtre propre bot de façon modulaire sans aucune ligne de code.
Electronic flora written in Python based on wxPython library.
via http://guepe.ateliez.fr/shaarli/?-6TKjA
Ce tutoriel explore les outils pour mieux comprendre la base de votre code : le débogage, trouver et corriger vos bogues.
Ce n'est pas spécifique à la communauté scientifique Python, mais les stratégies employées sont adaptées à leurs besoins.
Here is the piece of code used in Mines of Elderlore to generate random names.
"Diverses recettes Python. Hop... sous le coude. (un peu dans le genre de que j'avais fait: http://sebsauvage.net/python/snyppets/)
(via Sam&Max)."
"
Diagnostic logging records events related to the application’s operation. If a user calls in to report an error, for example, the logs can be searched for context.
Audit logging records events for business analysis. A user’s transactions can be extracted and combined with other user details for reports or to optimize a business goal."
et aussi http://docs.python-guide.org/en/latest/writing/logging/
via via https://dooby.fr/links/?aWZFaA
Vidéo sur quelques bonnes pratiques pour organiser son code.
via jesaisplusqui
Nuitka is a Python compiler.
It's fully compatible with Python 2.6, 2.7, 3.2, 3.3, and 3.4.
You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
Super bon, bien condensé.