An open API service indexing awesome lists of open source software.

https://github.com/bfontaine/flatkeys

flatten dict keys in Python
https://github.com/bfontaine/flatkeys

library python

Last synced: 11 months ago
JSON representation

flatten dict keys in Python

Awesome Lists containing this project

README

          

========
flatkeys
========

.. image:: https://img.shields.io/travis/bfontaine/flatkeys.png
:target: https://travis-ci.org/bfontaine/flatkeys
:alt: Build status

.. image:: https://img.shields.io/pypi/v/flatkeys.png
:target: https://pypi.python.org/pypi/flatkeys
:alt: Pypi package

``flatkeys`` is a dictionary flattening library for Python.

Install
-------

.. code-block::

[sudo] pip install flatkeys

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

Usage
-----

.. code-block::

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