mo-dots
More Dots! Dot-access to Python dicts like Javascript
Decision gist · record as of 2026-08-14
Yes. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and solves a real friction point in Python data handling. Low install friction and a clear use case for anyone working with nested dictionaries or JSON data. The copyleft license is a minor consideration only if you plan to distribute proprietary derivatives; using the library itself is unrestricted.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with only two lightweight runtime dependencies (mo-future and mo-imports).
- Actively maintained as of 2026-07-31 with stable production status.
License · maintenance · safety
MPL 2.0 (copyleft) — Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license. Derivative works and modifications must be distributed under the same license; proprietary use of the library itself is permitted.
last release 2025-06-15 (425 days) · last repo commit 2026-07-31 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 338,861 downloads/mo, #7,429 on PyPI
Alternatives
Verify before relying
from mo_dots import Data, to_data
# Create Data with named parameters
d = Data(b=42, c="hello")
print(d.b) # 42
# Convert existing dict
existing = to_data({"x": {"y": 10}})
print(existing["x.y"]) # 10
# Null-safe access
empty = Data()
print(empty.missing) # Null (no error)- Performance characteristics compared to standard dict operations (speed, memory overhead)
- Compatibility with type checkers and IDE autocomplete for dot notation
- Behavior when serializing nested Data objects to JSON beyond the documented default parameter approach
What it is and what it does
mo-dots wraps Python dictionaries in a `Data` object that lets you access nested values using dot notation (like JavaScript) instead of bracket syntax. Instead of `data["a"]["b"]`, you write `data.a.b`. The key feature is null-safety: accessing a missing key returns a special `Null` object rather than raising a KeyError, allowing you to chain accesses without guards. You can also use dot-delimited path strings as keys—`data["a.b.c"]`—to access or assign deeply nested values without manually creating intermediate dictionaries.
The library depends on mo-future and mo-imports, both lightweight utilities. It supports Python 3.8 through 3.13 and has been actively maintained since its 2017 release. The design philosophy prioritizes consistency and brevity in data transformation code, avoiding exceptions during property access and providing a more uniform interface than standard Python dicts.
Use it for
- Parse and manipulate JSON API responses with safe nested property access without defensive checks
- Build configuration objects where missing keys should default to Null rather than error
- Accumulate values into nested structures using += without pre-creating intermediate dicts
- Transform data pipelines where chaining property accesses should never raise exceptions
- Serialize data to JSON by passing the Data object through mo-dots' conversion utilities
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and solves a real friction point in Python data handling. Low install friction and a clear use case for anyone working with nested dictionaries or JSON data. The copyleft license is a minor consideration only if you plan to distribute proprietary derivatives; using the library itself is unrestricted.
Install
mo-dots on PyPI
Before you install
Low friction: pure Python wheel with only two lightweight runtime dependencies (mo-future and mo-imports). Actively maintained as of 2026-07-31 with stable production status.
License in practice
Licensed under Mozilla Public License 2.0 (MPL 2.0), a copyleft license. Derivative works and modifications must be distributed under the same license; proprietary use of the library itself is permitted.
Quickstart
from mo_dots import Data, to_data
# Create Data with named parameters
d = Data(b=42, c="hello")
print(d.b) # 42
# Convert existing dict
existing = to_data({"x": {"y": 10}})
print(existing["x.y"]) # 10
# Null-safe access
empty = Data()
print(empty.missing) # Null (no error)
Verify before relying
- Performance characteristics compared to standard dict operations (speed, memory overhead)
- Compatibility with type checkers and IDE autocomplete for dot notation
- Behavior when serializing nested Data objects to JSON beyond the documented default parameter approach
Package facts
| License | MPL 2.0 copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesmo-futuremo-imports |
| Maintenance | Actively maintained 425 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 338,861 / month, #7,429 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: mo_dots-10.685.25166-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 › “null-safe nested object access”
- mo-dotsProvides null-safe dot-notation access to nested dictionaries and…
- maybe-elseWraps values in a `Maybe` class to handle None checks and chained…
- magicattrProvides nested attribute access and modification on objects, lists,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also dictor · dotmap · glom · prodict · python-json-config · json-normalize · python-box · jsonasobj2 · munch · pathable