Home

Testing pydantic with Hypothesis

This post covers a few important points for generating valid and complete pydantic model instances using Hypothesis. I’ll assume you’re familiar with at least pydantic and won’t go into detail on Hypothesis either: in short, it enables property-based testing, in which you specify the type of something (a string, an integer, or a pydantic model),...

Read more

Basis Expansions and Smoothing Splines

Introduction The veritable scikit-learn Python machine learning package has reached its 1.0 release after only 14 years of development, and included in the release is a new SplineTransformer class. I love splines, but they can be a bit confusing if you don’t understand what you’re looking at, so I thought I’d give a bit of background on how the...

Read more

Terraforming Snowpipe

TL;DR Using the Snowflake Terraform provider maintained by the Chan-Zuckerberg Institute, we have automated the process of creating S3 bucket notifications, and Snowflake stages, pipes and tables for automatically loading data into Snowflake. We have published the module on the Terraform Registry. Airflow The vast majority of our infrastructu...

Read more

Hello World!

Branch Energy is on a mission to help people lower their energy bills and reduce their carbon footprint. As part of that, we have the privilege of working with a ton of great open source software; this site is dedicated to the work that we do to give back to the OSS community with tools that we work on and maintain at Branch.

Read more