Store
Shared storage function for all network builder functions.
All builders must use store_contacts to write to person.properties and person.activity_map. See network_builder_function_requirements.md.
store_contacts(person, contacts, storage_key, activity_config=None)
Write contacts into person.properties[storage_key], accumulating across calls.
contacts: iterable of Person objects to store activity_config: optional dict with 'contact_activity_key' and 'activity_key'. If provided, merges contact.activity_map[contact_activity_key] into person.activity_map[activity_key] for each contact.
Source code in may/social_networks/builder_functions/store.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |