Week of September 23rd
Image by author.

Week of September 23rd

TL;DR:

  • #Hamilton release highlights: new OS user contributed feature @pipe_output
  • #Burr release highlights: some minor ?? fixes.
  • Office Hours & Meet ups for Hamilton & Burr.
  • In the wild: Salesteq Inc. launches product built with Burr.


Hamilton Release Highlights:

Hamilton Framework == 1.78.0

New feature @pipe_output.

@pipe_output? is new decorator to make post-function modifications to function/node results simpler. Thank you to our OS contributor Jernej Frank for leading the charge here! He really drove the implementation + cleaned up a lot of the existing code

Note that @pipe?has been renamed & deprecated in favor of?@pipe_input to make the distinction clear between the two decorators. We will keep @pipe around, until Hamilton 2.0, as we follow proper semantic versioning and don't publish breaking changes until major version updates.

from hamilton.function_modidifers import pipe_output, step

def _add_one(x: int) -> int:
    return x + 1


def _sum(x: int, y: int) -> int:
    return x + y


def _multiply(x: int, y: int) -> int:
    return x * y


@pipe_output(
    step(_add_one),
    step(_multiply, y=2),
    step(_sum, y=value(3)),
    step(_multiply, y=source("upstream_node_to_multiply")),
)
def initial_data() -> int:
    return 1 
    # gets turned into (((1 + 1) * 2) + 3) * upstream_node_to_multiply 
    # with post-function modifications        

??Fixes:

  • Fixed an issue in which materializers could not apply default values in certain cases. Thanks @Thierry Jean for the fix! and thanks to Riezebos for catching the bug!

  • Thanks to creative-resort for contributing additional documentation on importing functions with the jupyter notebooks.


Burr Release Highlights

Burr == 0.30.2

  1. We pushed some minor fixes for using typed state with:

from __future__ import annotations        

2. We pushed some documentation updates and typos.


Office Hours & Meetup

Hamilton Meet up: We'll have the next meet up in October. Currently it is scheduled for October 15th. We're excited to have Sholto Armstrong talk about their use of Hamilton and the new library they built on top at Capitec . Join/sign-up here.

Hamilton Office Hours: They happen most Tuesday 9:30am PT - 10:30am PT. Join our slack for the link.

Burr Office Hours: They happen most Wednesdays 9:30am PT - 10:3am PT. Join our discord for the weekly link.


In the Wild:

Congratulations to Salesteq Inc. and Dr. Milan Jelisav?i? for shipping their AI product using Burr. We're excited for the momentum and proof points like this that people are delivering AI products better, cheaper, and faster using our tools.


要查看或添加评论,请登录

社区洞察

其他会员也浏览了