python

DiskDict - Python dictionaries stored on disk · December 5, 2016 · python

This weekend while running a rather large Python job, I ran into a memory error. It turned out that a dictionary I was populating could potentially become too big to fit into RAM. This is where DiskDict saved me some time. https://github.com/AWNystrom/DiskDict/ It’s definitely…

Really Simple OAuth v1 with Django · April 22, 2014 · django python

Time and time again, developers stumble upon APIs using OAuth. I’ve recently added Fitbit integration to an application I’m working on. FitBit’s API uses OAuth v1 for authentication, and using OAuth with Django was really straightforward. Here’s what I did: Prerequisites You&…