Skip to content
D

Dotmap

Dot access dictionary with dynamic hierarchy creation and ordered iteration

by drgribFree

#3546in Utilities
0In stores

Description

DotMap is a Python library that lets you read and write dictionary keys with dot access. It subclasses dict, so it works anywhere a normal d…

Highlights

  • Dot access to dictionary keys
  • Automatic nested hierarchy creation
  • Keys kept in insertion order
  • Converts to and from plain dict
  • Default factories and pretty printing

Ratings & Reviews

No ratings yet

Be the first to rate Dotmap.

People also visit

P

Python Benedict

dict subclass with keylist/keypath support, built-in I/O operations

Developer Tools
Launch
W

Workerskv.gui

(WIP) A cross-platform Desktop application

Utilities
Launch
H

Hashmap.me

Simple HTTP-Based Data Storage and Retrieval

Developer Tools
Launch
N

NonBlocking

Implementation of a lock-free dictionary on .Net

Utilities
Launch
G

GitMap

GitHub Repository Map

Utilities
Launch
M

Markmap

Build mindmaps with plain text

Utilities
Launch

Dotmap FAQ

What is DotMap?

A Python library that wraps a dictionary so you can use dot notation to read and write its keys.

Is a DotMap still a dict?

Yes. It is a dict subclass, so you can use it like one and convert it to a plain dict when needed.

How do I turn off automatic nesting?

Initialize it with _dynamic=False, or use StaticDotMap for a structure that does not create keys on access.

Does it keep the order of my keys?

Yes. Iteration follows the order in which keys were inserted.

How do I install it?

Follow the install command in the project README. The README also shows how to upgrade an existing installation.

What are the best Dotmap alternatives?

Popular alternatives to Dotmap include Workerskv.gui, NonBlocking and GitMap. See all Dotmap alternatives

Developer Stuff

Badges