Skip to content

bfontaine/flatkeys

Repository files navigation

flatkeys

Build status Pypi package

flatkeys is a dictionary flattening library for Python.

Install

[sudo] pip install flatkeys

The library works with both Python 2.x and 3.x.

Usage

>>> from flatkeys import flatkeys
>>> flatkeys({})
{}
>> flatkeys({1: {2: {3: "yolo"}}})
{"1.2.3": "yolo"}