Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

ordered, dynamically-expandable dot-access dictionary

Project description

DotMap is a dot-access dict that

  • is dynamically expandable
  • can be initialized with keys
  • easily initializes from dict
  • easily converts to dict
  • is ordered by insertion
m = DotMap()

# key initialization

# new sub maps are created dynamically
m.people.john.age = 32
m.people.john.job = 'programmer'
m.people.mary.age = 24
m.people.mary.job = 'designer'

# iteration ordered by insertion
for k, v in m.people.items():
        print k, v
print

# easy conversion to dictionary
d = m.toDict()

# easy initialization from dictionary
newMap = DotMap(d)
print newMap

# built-in pprint
newMap.pprint()

Project details


Release history Release notifications

History Node

1.2.20

History Node

1.2.19

History Node

1.2.17

History Node

1.2.16

History Node

1.2.15

History Node

1.2.14

History Node

1.2.13

History Node

1.2.12

History Node

1.2.11

History Node

1.2.10

History Node

1.2.9

History Node

1.2.8

History Node

1.2.7

History Node

1.2.6

History Node

1.2.5

History Node

1.2.4

History Node

1.2.3

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.22

History Node

1.1.21

History Node

1.1.20

History Node

1.1.19

History Node

1.1.18

History Node

1.1.17

History Node

1.1.16

History Node

1.1.15

History Node

1.1.14

History Node

1.1.2

History Node

1.1.1

History Node

1.0.16

History Node

1.0.15

History Node

1.0.14

History Node

1.0.13

History Node

1.0.10

History Node

1.0.9

History Node

1.0.8

History Node

1.0.7

History Node

1.0.6

History Node

1.0.5

History Node

1.0.4

History Node

1.0.3

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
dotmap-1.0.2.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None Aug 12, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page