Issue #158


March 20, 2015

Django and Requests Security releases, PyTricks, Mapping your Music Collection and  much more.

Issue #158: Madness

Weekly dose of all things Python.
Hey Everyone, 

Its that time of year again, time to take a break from your brackets to check out what happened in Python world this week! Enjoy!

Share an article with us and if it lands in newsletter get highlighted as a contributor in the newsletter!

Like what we are doing? Support us on Gratipay  We are on twitter too! 

From our sponsors:

Click here to Signup for the PageCloud Presale

Why waste your time hand-coding HTML? Discover PageCloud, the world's most advanced website editor, from Pycoders' @mgrouchy. Save 10% on the limited pre-sale until Monday March 23rd with the coupon code PYCODERS.

(Sponsor this newsletter


Security releases issued for Django
Another week, another new security release for Django. Upgrade your Django version where appropriate to Django 1.4.20, 1.6.11, 1.7.7 or 1.8c1.
Shared by @mgrouchy

Requests Vulnerability Disclosed
Time to upgrade to Requests 2.6.0, there was a vulnerability in the handling of cookies on redirect. Click through for more details, but more importantly upgrade your projects using Requests.
Shared by @mgrouchy


what is the "unique" python feature that makes you love it?
Shared by @myusuf3



A validation too for Python dictionaries.
Shared by @mgrouchy

A pretty nice collection of less popular features and tricks for Python.
Shared by @mgrouchy

Deploy your code based on the planets alignments.
Shared by @mgrouchy

Very useful if you are looking to get your Postgres on. This is a Template for PostgreSQL HA with etcd.
Shared by @mgrouchy

Interesting project. Allows you to create your email template from an admin and store the template in the database. Also supports sending messages in the background and a bunch of other nice features. Check it out.
Shared by @mgrouchy

From the README, holoviews is a "Composable, declarative data structures for building complex visualizations easily."
Shared by @mgrouchy

Fuzzy equality objects for testing, a stricter version of Mock.Any.
Shared by @mgrouchy

Sir Terry Pratchett has passed away. As per this reddit thread, add the 'X-Clacks-Overhead' header to your Django application honour Terry Pratchett.
Shared by @aaronbassett

Library for using a MySQL database from asyncio.
Shared by @isinf


Finding temp file creators
In this post the author noticed that the test suite for his project was leaving behind temporary files and decides to monkeypatch a helper in mkdtmp to find out what callers were creating the temp files. Cool post.
Shared by @mgrouchy

PyMongo And Key Order In Subdocuments
A detailed look into the question "Why does my query work in the shell but not PyMongo?".
Shared by @mgrouchy

Ordering issues when monkey patching in Python.
An approach to solve ordering issues when monkey patches are applied by the use of post import hooks.
Shared by @mgrouchy

Real-time notifications on Django using gevent-socketio and RabbitMQ
Very complete tutorial to get realtime event notifications working on a GeoDjango based site. Uses, gevent and rabbitmq to make the magic happen.
Shared by @mgrouchy

My approach to Class Based Views
Luke Plant gives you his DIY approach to dealing with class based views in Django.
Shared by @mgrouchy

Mapping Your Music Collection
a look at an interesting way to visualize your music collection with numpy and other tools.
Shared by @mgrouchy

Threading and Multiprocessing Tutorial for Python
Very detailed guide for beginners who want to learn about concurrency and parallelism in Python
Shared by @mgrouchy

Mining Twitter Data with Python
This is the first part of a three part series for mining twitter with Python. Each part of the series takes you through steps in the process from collecting data, pre-processing the data you collected to doing some basic analysis of term frequencies in your data.
Shared by @myusuf3
Read Later
Forward to Friend
Copyright © 2015 PyCoder’s Weekly, All rights reserved.