Mostly Unixish Standalone, single-file, editable Python scripts WITH DEPENDENCIES How badly I wanted something like that? The problem: Python for scripting Beside programming and data science, I find Python to be a very useful glue language; I think it's
Ollivander Command line data crunching with Python Every time I'm doing some data crunching on the command line, I find myself juggling between sed, awk, sort, uniq, etc. While I like the UNIX way of having one
Ollivander Python: discover the type of an object This seems a simple enough question: How can I discover the type of any given Python object? Suppose Python 2.7 (Python 3 is a different beast on this topic), and try implementing such function: def discover_type_of_object(obj): """
Mostly Unixish Python requests SSL and InsecurePlatformWarning Every now and then, when using Python 2.7 < 2.7.9 and trying to access SSL resources, especially through the requests toolkit, which seems to trigger the issue frequently - but I've seen it on some combinations of pip inside virtualenv as
Ollivander Python Packaging Woes: part 3 A bit of wrap-up after part 1 and part 2 Current state of the things I seem to have missed something: there's now a very active Python Packaging Authority which is trying very hard to push Python packaging in the right direction, so that
Ollivander Python Packaging Woes - part 2 Check out part 1 for my thoughts on what packaging and dependency management should be. I forgot about this post and left it in a draft state for quite a lot of time, I'm sorry! How Python messed it up A Diaspora of Tools
Ollivander Python Packaging woes - part 1 This is a spinoff from my Europython 2012 talk (video, slides). Some days ago I got involved in a brief discussion on the topic, so here's what I think about Python packaging and dependency management: it's in a very bad state, requires a lot
Ollivander Unicode and Encoding: Python vs Java Shootout, part 2 So, here we come to our second part; if you did miss the first, it's there. All of the following discussion is relative to Sun Java 6, but most details - if not every detail - is still valid for Java 7 and 8.
Ollivander Unicode and encoding: Python vs Java shootout, part 1 Before going on with this post, be sure you've read The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) - otherwise, I won't be able to solve your issues.Sometimes Java fans just say that Python
Ollivander Unit testing with Twisted: testing protocols I had some hard time when testing Twisted protocols. Although they should be decoupled from factories, most examples I could find, including those from the official doc, were just too noisy and suggested using a factory.I don't like that approach - I should
Ollivander Using trial as test runner with zc.buildout I've found a good way to launch tests using Twisted Trial in a zc.buildout enabled project. I was in fear of needing a full-fledged recipe - which I didn't have the time nor the will to code.Luckily, zc.recipe.egg seems good