MCPcopy Index your code
hub / github.com/clips/pattern / stream

Function stream

pattern/web/__init__.py:574–579  ·  view source on GitHub ↗

Returns a new Stream with the given parse method.

(url, delimiter="\n", parse=lambda data: data, **kwargs)

Source from the content-addressed store, hash-verified

572 list.__init__(self, [])
573
574def stream(url, delimiter="\n", parse=lambda data: data, **kwargs):
575 """ Returns a new Stream with the given parse method.
576 """
577 stream = Stream(url, delimiter, **kwargs)
578 bind(stream, "parse", lambda stream, data: parse(data))
579 return stream
580
581#--- FIND URLs -------------------------------------------------------------------------------------
582# Functions for parsing URL's and e-mail adresses from strings.

Callers

nothing calls this directly

Calls 3

StreamClass · 0.85
bindFunction · 0.85
parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…