github manzt/anywidget anywidget@0.4.0

latest releases: @anywidget/signals@0.0.4, @anywidget/signals@0.0.3, @anywidget/signals@0.0.2...
13 months ago

Minor Changes

  • feat: Add support for evented msgspec.Struct objects (#64)

    Our experimental descriptor API can now work with msgspec, a fast and efficient serialization library, similar to pydantic but with a stronger emphasis on ser/de, and less on runtime casting of Python types.

    from anywidget._descriptor import MimeBundleDescriptor
    import psygnal
    import msgspec
    
    @psygnal.evented
    class Counter(msgspec.Struct, weakref=True):
        value: int = 0
        _repr_mimebundle_: ClassVar = MimeBundleDescriptor(_esm="index.js", autodetect_observer=False)

Don't miss a new anywidget release

NewReleases is sending notifications on new releases.