def text_string_to_metric_families(text: str) -> Iterable[Metric]:
    """Parse Prometheus text format from a unicode string.

    See text_fd_to_metric_families.
    """
    yield from text_fd_to_metric_families(StringIO.StringIO(text))
Parse Prometheus text format from a unicode string.

See text_fd_to_metric_families.
prometheus_client/parser.py