# Path: smarkets/streaming_api/seto.py

# 
# Path: smarkets/string.py
# def camel_case_to_underscores(name):
#     return _camel_case_re.sub(r'_\1', name).lower().strip('_')


from smarkets.streaming_api import seto
from smarkets.string import camel_case_to_underscores
from __future__ import absolute_import, division, print_function, unicode_literals


__all__ = ('set_payload_message',)


def set_payload_message(payload, message):
    underscore_form = camel_case_to_underscores(type(message).__name__)

# Path: smarkets/streaming_api/seto.py

# 
# Path: smarkets/string.py
# def camel_case_to_underscores(name):
#     return _camel_case_re.sub(r'_\1', name).lower().strip('_')


# Path: smarkets/streaming_api/utils.py
from smarkets.streaming_api import seto
from smarkets.string import camel_case_to_underscores

from __future__ import absolute_import, division, print_function, unicode_literals


__all__ = ('set_payload_message',)


def set_payload_message(payload, message):
    underscore_form = camel_case_to_underscores(type(message).__name__)

    payload_type = getattr(seto, 'PAYLOAD_' + underscore_form.upper())