Skip to main content

Utilities for working with marimo notebooks, including Pydantic model display

Project description

marimo-utils

Utilities for working with marimo notebooks.

Installation

pip install marimo-utils

Usage

@add_marimo_display() decorator

Adds a _display_ method to Pydantic models for rich rendering in marimo notebooks.

from pydantic import BaseModel
from marimo_utils import add_marimo_display

@add_marimo_display()
class MyConfig(BaseModel):
    name: str
    value: int

When a MyConfig instance is the last expression in a marimo cell, it renders with the class name, source file path, and all field values.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marimo_utils-0.1.0.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marimo_utils-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file marimo_utils-0.1.0.tar.gz.

File metadata

  • Download URL: marimo_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for marimo_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d874759c7ad0430080ba6082b9c9dc57c86760640f41b8fe1e594a6c74d391f
MD5 318a41c7b3eaeb0b06f43467ad7c9ef9
BLAKE2b-256 211c62f9ff1b1c22b3da37551b33d85a7bc56d0116dd268a3698941e568d95af

See more details on using hashes here.

File details

Details for the file marimo_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for marimo_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 444a73074f64bd3cc5c7ad4a34fa0c3eabe2437b7f81c8007582bcd39edf46bc
MD5 dd284c76bbbf83480c22404939e1e270
BLAKE2b-256 add45e6a6288dec9b04c02fed395ae88207f0f306a0312169428bc90d7a6eebd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page