Module ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore NameLoad For NameStore NameLoad body If NameLoad body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Dict Assign NameStore Str For NameStore NameLoad body If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse If CompareEq NameLoad Str body Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str orelse If CompareEq NameLoad Str body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse If CompareEq NameLoad Str body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse Raise Call NameLoad BinOpAdd Str NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse Raise Call NameLoad BinOpAdd Str NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Str orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore Str orelse If CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse Raise Call NameLoad BinOpAdd Str NameLoad orelse If CompareEq NameLoad Str body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Pass orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str orelse If CompareEq NameLoad Str body If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Break orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareLt Call NameLoad NameLoad Num body Continue If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body If CompareNotEq NameLoad Str body Expr Yield Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad SubscriptLoad NameLoad Index Num If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num orelse Assign NameStore Str orelse If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareNotEq SubscriptLoad NameLoad Index Num NameLoad body If CompareNotEq NameLoad Str body Expr Yield Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Str Assign NameStore ListLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Dict Str Str Str Str ListLoad Str ListLoad Str ListLoad Str Str Str ListLoad Str Str Str attr NameLoad ListLoad SubscriptLoad NameLoad Index Num Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension NameStore NameLoad orelse Pass orelse If CompareEq NameLoad Str body Pass orelse Assign NameStore Call NameLoad NameLoad If CompareNotIn SubscriptLoad NameLoad Index Num NameLoad body If CompareNotEq NameLoad Str body Expr Yield Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad Expr Yield Call NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad ListLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad Str body Expr Yield Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A __future__ unicode_literals N/A N/A N/A StringIO N/A N/A N/A ImportError N/A N/A io StringIO N/A core text_string_to_metric_families N/A N/A text N/A N/A N/A Parse Prometheus text format from a string.

    See text_fd_to_metric_families.
     N/A metric_family N/A text_fd_to_metric_families N/A N/A StringIO StringIO text N/A N/A N/A metric_family N/A _unescape_help N/A N/A text N/A N/A N/A result N/A N/A slash False N/A char text N/A N/A slash N/A N/A N/A char \ N/A N/A N/A N/A result append \ N/A N/A N/A char n N/A N/A N/A N/A result append N/A N/A N/A N/A result append N/A \ char N/A slash False N/A N/A N/A char \ N/A N/A slash True N/A N/A N/A N/A result append char N/A slash N/A N/A N/A N/A result append \ N/A N/A N/A join result N/A _parse_sample N/A N/A text N/A N/A N/A name N/A N/A labelname N/A N/A labelvalue N/A N/A value N/A N/A labels N/A N/A state name N/A char text N/A N/A N/A state name N/A N/A N/A char { N/A N/A state startoflabelname N/A N/A N/A N/A char N/A char N/A N/A state endofname N/A N/A N/A N/A name append char N/A N/A N/A state endofname N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A char { N/A N/A state startoflabelname N/A N/A N/A N/A value append char N/A state value N/A N/A N/A state startoflabelname N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A char } N/A N/A state endoflabels N/A N/A state labelname N/A N/A N/A labelname append char N/A N/A N/A state labelname N/A N/A N/A char = N/A N/A state labelvaluequote N/A N/A N/A N/A char N/A char N/A N/A state labelvalueequals N/A N/A N/A N/A labelname append char N/A N/A N/A state labelvalueequals N/A N/A N/A char = N/A N/A state labelvaluequote N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A ValueError N/A Invalid line:  text N/A N/A N/A state labelvaluequote N/A N/A N/A char " N/A N/A state labelvalue N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A ValueError N/A Invalid line:  text N/A N/A N/A state labelvalue N/A N/A N/A char \ N/A N/A state labelvalueslash N/A N/A N/A char " N/A N/A N/A labels N/A N/A N/A join labelname N/A N/A join labelvalue N/A labelname N/A N/A labelvalue N/A N/A state nextlabel N/A N/A N/A N/A labelvalue append char N/A N/A N/A state labelvalueslash N/A N/A state labelvalue N/A N/A char \ N/A N/A N/A N/A labelvalue append \ N/A N/A N/A char n N/A N/A N/A N/A labelvalue append N/A N/A N/A char " N/A N/A N/A N/A labelvalue append " N/A N/A N/A N/A labelvalue append N/A \ char N/A N/A N/A state nextlabel N/A N/A N/A char , N/A N/A state labelname N/A N/A N/A char } N/A N/A state endoflabels N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A ValueError N/A Invalid line:  text N/A N/A N/A state endoflabels N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A N/A value append char N/A state value N/A N/A N/A state value N/A N/A N/A N/A char N/A char N/A N/A N/A N/A N/A N/A value append char N/A N/A N/A N/A join name labels N/A float N/A N/A join value N/A text_fd_to_metric_families N/A N/A fd N/A N/A N/A Parse Prometheus text format from a file descriptor.

    This is a laxer parser than the main Go parser,
    so successful parsing does not imply that the parsed
    text meets the specification.

    Yields core.Metric's.
     N/A name N/A documentation N/A typ untyped N/A samples N/A N/A allowed_names N/A build_metric N/A N/A name documentation typ samples N/A N/A N/A metric N/A N/A core Metric name documentation typ N/A N/A metric samples samples N/A metric N/A N/A line fd N/A N/A line N/A N/A line strip N/A N/A N/A line startswith # N/A N/A parts N/A N/A line split None 3 N/A N/A N/A len parts 2 N/A N/A N/A N/A N/A parts N/A 1 HELP N/A N/A N/A N/A parts N/A 2 name N/A N/A N/A name N/A N/A N/A N/A build_metric name documentation typ samples N/A name N/A parts N/A 2 N/A typ untyped N/A samples N/A N/A allowed_names N/A N/A parts N/A 2 N/A N/A N/A len parts 4 N/A N/A documentation N/A _unescape_help N/A parts N/A 3 N/A N/A documentation N/A N/A N/A N/A parts N/A 1 TYPE N/A N/A N/A N/A parts N/A 2 name N/A N/A N/A name N/A N/A N/A N/A build_metric name documentation typ samples N/A name N/A parts N/A 2 N/A documentation N/A samples N/A N/A typ N/A parts N/A 3 N/A allowed_names N/A N/A N/A counter gauge summary histogram N/A N/A N/A _count _sum N/A _count _sum _bucket get typ N/A N/A parts N/A 2 N/A allowed_names N/A N/A name n N/A n allowed_names N/A N/A N/A N/A N/A line N/A N/A N/A N/A sample N/A _parse_sample line N/A N/A N/A sample N/A 0 allowed_names N/A N/A N/A name N/A N/A N/A N/A build_metric name documentation typ samples N/A name N/A documentation N/A typ untyped N/A samples N/A N/A allowed_names N/A N/A N/A N/A build_metric N/A sample N/A 0 documentation typ N/A sample N/A N/A N/A N/A samples append sample N/A N/A name N/A N/A N/A N/A build_metric name documentation typ samples N/A