Blog / Python

How to use proxies with an HTTP session using the Python requests package

December 26, 2017

I was working on a client project yesterday where I needed to use a proxy to make HTTP requests with the Python requests package.

In my use case, I needed to create a session and I wanted to just specify the proxy settings in one place and use that for all requests made through that session. I didn't see how to do this in the documentation so I thought I'd share my solution ...

How to add full-text search to your Django app (with a PostgreSQL backend)

September 25, 2017

In Django 1.10, the django.contrib.postgres.search module was added to make it really easy to use PostgreSQL's full text search engine with a Django app.

I currently use it for this blog, Remote Python's job and developer search, and our knowledge base for Highview Apps. I'm really impressed with how good the search is and how little code is needed to get it working. Unless you have huge amounts ...

Retry decorator for Python 3

September 1, 2017

When your app relies on making API calls to external resources, you should expect that there will be network issues from time to time and you should prepare for them.

While these will be rare relative to the number of requests you're making, handling them early on could really save you a lot of headache in the future as your app usage grows. Many of these things can be easily handled with a simple ...

Launching RemotePython.com: A job board and aggregator for remote Python jobs (and only remote Python jobs)

January 4, 2017

I recently launched RemotePython.com, a job board specifically for remote Python jobs. I aimed to release it on January 1 and was actually able to make it in time. There were a few minor last minute bugs I had to fix before the launch, but overall it went pretty well.

I started the project as I'm a freelance Python developer who can only work remotely due to my "digital nomad" lifestyle and constantly ...

RemotePython.com Progress Report

December 24, 2016

I started development of RemotePython.com, a job board/aggregator for finding remote Python jobs and developers, towards the end of November. Just almost a month later, I'm happy to announce that I'm about 90% done with the site. I've logged around 66 hours of development time so far.

The site is of course built with Python, using the Django web framework. I also made sure I took advantage of the latest ...

Older