MCPcopy Create free account
hub / github.com/FDA/openfda / completely_flatten

Function completely_flatten

scripts/generate_fields_yaml.py:47–63  ·  view source on GitHub ↗

A Flattening function that takes a highly nested dictionary and flattens it into a single depth dictionary with breadcrumb style keys, {a.b.c: val} Please note, this will not work with dictionaries that have lists in them.

(input_data, absolute_key='', sep='.')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

get_exact_fieldsFunction · 0.85
get_schema_fieldsFunction · 0.85
get_mapping_fieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected