background preloader

Python 1

Facebook Twitter

Ide

Webserver. Google I/O session videos posted with slides. Pytz - World Timezone Definitions for Python. Path Python module. Distributing Python Programs. What does it mean to Distribute a Python App?

Distributing Python Programs

Dig Deep into Python Internals. Hacking Python Let the games begin.

Dig Deep into Python Internals

In this section I will explore different ways to customize attribute access. The topics include the __getattribute__ hook, descriptors, and properties. - __getattr__, __setattr__ and __getattribute__ Descriptors A descriptor is an object that implements three methods __get__, __set__, and __delete__. If you put such a descriptor in the __dict__ of some object then whenever the attribute with the name of the descriptor is accessed one of the special methods is executed according to the access type (__get__ for read, __set__ for write, and __delete__ for delete).This simple enough indirection scheme allows total control on attribute access.

The following code sample shows a silly write-only descriptor used to store passwords. Patterns in Python. SQLAlchemy - The Database Toolkit for Python. Generate an Excel Formatted File Right in Python. WxGlade: a GUI builder for wxWidgets/wxPython. Labs. This page is a stub.

labs

Over time, I hope to collect more Wax resources here. NOTE: Wax currently works (or is supposed to work) with wxPython 2.5.2.7 or 2.5.2.8. That is the version I am currently using. Newer versions might or might not work (try it, though). Older versions might work as well, but you'll have to hack the version requirement in core.py . Download Articles Documentation API documentation (will be improved eventually) (At some point, there will be one link to bind them all... Third-party tools and programs using Wax.

Decorating class member functions. Papyros - Google Code. Package Index : processing 0.39. Package for using processes which mimics the threading module processing is a package for the Python language which supports the spawning of processes using the API of the standard library's threading module.

Package Index : processing 0.39

It runs on both Unix and Windows. Features: Editors - PythonInfo Wiki. If you have anything to contribute -- e.g. configurations for editors, new editors, or opinion -- don't hesitate to edit or create pages.

Editors - PythonInfo Wiki

There's an EditorConfigurationHowto available. Please keep wiki links as wiki links, use external links only if there is no existing page for the editor. Please add pages like BoaConstructor also to page IntegratedDevelopmentEnvironments. Multiplatform Editors. Choose Your GUI Toolkit. PySoy, a 3D Game Engine for Python. Free 3D Engine. Pyui Home Page. [SLUT] DirectPython – Use DirectX with Python. Soya3D. Soya 2.0 is coming!

Soya3D

The most striking feature of Soya 2.0 is mini shaders. They allow to write Open GL / GL SL shaders so easily! With GL SL, you have to rewrite the entire rendering pipeline, even if you want to modify only a small part of it... On the contrary, with Soya's mini shaders, you can write a mini shader that overrides a part of the rendering pipeline (ex customizing the lighting computation), or that adds an extra step in the rendering (ex deforming the model geometry). Then Soya assembles all mini shaders, adds the missing pieces of the rendering pipeline, and generates a GL SL shader. SPING. Python game development. Wingware Python IDE - The Intelligent Development Environment for Python Programmers. FrontPage - IPython.

FrontPage - SkunkWeb Application Server. » Python Web Frameworks: Are Template Languages Worth using, or is Python enough? - DevChix - Blog Archive. Last year I was tasked with the job of evaluating web frameworks and template languages, picking a set of tools, and using them to rewrite chunks of our web framework, one chunk at a time.

» Python Web Frameworks: Are Template Languages Worth using, or is Python enough? - DevChix - Blog Archive

It was a fun project (thanks be to Bill). I had months to try out various frameworks, content servers and template languages before we committed to anything and moved forward. With respect to the web framework itself, certain things swayed my decision. We had an existing database and a whole suite of home-grown Psycopg objects to access this data the way we wanted. I was very reluctant to rewrite or replace all of that, because it contained much of the business logic in a way that the entire group understood and was used to seeing/changing. FrontPage - py2exe.org.

PyInstaller - Trac. Style Guide for Python Code. Code should be written in a way that does not disadvantage other implementations of Python (PyPy, Jython, IronPython, Cython, Psyco, and such).For example, do not rely on CPython's efficient implementation of in-place string concatenation for statements in the form a += b or a = a + b.

Style Guide for Python Code

This optimization is fragile even in CPython (it only works for some types) and isn't present at all in implementations that don't use refcounting. In performance sensitive parts of the library, the ''.join() form should be used instead. Elements and Element Trees. Fredrik Lundh | Last updated July 2007 This note introduces the Element, SubElement and ElementTree types available in the effbot.org elementtree library.

Elements and Element Trees

For an overview, with links to articles and more documentation, see the ElementTree Overview page. For an API reference, see The elementtree.ElementTree Module. You can download the library from the effbot.org downloads page. In this article: The Element TypeAttributesText ContentSearching for SubelementsReading and Writing XML FilesXML Namespaces The Element Type The Element type is a flexible container object, designed to store hierarchical data structures in memory. Each element has a number of properties associated with it: Advanced Python Programming. Instant Python. This is a minimal crash-course in the programming language Python.

Instant Python

To learn more, take a look at the documentation at the Python web site, www.python.org; especially the tutorial. If you wonder why you should be interested, check out the comparison page where Python is compared to other languages. This introduction has been translated into several languages, among them Portuguese, Italian, Spanish, Russian, French, Lithuanian, Japanese, German and Greek, and is currently being translated into Norwegian, Polish, and Korean. Since this document still might undergo changes, these translations may not always be up to date. Note: To get the examples working properly, write the programs in a text file and then run that with the interpreter; do not try to run them directly in the interactive interpreter - not all of them will work.

Script Library Free Scripts. Download Free Scripts. Submit Scripts Free. ActivePython free Python open source language distribution - Dynamic Tools for Dynamic Languages. ActivePython Business and Enterprise Editions feature our precompiled, supported, quality-assured Python distribution used by millions of developers around the world for easy Python installation and quality-assured code. Dive Into Python. WxPython. Boa Constructor home.