Ryan built three identical apps in Django, Flask and Pyramid to illustrate the strengths and weaknesses of each one of them.
Subtle little performance boosts in Python. Tricks for your code to run faster.
I’m training for a marathon and I use MapMyFitness (MMF) on my iPhone to track my mileage and pace for each workout. MMF has a public API and Jason Sanford has written a Python front end for it. Which means that I can easily get hold of all my data in Python and explore it with Pandas!
"Things which aren't magic", where I show how some of the nicer APIs provided by popular open source packages are constructed from the primitives of their respective languages.
In this post we're going to take a look at Flask, and more specifically how Flask makes it possible to write "@app.route()" at the top of the function and expose its result to the internet.
Claire is an iOS and Django developer. She works as a freelancer from Saint Etienne, in France. She started to work as a Java developer at Trango, a mobile virtualization company. She later joined Epyx in Switzerland, where she discovered iOS and Django. You can follow her @ClaireReynaud.
Part II of Things which aren't magic - Flask and @app.route. In this post we're going to turn up the difficulty level a tiny bit and add the ability to have variable parameters in our URLs, by the end of this blog post we'll be able to support the expected behavior for the following piece of code.
I've used MySQL for a while now, and there were lots of surprising things I needed to cater for. This is from a Django and MySQL 5.5 perspective [*]. Later on you'll see the horrible things I did to work around. It was a terrible experience, as I've also used PostgreSQL.
Handy tip for making MySQL behave more like a real database (specifically, with Django).
Python is an extremely versatile language. It allows us to work in any of our favorite programming paradigms, including procedural programming. Procedural programming is subtly different from functional programming in that procedures are not strictly prohibited from changing a shared state implicitly. That is, callables may alter elements other than their arguments.
In this tutorial, you will learn how to send tweets using Python. It includes Step By Step instructions to register your app with twitter.
The final pre-production draft of the book "Programming Computer Vision with Python" by Jan Erik Solem. (as of March 18, 2012) is available under a Creative Commons license. Note that this version does not have the final copy edits and last minute fixes. PCV is a pure Python library for computer vision based on the book "Programming Computer Vision with Python" by Jan Erik Solem.
By default Python uses a dict to store an object’s instance attributes. However, for small classes that have a few fixed attributes known at “compile time”, the dict is a waste of RAM, and this makes a real difference when you’re creating a million of them. You can tell Python not to use a dict, and only allocate space for a fixed set of attributes, by settings __slots__ on the class to a fixed list of attribute names:
Features that we will implement Basic Physics Simulation, GUI, Pseudo-wind, Pseudo-liquid, Anti-aliased drawing of circles (using GFXDraw), Customization of circles and colors.Goals achieved are learn the basics of Pymunk, Pygame, how a physics engine such as PyMunk would works with a library such as PyGame.
Title says it all :)
Django’s Messages framework is an elegant workhorse, and I’ve never built a Django site that didn’t use it for displaying success/failure/info messages to users after certain actions are taken (like logging in successfully or adding an item to a cart).
SQL-Alchemy for Humans (and data nerds).
quicksafe is a tiny Python script that provides a GUI text editor to edit notes that are then encrypted and stored within the script file itself.
Syntactic sugar for working with regular expressions in Python.
Twizhoosh is a smart Persian twitter-bot, written in Python and aimed to be easily readable and contributable.
Lightweight Python utilities for working with Redis
Demonstration of using Python Descriptors to Enhance Django Models and Fields
Yet another ZeroMQ wrapper for Python. However, differing from pyzmq, which tries to stay very close to the C++ implementation, this project aims to make distributed systems employing 0MQ as pythonic as possible.
LibShortText is a high-performance classifier for short-text such as titles, questions, sentences, and short messages.
This script provides a easy way to install LibShortText.
Taipei MRT interchange route python library. Must see for our ImportPython Users from Taiwan.
Simple implementation of KNN Algorithm, COS Similarity, Logistic Regression in Python.
A Python script that exports all of your Spotify playlists.
This project give you random user agent from known user agents.
PyDictionary is a Dictionary Module for Python 2/3 to get meanings, translations, synonyms and Antonyms of words. It uses Google for getting meanings and translations, and thesaurus.com for getting synonyms and antonyms.