Skip to content

Commit

Permalink
add or update __all__ variable in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 17, 2025
1 parent 66795d0 commit f7e0013
Show file tree
Hide file tree
Showing 60 changed files with 124 additions and 5 deletions.
1 change: 1 addition & 0 deletions pyglossary/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"TRACE",
"StdLogHandler",
"format_exception",
"trace",
]

TRACE = 5
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/aard2_slob/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
t_uri,
)

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/aard2_slob/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
t_uri,
)

__all__ = ["Writer"]


class Writer:
depends = {
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/almaany/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
1 change: 1 addition & 0 deletions pyglossary/plugins/appledict/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]

sys.setrecursionlimit(10000)

Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/appledict_bin/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
from pyglossary.core import exc_note, log, pip
from pyglossary.io_utils import nullBinaryIO

__all__ = ["Reader"]


class Reader:
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ayandict_sqlite/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
9 changes: 5 additions & 4 deletions pyglossary/plugins/ayandict_sqlite/writer.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

from typing import (
TYPE_CHECKING,
)
from typing import TYPE_CHECKING

from pyglossary.core import log

if TYPE_CHECKING:
import sqlite3
Expand All @@ -12,7 +12,8 @@
from pyglossary.glossary_types import EntryType, WriterGlossaryType
from pyglossary.xdxf.transform import XdxfTransformer

from pyglossary.core import log

__all__ = ["Writer"]


class Writer:
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/cc_kedict/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from pyglossary.core import exc_note, log, pip
from pyglossary.text_reader import TextGlossaryReader

__all__ = ["Reader"]


class YamlReader(TextGlossaryReader):
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/crawler_dir/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/crawler_dir/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
if TYPE_CHECKING:
from pyglossary.glossary_types import WriterGlossaryType

__all__ = ["Writer"]


class Writer:
_compression: str = ""
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/csv_plugin/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/csv_plugin/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class Writer:
compressions = stdCompressions
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dicformids/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
1 change: 1 addition & 0 deletions pyglossary/plugins/dicformids/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]

PROP_TEMPLATE = """#DictionaryForMIDs property file
infoText={name}, author: {author}
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dict_cc/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

from pyglossary.core import log

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dict_cc_split/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

from pyglossary.core import log

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dict_org/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dict_org/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


def installToDictd(filename: str, dictzip: bool) -> None:
"""Filename is without extension (neither .index or .dict or .dict.dz)."""
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dict_org_source/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class Writer:
_remove_html_all: bool = True
Expand Down
3 changes: 3 additions & 0 deletions pyglossary/plugins/dictunformat/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def unescapeDefi(defi: str) -> str:
return defi


__all__ = ["Reader"]


class Reader(TextGlossaryReader):
useByteProgress = True
_headword_separator = "; "
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/digitalnk/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/dikt_json/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class Writer:
_encoding: str = "utf-8"
Expand Down
3 changes: 3 additions & 0 deletions pyglossary/plugins/dsl/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType


__all__ = ["Reader"]

htmlEntityPattern = re.compile(r"&#?\w+;")


Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ebook_epub2/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
if TYPE_CHECKING:
from pyglossary.glossary_types import WriterGlossaryType

__all__ = ["Writer"]


def newUUID() -> str:
import uuid
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ebook_kobo/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


def is_cyrillic_char(c: str) -> bool:
# U+0400 - U+04FF: Cyrillic
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ebook_kobo_dictfile/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
if TYPE_CHECKING:
from pyglossary.glossary_types import ReaderGlossaryType

__all__ = ["Reader"]


class Reader(TextGlossaryReader):
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ebook_kobo_dictfile/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


def fixWord(word: str) -> str:
return word.replace("\n", " ")
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/ebook_mobi/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class GroupStateBySize:
def __init__(self, writer: Writer) -> None:
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/edict2/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/edlin/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/edlin/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


def makeDir(direc: str) -> None:
if not isdir(direc):
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/gettext_po/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/gettext_po/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class Writer:
depends = {
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/html_dir/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
unescapeNTB,
)

__all__ = ["Writer"]

nbsp = "\xa0"
# nbsp = " "

Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/info_plugin/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
ReaderGlossaryType,
)

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/jmdict/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
from pyglossary.core import exc_note, pip
from pyglossary.io_utils import nullBinaryIO

__all__ = ["Reader"]


class Reader:
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/jmnedict/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
from pyglossary.core import exc_note, pip
from pyglossary.io_utils import nullBinaryIO

__all__ = ["Reader"]


class Reader:
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/json_plugin/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
WriterGlossaryType,
)

__all__ = ["Writer"]


class Writer:
_encoding: str = "utf-8"
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/lingoes_ldf/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from pyglossary.text_reader import TextGlossaryReader, nextBlockResultType
from pyglossary.text_utils import splitByBar

__all__ = ["Reader"]


class Reader(TextGlossaryReader):
useByteProgress = True
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/lingoes_ldf/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

from pyglossary.glossary_types import EntryType, WriterGlossaryType

__all__ = ["Writer"]


class Writer:
compressions = stdCompressions
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/makindo_medical/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

from pyglossary.glossary_types import EntryType, ReaderGlossaryType

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
2 changes: 2 additions & 0 deletions pyglossary/plugins/octopus_mdict_new/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
from pyglossary.core import log
from pyglossary.text_utils import toStr

__all__ = ["Reader"]


class Reader:
useByteProgress = False
Expand Down
Loading

0 comments on commit f7e0013

Please sign in to comment.