background preloader

Python

Facebook Twitter

GuiBuilder 0.8.2. Ikeikeikeike/tastypie-queryset-client. Crossplatform Framework for NUI. Dynamic Programming in Python: Bayesian Blocks - Pythonic Perambulations. Of all the programming styles I have learned, dynamic programming is perhaps the most beautiful. It can take problems that, at first glance, look ugly and intractable, and solve the problem with clean, concise code. Where a simplistic algorithm might accomplish something by brute force, dynamic programming steps back, breaks the task into a smaller set of sequential parts, and then proceeds in the most efficient way possible. Bayesian Blocks I’ll go through an example here where the ideas of dynamic programming are vital to some very cool data analysis resuts. This post draws heavily from a recent paper by Jeff Scargle and collaborators (this is the Scargle of fame).

To motivate this, let’s take a look at the histogram of some sampled data. Now what does this distribution look like? Not too informative. This is better. Scargle and collaborators showed that the answer is yes. Simple, right? Well, no. Python Introduction - Educational Materials. Prelude Welcome to Google's Python online tutorial.

Python Introduction - Educational Materials

It is based on the introductory Python course offered internally. Originally created during the Python 2.4 days, we've tried to keep the content universal and exercises relevant, even for newer releases. Nryoung/algorithms. Python Ecosystem - An Introduction » mirnazim.org. When developers shift from PHP, Ruby or any other platform to Python, the very first road block they face (most often) is a lack of an overall understanding of the Python ecosystem.

Python Ecosystem - An Introduction » mirnazim.org

Developers often yearn for a tutorial or resource that explains how to accomplish most tasks in a more or less standard way. What follows is an extract from the internal wiki at my workplace, which documents the basics of the Python ecosystem for web application development for our interns, trainees and experienced developers who shift to Python from other platforms. This is not a complete resource. My target is to make it a work in perpetual progress. Python Programming Language – Official Website. Translitcodec 0.3. Unicode to 8-bit charset transliteration codec Latest Version: 0.4.0 This package contains codecs for transliterating ISO 10646 texts into best-effort representations using smaller coded character sets (ASCII, ISO 8859, etc.).

translitcodec 0.3

The translation tables used by the codecs are from the transtab collection by Markus Kuhn. Three types of transliterating codecs are provided: “long”, using as many characters as needed to make a naturalreplacement. Using the codecs is simple: >>> import translitcodec >>> u'fácil € ☺'.encode('translit/long') u'facil EUR :-)' >>> u'fácil € ☺'.encode('translit/short') u'facil E :-)' The codecs return Unicode by default. JPype - Java to Python integration.

Libraries&components

Software Engineering. Joel on Software. Systems programming. PuSSH. PuSSH is `Pythonic, ubiquitous SSH`, a `Python wrapper` that, under ideal conditions, provides high performance, `real time parallel` command execution over SSH on large machine clusters, farms, or even the entire internet.

PuSSH

PUSSH is "Pythonic Ubiquitous SSH" - basically a wrapper for the SSH client consisting of two Python modules (at this time one is called explicitly by the other, although the present construct may change in future versions) - for usage on networks, clusters, or machine farms with any number of hosts, large or small, or indeed over the entire internet, for that matter, with the proviso that the SSH client is enabled via Kerberos or RSA/DSA keys in such a way as to avoid any explicit password authentication.

Dates and times

Words&text. Language variations. Parsing. PyAMF – Trac. ParallelProcessing. A number of Python-related libraries exist for the programming of solutions either employing multiple CPUs or multicore CPUs in a symmetric multiprocessing (SMP) or shared memory environment, or potentially huge numbers of computers in a cluster or grid environment.

ParallelProcessing

This page seeks to provide references to the different libraries and solutions available. Symmetric Multiprocessing Some libraries, often to preserve some similarity with more familiar concurrency models (such as Python's threading API), employ parallel processing techniques which limit their relevance to SMP-based hardware, mostly due to the usage of process creation functions such as the UNIX fork system call. However, a technique called process migration may permit such libraries to be useful in certain kinds of computational clusters as well, notably single-system image cluster solutions (Kerrighed, OpenSSI, OpenMosix being examples).

Cluster Computing Cloud Computing. Planet Python. Planet Jython. Online regex tester and debugger: JavaScript, Python, PHP, and PCRE. Regular expressions 101 — an online regex tester for javascript, php, pcre and python.

Online regex tester and debugger: JavaScript, Python, PHP, and PCRE

@regex101 email me recommend on g+ donate flattr <div class="errorbar"><p>It seems you have javascript disabled or your browser does not support it. Javascript is a requirement for this website to work; it is virtually useless without it. I suggest you visit: <a href=" If this is your first time visiting Regex101.com it is highly recommend to take the tour by clicking here.

Debug Replace whitespace colorize regex Code sample Permalink Community Clear Please insert an expression in the box above. Welcome to Regex101.com. I've added some extra space at the bottom of the page so that you can scroll freely with the quickref detached without it obstructing your view. Regular Expressions quick reference Basic | Complete Reference | Tips & tricks Detatch Quick filter: How do I match several test cases? The Python Tutorial.

Python is an easy to learn, powerful programming language.

The Python Tutorial

It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed.

The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation. Python - How to use PIL to resize and apply rotation EXIF information to the file. PyFormex Home. PyFormex is a program for generating, transforming and manipulating large geometrical models of 3D structures by sequences of mathematical operations.

pyFormex Home

Thanks to a powerful (Python based) scripting language, pyFormex is very well suited for the automated design of spatial frame structures. It provides a wide range of operations on surface meshes, like STL type triangulated surfaces. There are provisions to import medical scan images. pyFormex can also be used as a pre- and post-processor for Finite Element analysis programs. Finally, it might be used just for creating some nice graphics.

Using pyFormex, the topology of the elements and the final geometrical form can be decoupled. While pyFormex is still under development , it already provides a fairly stable scripting language and an OpenGL GUI environment for displaying and manipulating the generated structures. Shyuep/pyhull. News — PyMVPA 2.2.0 documentation. Python-tastypie-client/tastypie_client at master · kennknowles/python-tastypie-client. Welcome to tastypie-client’s documentation! — tastypie-client 0.1.0 documentation. Why Python? My first look at Python was an accident, and I didn't much like what I saw at the time.

Why Python?

It was early 1997, and Mark Lutz's book Programming Python from O'Reilly & Associates had recently come out. O'Reilly books occasionally land on my doorstep, selected from among the new releases by some mysterious benefactor inside the organization using a random process I've given up trying to understand. One of them was Programming Python. I found this somewhat interesting, as I collect computer languages. I know over two dozen general-purpose languages, write compilers and interpreters for fun, and have designed any number of special-purpose languages and markup formalisms myself. Dabeaz/bitey.