monty
Monty is the missing complement to Python.
Decision gist · record as of 2026-08-14
Yes, if you're building scientific or data-heavy Python projects and want to reduce boilerplate with battle-tested utilities. The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe addition. The dependency on numpy and ruamel.yaml means it's most valuable in projects already using those libraries; if you're not, the overhead may not justify it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later.
- Low friction install with a pure-Python wheel.
- Actively maintained as of 2026-07-16.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
last release 2026-07-16 (29 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 952,390 downloads/mo, #4,653 on PyPI
Alternatives
Verify before relying
pip install monty
from monty.design_patterns import singleton
@singleton
class MyClass:
pass- What specific utility functions and design patterns are included beyond the examples mentioned (singleton, cached_class, zipped file support)
- Performance characteristics or overhead of the utility functions compared to hand-rolled equivalents
- Whether the package is suitable for production use or primarily for development convenience
What it is and what it does
Monty is a utility library that fills gaps in Python's standard library by providing reusable helper functions and design patterns. It offers transparent support for working with zipped files, implements common patterns like singleton and cached_class decorators, and collects solutions to problems that developers frequently encounter across scientific and general-purpose projects.
The package depends on ruamel.yaml and numpy, making it suitable for projects already using those libraries. It's classified as Beta (Development Status 4) and actively maintained, with support for current Python versions (3.11+). The library is intended as a complement to the standard library rather than a replacement, designed to reduce boilerplate and provide battle-tested solutions to recurring problems.
Use it for
- Implementing singleton or cached class patterns in scientific frameworks without writing custom decorators.
- Transparently reading and writing files stored in zip archives without manual extraction.
- Adding commonly needed utility functions to data processing pipelines that use numpy and ruamel.yaml.
- Reducing boilerplate code in large Python projects by reusing well-tested design patterns.
- Extending Python's standard library capabilities in development workflows where convenience matters.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you're building scientific or data-heavy Python projects and want to reduce boilerplate with battle-tested utilities.
The low install friction, permissive license, active maintenance, and zero known vulnerabilities make it a safe addition. The dependency on numpy and ruamel.yaml means it's most valuable in projects already using those libraries; if you're not, the overhead may not justify it.
Install
monty on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained as of 2026-07-16. Depends on ruamel.yaml and numpy, both widely available.
Requires Python 3.11 or later.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install monty
from monty.design_patterns import singleton
@singleton
class MyClass:
pass
Verify before relying
- What specific utility functions and design patterns are included beyond the examples mentioned (singleton, cached_class, zipped file support)
- Performance characteristics or overhead of the utility functions compared to hand-rolled equivalents
- Whether the package is suitable for production use or primarily for development convenience
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesruamel.yamlnumpy |
| Maintenance | Actively maintained 29 days since the last release |
| First released | |
| Downloads | 952,390 / month, #4,653 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: monty-2026.7.16-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “zipped file handling”
- montyMonty provides supplementary utility functions and design patterns…
- pyexcel-ioProvides a unified API to read and write data in CSV, TSV, and zipped…
- acresAcres provides a consistent, scoped interface for accessing package…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also singleton-decorator · pyjon.utils · pydantic-monty-runtime · pydantic-monty · jaraco.collections · django-braces · sentinels · solus · wimpy · funcy