Facebook Twitter
Birdback/ README.rst Human friendly CLI builder. Installation pip install Birdback/
CPython Compilers Ply PLY is an implementation of lex and yacc parsing tools for Python. PyParsing CPython Compilers
What’s lazy evaluation about ? Some functional programming languages (like Haskell) offers a functionality called lazy evaluation by default. It consists of defering evaluation of functions to the moment their results are actually used. Instead of results, everything works as if your function call are returning the recipe to compute the actual result. In python, it is actually pretty straightforward to hack __getattr__ and __setattr__ to implement an hackish lazy evaluation as a decorator. Of being lazy – Paul Masurel Of being lazy – Paul Masurel
docopt/docopt docopt/docopt README.rst docopt creates beautiful command-line interfaces Video introduction to docopt: PyCon UK 2012: Create *beautiful* command-line interfaces with Python
myusuf3/delorean README.rst Delorean: Time Travel Made Easy Delorean is a library for clearing up the inconvenient truths that arise dealing with datetimes in Python. Understanding that timing is a delicate enough of a problem delorean hopes to provide a cleaner less troublesome solution to shifting, manipulating, and generating datetimes. Delorean stands on the shoulders of giants pytz and dateutil myusuf3/delorean
Every time I use Python’s string formatter, version 2.7 and up, I get it wrong and for the life of me I can’t figure out their documentation format. I got very used to the older % method. So I started to create my own string format cookbook. Python String Format – Solutions Log - Marcus Kazmierczak Python String Format – Solutions Log - Marcus Kazmierczak
In my years of programming in Python and roaming around GitHub's Explore section, I've come across a few libraries that stood out to me as being particularly enjoyable to use. This blog post is an effort to further spread that knowledge. I specifically excluded awesome libs like requests, SQLAlchemy, Flask, fabric etc. because I think they're already pretty "main-stream". If you know what you're trying to do, it's almost guaranteed that you'll stumble over the aforementioned.

7 Python Libraries you should know about

7 Python Libraries you should know about
faif/python-patterns faif/python-patterns python-patterns A collection of design patterns implemented (by other people) in python. When an implementation is added or modified, be sure to update this file and rerun to keep the output comments at the bottom up to date. Current Patterns:
erezsh/plyplus erezsh/plyplus PlyPlus - a friendly yet powerful LR-parser in Python. Plyplus is a general-purpose parser built on top of PLY, written in python, with a slightly different approach to parsing. Main Concepts Separation of code from grammar: Grammar files are more readable and portable, and it makes the code cleaner too.Always build an AST (tree): Every application, not matter how small, can benefit from the power and simplicity of working with a tree, instead of a state-machine.Follow Python's Idioms: Beauty, simplicity and readability are more important than speed.
Design Patterns In Python (@Testing Perspective) |
writing python daemons | coder . cl writing python daemons | coder . cl A daemon in Unix™ and similar operating systems, is a background process, which runs without using the terminal or the X11 system as main I/O system. In other operating system, this is called service. A daemon has a very specific task to do, for example the NTP daemon keeps your computer date updated connecting to NTP servers. Many applications that require asynchronous tasks, require this kind of applications to make your life easier. For example a job queue processor for the Gearman job server can be handled with this kind of applications. A daemon, classically on most Unix™ systems, first closes the three main I/O streams: stdin, stdout and stderr, then the fork(2) system call is used, creating an image of the current process, once the call is made, an exit(1) call is made on the parent process, and the child process keeps working in background.
Currently Promoting | NumFOCUS Foundation
pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. 0.13.0 released (January 15, 2014) The new major 0.12 release is out. Python Data Analysis Library — pandas: Python Data Analysis Library
ByteplayDoc en About byteplay byteplay is a module which lets you easily play with Python bytecode. I wrote it because I needed to manipulate Python bytecode, but didn't find any suitable tool. Michael Hudson's bytecodehacks ( could have worked fine for me, but it only works with Python 1.5.2. I also looked at Phillip J.
Exploring Python Code Objects « So first of all, what is a code object? Many people (particularly Python haters) claim that Python is an interpreted language, but all your Python code is actually compiled before it is ever executed. This goes even for code you write interactively in the Python shell. CPython implements a virtual machine that executes a stack-based bytecode.
Static Modification of Python with Python: the AST Module - Blueprint Forge. Source code modification can be useful in a number of testing and analysis scenarios. Here, we’ll look at how you can modify Python source code using the ast module, and some tools where this technique is used. The CPython compilation process To begin, let’s take a look at the CPython compilation process, as described in PEP 339. Detailed knowledge of these steps isn’t required for reading this article, but it helps to have a rough idea of the whole process.
ls | pyp "p.replace('maybe','yes') | pp.sort() | pp[1:3] |p , p , p.strip('abc') | whitespace | p[3], 'no' | p.upper() " Pyp is a linux command line text manipulation tool similar to awk or sed, but which uses standard python string and list methods as well as custom functions evolved to generate fast results in an intense production environment. Pyed Pyper was developed at Sony Pictures Imageworks to facilitate the construction of complex image manipulation "one-liner" commands during visual effects work on Alice in Wonderland, Green Lantern, and the The Amazing Spiderman. Because pyp employs it's own internal piping syntax ("|") similar to unix pipes, complex operations can be proceduralized by feeding the output of one python command to the input of the next. This greatly simplifies the generation and troubleshooting of multistep operations without the use of temporary variables or nested parentheses. pyp - Python Power at the Prompt
ambulant/ambulant: src/pyambulant/README@6deac0e05990