wcmatch の API リファレンス
wcmatch (facelessuser/wcmatch) の公開 API 100 件 —— クラス 22、関数 37、メソッド 41。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: facelessuser/wcmatch
| 種別 | 件数 |
|---|---|
| クラス | 22 |
| 関数 | 37 |
| メソッド | 41 |
API 一覧
class
hatch_build.CustomMetadataHookOur metadata hook.
class
wcmatch.__meta__.VersionGet the version (PEP 440).
func
wcmatch.__meta__.parse_version(ver:str) -> VersionParse version into a comparable Version tuple.
class
wcmatch._wcmatch.WcMatcherPre-compiled matcher object.
class
wcmatch._wcmatch.WcRegexpFile name match object.
method
wcmatch._wcmatch.WcRegexp.filter(filenames:Iterable[AnyStr | os.PathLike[AnyStr]], root_dir:AnyStr | os.PathLike[AnyStr] | None=None, dir_fd:int | None=None) -> list[AnyStr | os.PathLike[AnyStr]]Filter filenames.
method
wcmatch._wcmatch.WcRegexp.match(filename:AnyStr | os.PathLike[AnyStr], root_dir:AnyStr | os.PathLike[AnyStr] | None=None, dir_fd:int | None=None) -> boolFilter filenames.
class
wcmatch._wcparse.DotExceptionDot exception.
class
wcmatch._wcparse.ExtPromotePromote extended group object.
class
wcmatch._wcparse.InvPlaceholderPlaceholder for inverse pattern !(...).
class
wcmatch._wcparse.PathNameExceptionPath name exception.
class
wcmatch._wcparse.PatternLimitExceptionPattern limit exception.
class
wcmatch._wcparse.WcParseParse the wildcard pattern.
method
wcmatch._wcparse.WcParse.clean_up_inverse(current:list[str], nested:bool=False) -> NoneClean up current.
method
wcmatch._wcparse.WcParse.consume_path_sep(i:util.StringIter) -> NoneConsume any consecutive path separators as they count as one.
method
wcmatch._wcparse.WcParse.parse() -> AnyStrParse pattern list.
method
wcmatch._wcparse.WcParse.parse_extend(c:str, i:util.StringIter, current:list[str], reset_dot:bool=False, parent:str='') -> boolParse extended pattern lists.
method
wcmatch._wcparse.WcParse.reset_dir_track() -> NoneReset directory tracker.
method
wcmatch._wcparse.WcParse.root(pattern:str, current:list[str]) -> NoneStart parsing the pattern.
method
wcmatch._wcparse.WcParse.set_after_start() -> NoneSet tracker for character after the start of a directory.
method
wcmatch._wcparse.WcParse.set_start_dir() -> NoneSet directory start.
method
wcmatch._wcparse.WcParse.update_dir_state() -> NoneUpdate the directory state.
class
wcmatch._wcparse.WcSplitClass that splits patterns on |.
method
wcmatch._wcparse.WcSplit.parse_extend(c:str, i:util.StringIter) -> boolParse extended pattern lists.
method
wcmatch._wcparse.WcSplit.split() -> Iterable[AnyStr]Split the pattern.
func
wcmatch._wcparse.compile(patterns:AnyStr | Sequence[AnyStr], flags:int, limit:int=PATTERN_LIMIT, exclude:AnyStr | Sequence[AnyStr] | None=None) -> WcRegexp[AnyStr]Compile patterns.
func
wcmatch._wcparse.compile_pattern(patterns:AnyStr | Sequence[AnyStr], flags:int, limit:int=PATTERN_LIMIT, exclude:AnyStr | Sequence[AnyStr] | None=None) -> tuple[list[Pattern[AnyStr]], list[Pattern[AnyStr]]]Compile the patterns.
func
wcmatch._wcparse.escape(pattern:AnyStr, unix:bool | None=None, pathname:bool=True) -> AnyStrEscape.
func
wcmatch._wcparse.escape_drive(drive:str, case:bool) -> strEscape drive.
func
wcmatch._wcparse.expand(pattern:AnyStr, flags:int, limit:int) -> Iterable[AnyStr]Expand and normalize.
func
wcmatch._wcparse.expand_braces(patterns:AnyStr, flags:int, limit:int) -> Iterable[AnyStr]Expand braces.
func
wcmatch._wcparse.expand_tilde(pattern:AnyStr, is_unix:bool, flags:int) -> AnyStrExpand tilde.
func
wcmatch._wcparse.get_case(flags:int) -> boolParse flags for case sensitivity settings.
func
wcmatch._wcparse.is_case_sensitive(flags:int) -> boolIs case sensitive.
func
wcmatch._wcparse.is_magic(pattern:AnyStr, flags:int=0) -> boolCheck if pattern is magic.
func
wcmatch._wcparse.is_negative(pattern:AnyStr, flags:int) -> boolCheck if negative pattern.
func
wcmatch._wcparse.is_unix_style(flags:int) -> boolCheck if we should use Unix style.
func
wcmatch._wcparse.iter_patterns(patterns:AnyStr | Sequence[AnyStr]) -> Iterable[AnyStr]Return a simple string sequence.
func
wcmatch._wcparse.no_negate_flags(flags:int) -> intNo negation.
func
wcmatch._wcparse.split(pattern:AnyStr, flags:int) -> Iterable[AnyStr]Split patterns.
func
wcmatch._wcparse.tilde_pos(pattern:AnyStr, flags:int) -> intIs user folder.
func
wcmatch._wcparse.translate(patterns:AnyStr | Sequence[AnyStr], flags:int, limit:int=PATTERN_LIMIT, exclude:AnyStr | Sequence[AnyStr] | None=None) -> tuple[list[AnyStr], list[AnyStr]]Translate patterns.
class
wcmatch.fnmatch.WcMatcherPre-compiled matcher object.
method
wcmatch.fnmatch.WcMatcher.filter(filenames:Iterable[AnyStr]) -> list[AnyStr]Match filename.
method
wcmatch.fnmatch.WcMatcher.match(filename:AnyStr) -> boolMatch filename.
func
wcmatch.fnmatch.compile(patterns:AnyStr | Sequence[AnyStr], flags:int=0, limit:int=_wcparse.PATTERN_LIMIT, exclude:AnyStr | Sequence[AnyStr] | None=None) -> WcMatcher[AnyStr]Pre-compile a matcher object.
func
wcmatch.fnmatch.escape(pattern:AnyStr) -> AnyStrEscape.
func
wcmatch.fnmatch.filter(filenames:Iterable[AnyStr], patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> list[AnyStr]Filter names using pattern.
func
wcmatch.fnmatch.fnmatch(filename:AnyStr, patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> boolCheck if filename matches pattern.
func
wcmatch.fnmatch.is_magic(pattern:AnyStr, *flags:int=0) -> boolCheck if the pattern is likely to be magic.
func
wcmatch.fnmatch.translate(patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> tuple[list[AnyStr], list[AnyStr]]Translate `fnmatch` pattern.
class
wcmatch.glob.GlobGlob patterns.
method
wcmatch.glob.Glob.glob() -> Iterator[AnyStr]Starts off the glob iterator.
class
wcmatch.glob.WcMatcherPre-compiled matcher object.
method
wcmatch.glob.WcMatcher.filter(filenames:Iterable[AnyStr | os.PathLike[AnyStr]], *root_dir:AnyStr | os.PathLike[AnyStr] | None=None, *dir_fd:int | None=None) -> list[AnyStr | os.PathLike[AnyStr]]Match filename.
method
wcmatch.glob.WcMatcher.match(filename:AnyStr | os.PathLike[AnyStr], *root_dir:AnyStr | os.PathLike[AnyStr] | None=None, *dir_fd:int | None=None) -> boolMatch filename.
func
wcmatch.glob.compile(patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> WcMatcher[AnyStr]Pre-compile a matcher object.
func
wcmatch.glob.escape(pattern:AnyStr, unix:bool | None=None) -> AnyStrEscape.
func
wcmatch.glob.glob(patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *root_dir:AnyStr | os.PathLike[AnyStr] | None=None, *dir_fd:int | None=None, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> list[AnyStr]Glob.
func
wcmatch.glob.iglob(patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *root_dir:AnyStr | os.PathLike[AnyStr] | None=None, *dir_fd:int | None=None, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> Iterator[AnyStr]Glob.
func
wcmatch.glob.is_magic(pattern:AnyStr, *flags:int=0) -> boolCheck if the pattern is likely to be magic.
func
wcmatch.glob.translate(patterns:AnyStr | Sequence[AnyStr], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:AnyStr | Sequence[AnyStr] | None=None) -> tuple[list[AnyStr], list[AnyStr]]Translate glob pattern.
method
wcmatch.pathlib.Path.glob(patterns:str | Sequence[str], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:str | Sequence[str] | None=None) -> Iterable['Path']Search the file system.
method
wcmatch.pathlib.Path.rglob(patterns:str | Sequence[str], *flags:int=0, *limit:int=_wcparse.PATTERN_LIMIT, *exclude:str | Sequence[str] | None=None) -> Iterable['Path']Recursive glob.
class
wcmatch.pathlib.PosixPathPosix path.
class
wcmatch.pathlib.PurePathSpecial pure pathlike object that uses our own glob methods.
class
wcmatch.pathlib.PurePosixPathPure Posix path.
class
wcmatch.pathlib.PureWindowsPathPure Windows path.
class
wcmatch.pathlib.WindowsPathWindows path.
func
wcmatch.posix.get_posix_property(value:str, limit_ascii:bool=False) -> strRetrieve the POSIX category.
class
wcmatch.util.ImmutableImmutable.
class
wcmatch.util.StringIterPreprocess replace tokens.
method
wcmatch.util.StringIter.advance(count:int) -> NoneAdvanced the index.
method
wcmatch.util.StringIter.index() -> intGet current index.
method
wcmatch.util.StringIter.match(pattern:Pattern[str], update:bool=True) -> Match[str] | NonePerform regex match at index.
method
wcmatch.util.StringIter.match_next(pattern:Pattern[str], update:bool=True) -> Match[str] | NonePerform regex match at index.
method
wcmatch.util.StringIter.previous() -> strGet previous char.
method
wcmatch.util.StringIter.rewind(count:int) -> NoneRewind index.
func
wcmatch.util.is_case_sensitive() -> boolCheck if case sensitive.
func
wcmatch.util.is_hidden(path:AnyStr) -> boolCheck if file is hidden.
func
wcmatch.util.norm(m:Match[AnyStr]) -> AnyStrNormalize the pattern.
func
wcmatch.util.norm_pattern(pattern:AnyStr, normalize:bool | None, is_raw_chars:bool) -> AnyStrNormalize pattern.
func
wcmatch.util.platform() -> strGet platform.
func
wcmatch.util.warn_deprecated(message:str, stacklevel:int=2) -> NoneWarn deprecated.
class
wcmatch.wcmatch.WcMatchFinds files by wildcard.
method
wcmatch.wcmatch.WcMatch.compare_directory(directory:AnyStr) -> boolCompare folder.
method
wcmatch.wcmatch.WcMatch.compare_file(filename:AnyStr) -> boolCompare filename.
method
wcmatch.wcmatch.WcMatch.get_skipped() -> intGet number of skipped files.
method
wcmatch.wcmatch.WcMatch.imatch() -> Iterator[Any]Run the directory walker as iterator.
method
wcmatch.wcmatch.WcMatch.is_aborted() -> boolCheck if process has been aborted.
method
wcmatch.wcmatch.WcMatch.kill() -> NoneAbort process.
method
wcmatch.wcmatch.WcMatch.match() -> list[Any]Run the directory walker.
method
wcmatch.wcmatch.WcMatch.on_error(base:AnyStr, name:AnyStr) -> AnyOn error.
method
wcmatch.wcmatch.WcMatch.on_init(**kwargs:Any) -> NoneHandle custom initialization.
method
wcmatch.wcmatch.WcMatch.on_match(base:AnyStr, name:AnyStr) -> AnyOn match.
method
wcmatch.wcmatch.WcMatch.on_reset() -> NoneOn reset.
method
wcmatch.wcmatch.WcMatch.on_skip(base:AnyStr, name:AnyStr) -> AnyOn skip.
method
wcmatch.wcmatch.WcMatch.on_validate_directory(base:AnyStr, name:AnyStr) -> boolValidate folder override.
method
wcmatch.wcmatch.WcMatch.on_validate_file(base:AnyStr, name:AnyStr) -> boolValidate file override.
method
wcmatch.wcmatch.WcMatch.reset() -> NoneRevive class from a killed state.
この情報について
掲載しているシグネチャは facelessuser/wcmatch の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。