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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inheritson-0.0.1.tar.gz.
File metadata
- Download URL: inheritson-0.0.1.tar.gz
- Upload date:
- Size: 2.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e823ae1a450259130f0de088d790db52c4465553f6e07a2e6dc20b95aac26dcd
|
|
| MD5 |
1e4aceeb27cf980c4ae4c9f7ff27c7ac
|
|
| BLAKE2b-256 |
4642fc36bea4804ee927cbd1a6e5a62f189039eff9916937c650242198501523
|
File details
Details for the file inheritson-0.0.1-py3-none-any.whl.
File metadata
- Download URL: inheritson-0.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c8a0fc4c530c0ea8645d7a2627dc0b627b60cb3bec4f2de682db3c2a88e2a72
|
|
| MD5 |
a14989da478f0f5251ddbebfa284c8fa
|
|
| BLAKE2b-256 |
71b5fa3577783c052115fadcab303a54ff1f2c3d8d517dd3be3623706be1351f
|