view stubs/rdflib/parser.pyi @ 47:9bd2a537caaa

huge speedup switching from cyclone.httpclient.fetch to treq. 300ms updates become 7ms. maybe it was looking up names or some slow network connect thing before, and now it's reusing a connection. Ignore-this: 745f3d7116702d2dcc57d300631fa052
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 27 May 2019 08:54:23 +0000
parents 4f71d2a7a8d1
children
line wrap: on
line source

# Stubs for rdflib.parser (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any
from io import StringIO as BytesIO

class Parser:
    def __init__(self): ...
    def parse(self, source, sink): ...

class InputSource: # subclass of xmlreader
  ...


class StringInputSource(InputSource):
    def __init__(self, value, system_id=None): ...

class URLInputSource(InputSource):
    url = ...  # type: Any
    content_type = ...  # type: Any
    def __init__(self, system_id=None, format=None): ...

class FileInputSource(InputSource):
    file = ...  # type: Any
    def __init__(self, file): ...