Skip to main content

Fill in missing data that is inherited by a reference field in a flat list of dictionaries without inheritance depth limit.

Project description

InheritsON

Fill in missing data that is inherited by a reference field in a flat list of dictionaries without inheritance depth limit.

Name is a portmanteau of Inheritance and JSON.

Usage

>>> from inheritson import fill
>>> fill([{"id": "parent", "common": "value"}, {"id": "child", "parent_id": "parent"}, {"id": "grandchild", "parent_id": "child"}])
[{'id': 'parent', 'common': 'value'}, {'id': 'child', 'common': 'value', 'parent_id': 'parent'}, {'id': 'grandchild', 'common': 'value', 'parent_id': 'child'}]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inheritson-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inheritson-0.0.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file inheritson-0.0.3.tar.gz.

File metadata

  • Download URL: inheritson-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for inheritson-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bec5b194c7aa0d5589832ebe9a05031f91fd7fa48fc09fc39a34cae19ba2d257
MD5 6c6145af2cc85cc9fe0d34b6892dfc6c
BLAKE2b-256 aba5e37c3558c698ae1ea347e53e7e948d2b9bf8e6ccda14917f352f2a71f6fc

See more details on using hashes here.

File details

Details for the file inheritson-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: inheritson-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for inheritson-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17f141b52a9fe5c403cfefe8d69e8943a4b604a669898ff6685f2a60dd168341
MD5 4dfa88b8ac4a21596054a5add6778d5f
BLAKE2b-256 8ca1f4ee91371a1344e140719c8dc4b668567f3e0b75f52e5a1139eb467bf1f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page