NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #4545 most downloaded on PyPI
Monty is the missing complement to Python.
Last release 2 months ago
16 Jul 2026
Ships unpredictably
gaps range from 8 days to 12 months
Most releases are documented
notes for 50 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
13 years old
129 releases · first in 2014
Use CLoader and CDumper by default for speed.
Ruamel.yaml is now used as the default YAML parser and dumper.
Now ScratchDir functions as it should by replacing the original directory.
One column per quarter.
Minor update for inspect deprecation.
Allow private variable names (with leading underscores) to be auto-detected in default MSONable.
Favor use of inspect.signature in MSONAble.
Nothing published for this version
Fix monty decoding of bson only if bson is present.
1. Minor update.
bson.objectid.ObjectId support for MontyEncoder and MontyDecoder.
Improved default as and from_dict.
Nothing published for this version
Nothing published for this version
1. Minor bug fixes.
Support for bson fields in jsanitize.
Nothing published for this version
1. Fasetr gzip.
Update gcd for deprecated fractions.gcd in py >= 3.5. Try math.gcd by default first.
A new collections.tree object, which allows nested defaultdicts.
Added support for msgpack serialization in monty.serialization.dumpfn, loadfn and monty.msgpack.default and object_hook.
Added timeout function. Useful to limit function calls that take too long.
New backwards incompatible MSONable implementation that inspects init args to create a default dict representation for objects.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
New jsanitize method to convert objects supporting the MSONable protocol to json serializable dicts.
New frozendict and MongoDict (allows for Javascript like access of nested dicts) classes (Matteo).
More fixes for reverse read of gzipped files ofr Py3k.
Fix reverse read file for gzipped files.
Added a reverse_readfile method in monty.io, which is faster than reverse_readline for large files.
Provide way to specify Dumper and Loader in monty.serialization.
More robust handling of numpy arrays and datetime objects in json.
Addition of many help functions in string, itertools, etc. (Matteo).
1. Minor efficiency improvement.
Add unicode2str and str2unicode in monty.string.
Nothing published for this version
Completely rewritten zopen which supports the "rt" keyword of Python 3 even when used in Python 2.
Refactor lazy_property to be in functools module.
Additional dev decorators lazy and logging functions.
Improve numpy array serialization with MontyEncoder.
Minor bug fix for module load in Py3k.
Remove deprecated json.loadf methods.
monty.tempfile.ScratchDir now checks for existence of root directory. If root path does not exist, will function as simple pass through. Makes it a lo
monty.tempfile.ScratchDir now checks for existence of root directory. If root path does not exist, will function as simple pass through. Makes it a lot more robust to bad mounting of scratch directories.
Added backport of functools.lru_cache.
Specialized json encoders / decoders with support for numpy arrays and objects supporting a to_dict() protocol used in pymatgen.
Nothing published for this version
Nothing published for this version
Proper support for libyaml auto-detect in yaml support.
Refactor serialization tools to shorten method names.
Added serialization module that supports both json and yaml. The latter requires pyyaml.
Added get_ncpus method in dev. (G. Matteo).
Add a Fabric-inspired cd context manager in monty.os.
Add string module, which provides a function to remove non-ascii characters. More to be added.
ScratchDir now supports non-copying of files to and from current directory, and this is the default (different from prior releases).
Nothing published for this version
Added the useful monty.shutil.compress_file, compress_dir, decompress_file and decompress_dir methods.
1. Bug fix for 0.1.3.
Your coding agent can read these notes before it upgrades. Set up the MCP server →