accordion-0.2.3


توضیحات

Make flat dict and back from dict
ویژگی مقدار
سیستم عامل -
نام فایل accordion-0.2.3
نام accordion
نسخه کتابخانه 0.2.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ruslan Roskoshnyj
ایمیل نویسنده i.am.yarger@gmail.com
آدرس صفحه اصلی https://github.com/newmediatech/accordion
آدرس اینترنتی https://pypi.org/project/accordion/
مجوز LICENSE.txt
# Accordion [![Build Status](https://travis-ci.org/newmediatech/accordion.svg?branch=master)](https://travis-ci.org/newmediatech/accordion) [![Coverage Status](https://coveralls.io/repos/github/newmediatech/accordion/badge.svg?branch=master)](https://coveralls.io/github/newmediatech/accordion) [![PyPI version](https://badge.fury.io/py/accordion.svg)](https://badge.fury.io/py/accordion) - [About](#about) - [Installation](#installation) - [Example](#example) - [Requirements](#requirements) - [Contribution how-to](#contribution) ### <a name="about"/>About</a> Make flat dict and back from `dict` ### <a name="installation"/>Installation</a> With pip: ```bash pip install accordion ``` ### <a name="example"/>Example</a> ```python from accordion import compress, expand data = { "a": [1, 2, 3], "b": { "c": "d" } } expected = { "a/0": 1, "a/1": 2, "a/2": 3, "b.c": "d" } assert compress(data) == expected assert expand(compress(data)) == data ``` ### <a name="requirements"/>Requirements</a> Tested with `python3.6` ### <a name="contribution"/>Contribution how-to</a> ###### Run tests: * clone repo: `git clone <your-fork>` * create and activate your virtualenv * `pip install -r requirements.txt && pip install -r dev-requirements` * `./run_tests.sh`


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl accordion-0.2.3:

    pip install accordion-0.2.3.whl


نصب پکیج tar.gz accordion-0.2.3:

    pip install accordion-0.2.3.tar.gz