v0.0.4

pydantic/montyv0.0.4Feb 7, 2026by samuelcolvin

AI Summary

Release adding important Python features including getattr improvements, property support, os.environ, namedtuple fields, and star unpacking. Also introduced HeapGuard helper and small-tuple optimizations.

Key Highlights

  • Added getattr improvements with property and os.environ support
  • Implemented namedtuple fields
  • Added star unpacking
  • Began HeapGuard helper implementation
  • Implemented small-tuple optimizations
  • Fixed AST depth overflow

New Features

  • property support
  • os.environ
  • namedtuple fields
  • star unpacking
  • HeapGuard helper
  • small-tuple optimizations

Full Release Notes

## What's Changed
* `getattr` improvements, `property` and `os.environ` support by @samuelcolvin in https://github.com/pydantic/monty/pull/96
* Nametuple fields by @samuelcolvin in https://github.com/pydantic/monty/pull/100
* Add benchmark for empty / small tuple pathological case by @davidhewitt in https://github.com/pydantic/monty/pull/101
* Examples code and some fixes along the way by @samuelcolvin in https://github.com/pydantic/monty/pull/102
* Fix typo in README by @johnslavik in https://github.com/pydantic/monty/pull/103
* Fix grammar and clarity in README.md by @phalt in https://github.com/pydantic/monty/pull/104
* fix: include wrapper.js and wrapper.d.ts in npm package by @Bl3f in https://github.com/pydantic/monty/pull/109
* Star unpacking by @samuelcolvin in https://github.com/pydantic/monty/pull/107
* Coverage script by @samuelcolvin in https://github.com/pydantic/monty/pull/111
* Fix ast depth overflow by @samuelcolvin in https://github.com/pydantic/monty/pull/114
* Fix typos in readme by @ofek in https://github.com/pydantic/monty/pull/115
* begin implementing `HeapGuard` helper by @davidhewitt in https://github.com/pydantic/monty/pull/88
* Implement small-tuple optimizations by @davidhewitt in https://github.com/pydantic/monty/pull/90
* `LongInt` usage exceptions by @samuelcolvin in https://github.com/pydantic/monty/pull/113
* uprev to 0.0.4 by @samuelcolvin in https://github.com/pydantic/monty/pull/120

## New Contributors
* @johnslavik made their first contribution in https://github.com/pydantic/monty/pull/103
* @phalt made their first contribution in https://github.com/pydantic/monty/pull/104
* @Bl3f made their first contribution in https://github.com/pydantic/monty/pull/109
* @ofek made their first contribution in https://github.com/pydantic/monty/pull/115

**Full Changelog**: https://github.com/pydantic/monty/compare/v0.0.3...v0.0.4