Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg body Assign AttributeStore NameLoad attr ListComp IfExp Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareGt NameLoad Num body While CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Expr Yield NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Assign NameStore BinOpSub NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Break orelse For NameStore AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults vararg body Return Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore TupleLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assert NameLoad Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Dict For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Yield Call AttributeLoad NameLoad attr NameLoad orelse Assert Call NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Break Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Return Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A io types serializable util none_or element_iterator ElementIterator errors MalformedXML namespace Namespace page Page ConcatinatingTextReader N/A N/A io TextIOBase N/A __init__ N/A N/A self N/A items N/A N/A N/A self items N/A N/A N/A isinstance i str N/A N/A io StringIO i i N/A i items N/A read N/A N/A self size N/A -1 N/A N/A N/A N/A join N/A N/A self _read size N/A readline N/A N/A self N/A N/A N/A N/A N/A len N/A self items 0 N/A N/A line N/A N/A N/A N/A self items N/A 0 readline N/A N/A line N/A N/A N/A N/A N/A self items pop 0 N/A N/A line N/A line N/A _read N/A N/A self size N/A N/A N/A N/A size 0 N/A N/A N/A N/A len N/A self items 0 N/A N/A byte_vals N/A N/A N/A N/A self items N/A 0 read size N/A N/A byte_vals N/A N/A N/A len byte_vals size N/A N/A size N/A size N/A len byte_vals N/A N/A N/A N/A self items pop 0 N/A N/A N/A N/A item N/A self items N/A N/A N/A N/A N/A item read N/A N/A concat N/A N/A N/A stream_items N/A N/A N/A ConcatinatingTextReader stream_items N/A Iterator N/A N/A serializable Type N/A N/A 
    XML Dump Iterator. Dump file meta data and a
    :class:`~mw.xml_dump.Page` iterator.  Instances of this class can be
    called as an iterator directly.  E.g.::

        from mw.xml_dump import Iterator

        # Construct dump file iterator
        dump = Iterator.from_file(open("example/dump.xml"))

        # Iterate through pages
        for page in dump:

            # Iterate through a page's revisions
            for revision in page:

                print(revision.id)

     N/A __slots__ N/A site_name base generator case namespaces __pages __init__ N/A N/A self site_name dbname base generator case namespaces pages N/A None None None None None None None N/A N/A N/A self site_name N/A none_or site_name str N/A 
        The name of the site. : str | `None` (if not specified in the XML)
         N/A N/A self dbname N/A none_or dbname str N/A 
        The database name of the site. : str | `None` (if not specified in the
        XML)
         N/A N/A self base N/A none_or base str N/A 
        TODO: ??? : str | `None` (if not specified in the XML)
         N/A N/A self generator N/A none_or generator str N/A 
        TODO: ??? : str | `None` (if not specified in the XML)
         N/A N/A self case N/A none_or case str N/A 
        TODO: ??? : str | `None` (if not specified in the XML)
         N/A N/A self namespaces N/A none_or namespaces list N/A 
        A list of :class:`mw.Namespace` | `None` (if not specified in the XML)
         N/A N/A self __pages pages N/A __iter__ N/A N/A self N/A N/A N/A N/A self __pages N/A __next__ N/A N/A self N/A N/A N/A N/A next N/A self __pages N/A load_namespaces N/A N/A cls element N/A N/A N/A namespaces N/A N/A sub_element element N/A N/A tag N/A sub_element tag N/A N/A tag namespace N/A N/A namespace N/A N/A Namespace from_element sub_element N/A N/A N/A namespaces append namespace N/A N/A False This should never happen N/A namespaces N/A classmethod load_site_info N/A N/A cls element N/A N/A N/A site_name None N/A dbname None N/A base None N/A generator None N/A case None N/A namespaces N/A N/A sub_element element N/A N/A N/A N/A sub_element tag sitename N/A N/A site_name N/A sub_element text N/A N/A N/A sub_element tag dbname N/A N/A dbname N/A sub_element text N/A N/A N/A N/A sub_element tag base N/A N/A base N/A sub_element text N/A N/A N/A N/A sub_element tag generator N/A N/A generator N/A sub_element text N/A N/A N/A N/A sub_element tag case N/A N/A case N/A sub_element text N/A N/A N/A N/A sub_element tag namespaces N/A N/A namespaces N/A N/A cls load_namespaces sub_element N/A N/A site_name dbname base generator case namespaces N/A classmethod load_pages N/A N/A cls element N/A N/A N/A sub_element element N/A N/A tag N/A sub_element tag N/A N/A tag page N/A N/A N/A N/A N/A Page from_element sub_element N/A N/A N/A MalformedXML N/A Expected to see 'page'.   N/A N/A Instead saw '{0}' format tag N/A classmethod from_element N/A N/A cls element N/A N/A N/A site_name None N/A base None N/A generator None N/A case None N/A namespaces None N/A sub_element element N/A N/A tag N/A sub_element tag N/A N/A tag siteinfo N/A N/A N/A site_name dbname base generator case namespaces N/A N/A cls load_site_info sub_element N/A N/A pages N/A N/A cls load_pages element N/A N/A cls site_name dbname base generator case namespaces pages N/A classmethod from_file N/A N/A cls f N/A N/A N/A element N/A N/A ElementIterator from_file f N/A N/A N/A element tag mediawiki N/A N/A N/A cls from_element element N/A classmethod from_string N/A N/A cls string N/A N/A N/A f N/A N/A io StringIO string N/A element N/A N/A ElementIterator from_file f N/A N/A N/A element tag mediawiki N/A N/A N/A cls from_element element N/A classmethod from_page_xml N/A N/A cls page_xml N/A N/A N/A header 
        <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.5/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.5/
                     http://www.mediawiki.org/xml/export-0.5.xsd" version="0.5"
                   xml:lang="en">
        <siteinfo>
            <namespaces>
            </namespaces>
        </siteinfo>
         N/A footer </mediawiki> N/A N/A N/A cls from_file N/A concat header page_xml footer N/A classmethod N/A