Why Python devs love Requests
Jul 08, 2021
Requests is the HTTP client I and every Python developer I know always reach for when we need to pull data from remote sources. It got 121M downloads in June 2021 alone according to PePy and has 45.5k github stars at the time of writing. Developers love making requests with Requests!
At the time of Requests original release in 2011 urllib3 was the high level HTTP library of choice and Requests actually uses it as a dependency.
Build Your Own Pico Powered Midi Controller for $35
Jun 08, 2021
Find the video of this article on youtube
The Launchpad is a midi controller used for audio production with digital audio workstations (or DAWs) like Ableton. In comes in mini and standard forms and features 64 pads, along with 16 additional buttons ready to map to your application of choice. The mini version starts at £75, the standard is £145 and there’s an older “Pro” which is currently available for £179.
Installing Module Extras with Pipenv and Poetry
Apr 07, 2021
I thought it worth documenting how to install “extra” dependencies in Pipenv and Poetry after struggling to find the answer myself. Context: I hit a problem with uvicorn where the websockets module hadn’t been installed as a result of not including the “standard” extras. Rather than return an error, it just failed to connect the websocket which made me think something was wrong with my network configuration.
As an example, take the following pip command:
YouTube Videos as Small Experiments
Mar 30, 2021
The popularity of working on small experiments (or ‘bets’) as business ideas before investing a significant amount of time upon one of them is a model of work rapidly gaining traction with indie hackers.
It makes so much sense - when you’re small and in need of money to fund your work, you don’t waste time on ideas which are unproven. Instead you choose to work on a portfolio of many ideas over a short period of time to see which ones resonate with customers.
Setting Up a New M1 Mac for Development
Mar 05, 2021
I recently updated my 2012 Mac Mini with a 2021 M1 Mac Mini and decided to document the first time setup process. You can also check out a youtube video I’ve made on setting it up. What follows is all the steps in written form as a handy reference for you to copy and paste from - or future me. Surprisingly, the installation process was fairly simple now there are versions of software written for Apples new architecture.
Comparing VAT Solutions for Bootstrapped UK Businesses
Feb 23, 2021
Laws on when to apply VAT have always been a complex beast - in 2015 the EU made changes that meant that VAT was to be calculated based on a customer location, introducing a VATMOSS system for its collection. Since leaving the EU things have become even more complicated if you happen to be based in the UK. You now are no longer able to make use of the VATMOSS system, meaning you potentially need to register for VAT in every EU country you sell products to (!
Creating Social Images with Puppeteer
Feb 16, 2021
In this post I’m going to show how to generate images for sharing content on social networks like twitter and facebook using Puppeteer. This could be for any content - a post on our blog or something more complex like a dynamic storefront. So long as we correctly include open graph meta tags within the markup appropriate for the sites in question, our nicely designed image will be included as part of the apps feeds, rather than a blank preview.
The Years I've Spent on Side Projects Have Not Been Wasted
Feb 04, 2021
In my 18 years online, I’ve spent large chunks of time exploring ideas that never came into fruition. I’ve gone years building out software I’ve never made into saleable products for a multitude of reasons. The standard indie hacker journey would have you believe that this is time wasted, pointless where iterating quickly and shipping products that sell would get you to that magic monthly recurring revenue you so desperately desire.
Building a Cookiecutter Template for Multiple Python Package Managers
Jan 25, 2021
In my previous post, I described how you can use Python and Makefiles to quickly get new projects started. In this post I explore how you can use cookiecutters more advanced Jinja templating techniques to make a cookiecutter that can be used for multiple package managers. Specifically, we’ll be extending the existing template to build another that can be used with either Poetry or Pipenv.
Our New Cookiecutter Template As a reminder, Cookiecutter allows us to template project and directory content and structure using Jinja2 logic.
Bootstrapping Python Projects with Cookiecutter and Makefiles
Jan 07, 2021
When starting a new project, it’s easy to get caught up in the excitement of starting the shiny new thing and forget about some basics. What starts out as a script slowly evolves into an application and before long you’ll find yourself repeating common steps for every project to get it to match personal preferences. If you happen to be working within on a team, you may have many repositories that should have the same setup and inconsistencies between them can quickly lead to large amounts of lost time to get them aligned.