def text_string_to_metric_families(text):
    for metric_family in text_fd_to_metric_families(StringIO.StringIO(text)):
      yield metric_family
Parse Prometheus text format from a string.
dataset/ETHPy150Open prometheus/client_python/prometheus_client/parser.py/text_string_to_metric_families