This release features the ability to display per package download statistics. With all the Python stats goodness going on recently, I got inspired to make a new vanity release. This release features the ability to display per package download statistics via the `-v` or `–verbose` command line argument. Here are some of my favorite results. […]
Category: Django
Django-style Database Routers in SQLAlchemy
Updated August, 2014 – the approach here really won’t work very well if you are using transactions! See the notes inline. As luck would have it, I’m currently assigned to work with some existing Django code. It’s been quite a long time I’ve gone without needing to do so, but now that I’m there, I […]
django-sphinx sorting
Unfortunately, the django-sphinx module is not very thoroughly documented. One thing which I could not figure out is how to do sorting. I thought that I had to set some kind of keyword argument on the SphinxSearch instance… (I have to admit though that the sorting is indeed demonstrated in the project README.rst, I simply […]
Introducing pythonpackages.com
The website for Python egoists™ I have this overwhelming desire to know how many times my favorite Python packages have been downloaded. Don’t you? If so, look no further than pythonpackages.com. Count downloads Where you can enter a package like Django and find out the number of downloads. Count favorites Or click on Count favorites […]
Plone: First Class Python Citizen
The Plone community and software fit nicely within the larger Python ecosystem. Here’s why. For almost as long as I have been involved in the Plone project, I’ve been interested in Plone’s role in the Python ecosystem. Today as I look across the current landscape, I’m proud to announce a new milestone the Plone community […]
Pillow: One Year Later
For anyone unfamiliar with Pillow, it is the friendly PIL fork: a fork of PIL that aims to remain a good citizen in the PIL community through its actions. Warm and fluffy history Pillow 1.0 was released on 2010-07-31, a little over a year later came Pillow 1.7.5 which features: Many packaging fixes (mostly to […]
Vagrant, Puppet and Mozilla, Oh my
This post is only loosely Python related and not at all Plone related. This post is only loosely Python related and not at all Plone related, but I thought folks might enjoy hearing about Vagrant and Puppet because these tools may help you do your Plone and Python jobs better. For the past couple weeks […]
Mozilla and PyPI
VM setup for kitsune The last time I wrote about PyPI some folks mistook the subject to be PyPy, so let me be clear: this article is about the Python Packaging Index. I recently began doing some volunteer work for Mozilla[1], working on a virtual machine setup to make kitsune development easier (kitsune is the […]
Dealing with the Python Import Blackbox
Turns out, this does not work reliably, in fact it will only work when packages are involved. I originally wrote the core for Flask extensions and it appeared to work, but I never verified that it works without extensions being involved. And in fact the module cleanup breaks it. Apparently Python does clean it up […]
Django Forms with Multiple Inheritance
Sometimes you want to validate only parts of a Django form. A use case for this would be a user profile. A user may have an extensive user profile, but sometimes you only want to validate a subset of the form fields, e.g. the city and the phone number, when providing a profile edit form. […]
We were personal co-organizers of the First Python Day Uruguay
On August 20th 2011 we’ve celebrated the first Python Day Uruguay. The audience reached more than 200 Pythonistas coming mainly from Uruguay and Argentina. That’s an amazing number counting on a population of about 3 million people in Uruguay. The event shipped a total of 18 talks organized into 30 minute presentations and mid-sized lighting […]
You’re So Vain, So Why Not Use Vanity?
A few months ago I created a package called Vanity A few months ago I created a package called Vanity[0] that provides easy access to package download statistics from PyPI. You can find the source code here: https://github.com/aclark4life/vanity. I love this tool, and I use it all the time to gauge the value of a […]
Be careful with exec and eval in Python
One of the perceived features of a dynamic programming language like Python is the ability to execute code from a string. In fact many people are under the impression that this is the main difference between something like Python and C#. That might have been true when the people compared Python to things like C. […]