Tag Archives: python

Slow Python Script and Using Pipenv with AWS Lambda

I’m working on improving a python script I wrote to get a list of old posts from a wordpress website. Basically I want to be able to see what post I wrote X years ago on this day for any wordpress site. … Continue reading

Posted in programming | Tagged | Leave a comment

SQLite DB Migrations with PRAGMA user_version

This blog used a simple homegrown blogging engine that I wrote backed by a SQLite database. I have a function in the flask app that performs database migrations. My current approach has been to keep a folder full of migrations and run … Continue reading

Posted in databases | Tagged | Leave a comment

I Want to Become a Core Python Developer

I’ve been tinkering with python for almost five years now. I am absolutely in love with the language. My new goal is to make enough contributions to the project to join the core team. This post is my attempt to keep … Continue reading

Posted in programming | Tagged | 1 Comment

Python Mocks Test Helpers

I’ve been writing a python wrapper for the CircleCI API over the last week. I wanted to do this “the right way” with test driven development. I have a couple integration tests that actually hit the CircleCI API, but most of the … Continue reading

Posted in programming | Tagged | Leave a comment

Injecting Stuff into your Python Path

Similar to a previous post where I wrote about how to run flask tests without installing your app, another common thing that you might want to be able to do is import your app from some arbitrary script. This is especially … Continue reading

Posted in programming | Tagged | Leave a comment

Using the Flask CLI

Who knew that flask had a cli? Previously I used to just use manage.py just like Django does it to “do stuff”. The CLI is great, but again it follows the theme of kind of wanting you to install your flask app. … Continue reading

Posted in programming | Tagged | 2 Comments

Running Flask Tests without installing the app

The Flask Docs have a great section for testing. However they assume that you have the app installed with pip install -e . which I almost never do. (Maybe I should start?) I have had trouble with this approach. So one little hack to … Continue reading

Posted in programming | Tagged | Leave a comment

Show all Flask Routes

One of my favorite things about rails is rake routes. This command will show you all of the routes that your application is currently aware of. I was searching for something similar in Flask and came across this snippet. Sadly, it did … Continue reading

Posted in programming | Tagged | Leave a comment