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

Method __init__

pattern/web/__init__.py:541–546  ·  view source on GitHub ↗

Buffered stream of data from a given URL.

(self, url, delimiter="\n", **kwargs)

Source from the content-addressed store, hash-verified

539class Stream(list):
540
541 def __init__(self, url, delimiter="\n", **kwargs):
542 """ Buffered stream of data from a given URL.
543 """
544 self.socket = URL(url).open(**kwargs)
545 self.buffer = ""
546 self.delimiter = delimiter
547
548 def update(self, bytes=1024):
549 """ Reads a number of bytes from the stream.

Callers

nothing calls this directly

Calls 2

URLClass · 0.85
openMethod · 0.80

Tested by

no test coverage detected