Catalog PyPI
PACKAGE EXPLORERView in registry

accordion

PyPI

Make flat dict and back from dict

dictflat
Versions collected1
Direct dependencies0From release 0.2.3
Last observed20 Oct, 18:00 UTC

README

Version 0.2.3 documentation

Accordion

Build Status Coverage Status PyPI version

About

Make flat dict and back from dict

Installation

With pip:

pip install accordion

Example

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

Requirements

Tested with python3.6

Contribution how-to

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.2.31 May 20190

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
newmediatech/accordion

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
master
Last push
24 Jul 2019
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

1count
Gauge · observed snapshots21 Oct 2026
10.50
2026-10-21: 1 · observed 2026-10-21T20:04:49.5826639Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2112026-10-21T20:04:49.5826639Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:00 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:72e9ce246529040cac3dea860bfddb7cf10f293f8f9a350a668ef58c3771ee68