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
- Host: GitHub
- URL: https://github.com/bfontaine/flatkeys
- Owner: bfontaine
- License: mit
- Created: 2014-12-29T14:56:08.000Z (over 11 years ago)
- Default Branch: origin/master
- Last Pushed: 2017-07-30T17:59:41.000Z (almost 9 years ago)
- Last Synced: 2025-07-14T03:52:53.865Z (12 months ago)
- Topics: library, python
- Language: Python
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
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"}