code stringlengths 3 6.57k |
|---|
from_json(cls, j) |
JsonObject.as_dict(j) |
cls() |
result.apply_json(j) |
from_json_list(cls, l) |
cls.from_json(j) |
as_dict(cls, obj) |
isinstance(obj, dict) |
obj.to_dict() |
__str__(self) |
self.to_json() |
__repr__(self) |
self.__str__() |
CaptureOutput(object) |
CaptureOutput() |
print(c.stdout() |
c.stderr() |
LogStreamIO(io.StringIO) |
write(self, s) |
isinstance(s, str) |
hasattr(s, 'decode') |
s.decode('unicode-escape') |
super(CaptureOutput.LogStreamIO, self) |
write(s) |
__init__(self) |
self.LogStreamIO() |
self.LogStreamIO() |
__enter__(self) |
here (not at top of file) |
self._ident() |
self._set(LocalProxy(self._proxy(sys.stdout, 'stdout') |
LocalProxy(self._proxy(sys.stderr, 'stderr') |
LocalProxy(self._proxy(sys.__stdout__, 'stdout') |
LocalProxy(self._proxy(sys.__stderr__, 'stderr') |
__exit__(self, type, value, traceback) |
self._ident() |
self.CONTEXTS_BY_THREAD.pop(ident, None) |
self._set(self.orig_stdout, self.orig_stderr, self.orig___stdout, self.orig___stderr) |
removed._stdout.flush() |
removed._stderr.flush() |
removed._stdout.getvalue() |
removed._stderr.getvalue() |
removed._stdout.close() |
removed._stderr.close() |
_set(self, out, err, __out, __err) |
_proxy(self, original_stream, type) |
proxy() |
self._ident() |
self.CONTEXTS_BY_THREAD.get(ident) |
_ident(self) |
threading.currentThread() |
stdout(self) |
self._stdout.getvalue() |
hasattr(self._stdout, 'getvalue') |
stderr(self) |
self._stderr.getvalue() |
hasattr(self._stderr, 'getvalue') |
synchronized(lock=None) |
_decorator(wrapped) |
functools.wraps(wrapped) |
_wrapper(*args, **kwargs) |
wrapped(*args, **kwargs) |
is_string(s, include_unicode=True, exclude_binary=False) |
isinstance(s, six.binary_type) |
isinstance(s, str) |
isinstance(s, six.text_type) |
is_string_or_bytes(s) |
is_string(s) |
isinstance(s, six.string_types) |
isinstance(s, bytes) |
is_base64(s) |
is_string(s) |
re.match(regex, s) |
md5(string) |
hashlib.md5() |
m.update(to_bytes(string) |
m.hexdigest() |
in_docker() |
config.in_docker() |
has_docker() |
run('docker ps') |
get_docker_container_names() |
bootstrap.get_docker_container_names() |
is_port_open(port_or_url, http_path=None, expect_success=True, protocols=['tcp']) |
isinstance(protocols, list) |
isinstance(port, six.string_types) |
urlparse(port_or_url) |
closing(socket.socket(socket.AF_INET, nw_protocol) |
sock.settimeout(1) |
dns.resolver.Resolver() |
resolver.query('google.com', 'A') |
len(answers) |
sock.sendto(bytes() |
sock.recvfrom(1024) |
sock.connect_ex((host, port) |
safe_requests.get(url) |
wait_for_port_open(port, http_path=None, expect_success=True, retries=10, sleep_time=0.5) |
available (for a given number of retries) |
check() |
is_port_open(port, http_path=http_path, expect_success=expect_success) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.