OPI Blog
Learn from experts in their fields

Browsing Tags: Python

Aug 26, 2020
Large Data Migrations Django
Been working with a Django project with a large dataset and wanted to insert a bunch of inter-related data in a migration. Where Django has support for data migrations via the migration framework, it doesn’t ...
Oct 16, 2019
Local Testing for GCP Cloud Functions
It’s easy to write Google Cloud Functions in Python. The trick is to put a function that takes a single object in a file called main.py. Their example is simply: def hello_world(request): """Responds to any ...
Up and Running with AWS Glue
AWS Glue is a managed service that can really help simplify ETL work. In this blog I’m going to cover creating a crawler, creating an ETL job, and setting up a development endpoint. Since Glue ...
Jun 18, 2019
Managing Python environments with direnv
A few months ago I discovered direnv and was surprised how I got along so well with out it. From the website, direnv ” allows project-specific environment variables without cluttering the ~/.profile file.” I used ...
Feb 27, 2019
Creating dynamic headers in Reportlab
When writing code to make a report, you never truly know what you are going to get into. In a recent Python project, I was using the excellent ReportLab libraryand things were going smoothly. But then ...
Jan 24, 2019
Creating Raw SQL Migrations in Django
I am using Django, which has great support for PostgreSQL-specific functions in it’s ORM. I wanted to use a SearchVectorField inside my application and PostgreSQL recommends creating a trigger for to populate that column. Well that was easy enough but I ...
Nov 27, 2018
Managing Multiple Python Instances
The problem with working on different Python codebases is the versioning and the large amounts of libraries available. Say you are working on a data science project using Pandas and then suddenly your boss wants ...
Aug 2, 2018
Converting Maven Dependencies to Gradle
I had the, er, honor of converting an old ANT build to Gradle. It was one of those with the directories filled with jars and was having a hard time figuring out what dependency was ...
Getting Started With Amazon Alexa Development
In the last few years Amazon has been able to capture a significant share of the home assistant market with the help of the Echo product family. Starting with the audio only product line, Dot, Tap, and ...