This message was deleted.
# general
s
This message was deleted.
👀 1
e
So yeah, I think I put that in just in case the API needed to settle, although I doubt it will change much at all. As in, we reserve the right to change the API, but it won’t be: (1) in a way that is impossible to adapt to (2) in a way that fundamentally alters what we’re trying to do And, honestly, we’re unlikely to change it in a way that’s backwards incompatible. So, as long as you have a unit test on it (for new Hamilton versions), I’d feel comfortable subclassing it. You can always reach out to us if anything breaks, and the more people using this feature, the happier we’ll be to solidify it.
👍 1
When you do subclass it, there are three methods you’ll want to change: 1.
applicable_types
2.
save_data
3.
name
And you can See something like this: https://github.com/DAGWorks-Inc/hamilton/blob/7f30feb03cdbef037c2210d8995294f9c5b28a1d/hamilton/plugins/pandas_extensions.py#L62 as an example to get started (although this subclasses another intermediate level).
t
Thanks @Elijah Ben Izzy! And super neat code btw, I’ve been loving it so far.
❤️ 1
e
Awesome! Thrilled to hear 🙂
s
@Thibault Irissou there’s an item to straighten up some of the internal class naming, but we can CC you on the PR.