예제 #1
0
파일: __init__.py 프로젝트: paultag/decodex
def iter_streams(input_):
    null = Stream(input_, 'string')
    null.frobber = 'raw'
    yield null

    for frobber in iter_frobbers():
        stream = frobber(null)
        if stream:
            yield stream
예제 #2
0
파일: __init__.py 프로젝트: paultag/decodex
def iter_streams(input_):
    null = Stream(input_, 'string')
    null.frobber = 'raw'
    yield null

    for frobber in iter_frobbers():
        stream = frobber(null)
        if stream:
            yield stream
예제 #3
0
파일: basic.py 프로젝트: paultag/decodex
        def _(stream):
            type_ = 'number'
            things = list(fn(stream))
            if not things:
                return None

            if any((isinstance(x, float) for x in things)):
                type_ = 'float'

            s = Stream(things, type_)
            s.frobber = name
            return s
예제 #4
0
파일: basic.py 프로젝트: paultag/decodex
        def _(stream):
            type_ = 'number'
            things = list(fn(stream))
            if not things:
                return None

            if any((isinstance(x, float) for x in things)):
                type_ = 'float'

            s = Stream(things, type_)
            s.frobber = name
            return s