universal_pathlib の API リファレンス
universal_pathlib (fsspec/universal_pathlib) の公開 API 72 件 —— クラス 24、関数 2、メソッド 46。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: fsspec/universal_pathlib
| 種別 | 件数 |
|---|---|
| クラス | 24 |
| 関数 | 2 |
| メソッド | 46 |
API 一覧
class
upath._chain.Chainholds current chain segments
method
upath._chain.Chain.nest() -> ChainSegmentreturn a nested target_* structure
class
upath._chain.FSSpecChainParserparse an fsspec chained urlpath
method
upath._chain.FSSpecChainParser.chain(segments:Sequence[ChainSegment]) -> tuple[str, dict[str, Any]]returns a chained urlpath from the segments
class
upath._flavour.LazyFlavourDescriptordescriptor to lazily get the flavour for a given protocol
class
upath._flavour_sources.FileSystemFlavourBasebase class for the fsspec flavours
class
upath._info.UPathInfoPath info for UPath objects.
func
upath._protocol.compatible_protocol(protocol:str, *args:JoinablePathLike) -> boolcheck if UPath protocols are compatible
func
upath._protocol.get_upath_protocol(pth:JoinablePathLike, *protocol:str | None=None, *storage_options:dict[str, Any] | None=None) -> strreturn the filesystem spec protocol
class
upath._stat.UPathStatResultA stat_result compatible class wrapping fsspec info dicts.
method
upath._stat.UPathStatResult.as_info() -> Mapping[str, Any]Return the fsspec info dict.
method
upath._stat.UPathStatResult.count(value:int) -> intthe sequence interface count method.
method
upath._stat.UPathStatResult.from_info(info:Mapping[str, Any]) -> UPathStatResultCreate a UPathStatResult from a fsspec info dict.
method
upath._stat.UPathStatResult.index(value:int, start:int=0, stop:int | None=None) -> intthe sequence interface index method.
method
upath._stat.UPathStatResult.st_atime() -> int | floattime of last access
method
upath._stat.UPathStatResult.st_atime_ns() -> inttime of last access in nanoseconds
method
upath._stat.UPathStatResult.st_birthtime() -> int | floattime of creation
method
upath._stat.UPathStatResult.st_ctime() -> int | floattime of last change
method
upath._stat.UPathStatResult.st_ctime_ns() -> inttime of last change in nanoseconds
method
upath._stat.UPathStatResult.st_dev() -> intdevice
method
upath._stat.UPathStatResult.st_gid() -> intgroup ID of owner
method
upath._stat.UPathStatResult.st_ino() -> intinode
method
upath._stat.UPathStatResult.st_mode() -> intprotection bits
method
upath._stat.UPathStatResult.st_mtime() -> int | floattime of last modification
method
upath._stat.UPathStatResult.st_mtime_ns() -> inttime of last modification in nanoseconds
method
upath._stat.UPathStatResult.st_nlink() -> intnumber of hard links
method
upath._stat.UPathStatResult.st_size() -> inttotal size, in bytes
method
upath._stat.UPathStatResult.st_uid() -> intuser ID of owner
class
upath.core.UPathBase class for pathlike paths backed by an fsspec filesystem.
method
upath.core.UPath.anchor() -> strThe concatenation of the drive and root or an empty string.
method
upath.core.UPath.as_uri() -> strReturn the string representation of the path as a URI.
method
upath.core.UPath.drive() -> strThe drive prefix (letter or UNC path), if any.
method
upath.core.UPath.exists(*follow_symlinks:bool=True) -> boolWhether this path exists.
method
upath.core.UPath.expanduser() -> SelfReturn a new path with expanded `~` constructs.
method
upath.core.UPath.full_match(pattern:str | SupportsPathLike, *case_sensitive:bool | None=None) -> boolMatch this path against the provided glob-style pattern.
method
upath.core.UPath.is_block_device() -> boolWhether this path is a block device.
method
upath.core.UPath.is_char_device() -> boolWhether this path is a character device.
method
upath.core.UPath.is_dir(*follow_symlinks:bool=True) -> boolWhether this path is a directory.
method
upath.core.UPath.is_fifo() -> boolWhether this path is a FIFO (named pipe).
method
upath.core.UPath.is_file(*follow_symlinks:bool=True) -> boolWhether this path is a regular file.
method
upath.core.UPath.is_junction() -> boolWhether this path is a junction.
method
upath.core.UPath.is_relative_to(other:Self | str, *_deprecated:Any) -> boolReturn True if the path is relative to another path identified.
method
upath.core.UPath.is_reserved() -> boolWhether this path is reserved under Windows.
method
upath.core.UPath.is_socket() -> boolWhether this path is a socket.
method
upath.core.UPath.is_symlink() -> boolWhether this path is a symbolic link.
method
upath.core.UPath.iterdir() -> Iterator[Self]Yield path objects of the directory contents.
method
upath.core.UPath.mkdir(mode:int=511, parents:bool=False, exist_ok:bool=False) -> NoneCreate a new directory at this given path.
method
upath.core.UPath.parent() -> SelfThe logical parent of the path.
method
upath.core.UPath.rename(target:WritablePathLike, *recursive:bool=UNSET_DEFAULT, *maxdepth:int | None=UNSET_DEFAULT, **kwargs:Any) -> SelfRename this file or directory to the given target.
method
upath.core.UPath.rmdir(recursive:bool=True) -> NoneRemove this directory.
method
upath.core.UPath.root() -> strThe root of the path, if any.
method
upath.core.UPath.touch(mode:int=438, exist_ok:bool=True) -> NoneCreate this file with the given access mode, if it doesn't exist.
method
upath.core.UPath.unlink(missing_ok:bool=False) -> NoneRemove this file or link.
method
upath.core.UPath.with_name(name:str) -> SelfReturn a new path with the file name changed.
method
upath.core.UPath.with_segments(*pathsegments:JoinablePathLike) -> SelfConstruct a new path object from any number of path-like objects.
class
upath.implementations.github.GitHubPathGitHubPath supporting the fsspec.GitHubFileSystem
class
upath.types.StatResultTypeduck-type for os.stat_result
class
upath.types.UPathParserduck-type for upath.core.UPathParser
class
upath.types.storage_options.DataStorageOptionsStorage options for Data URIs filesystem
class
upath.types.storage_options.FTPStorageOptionsStorage options for FTP filesystem
class
upath.types.storage_options.GCSStorageOptionsStorage options for Google Cloud Storage
class
upath.types.storage_options.GitHubStorageOptionsStorage options for GitHub repository filesystem
class
upath.types.storage_options.HTTPStorageOptionsStorage options for HTTP(S) filesystem
class
upath.types.storage_options.HfStorageOptionsStorage options for Hugging face filesystem
class
upath.types.storage_options.MemoryStorageOptionsStorage options for memory filesystem
class
upath.types.storage_options.S3StorageOptionsStorage options for AWS S3 and S3-compatible services
class
upath.types.storage_options.SFTPStorageOptionsStorage options for SFTP/SSH filesystem
class
upath.types.storage_options.SMBStorageOptionsStorage options for SMB/Windows/Samba network shares
class
upath.types.storage_options.SimpleCacheStorageOptionsStorage options for SimpleCache
class
upath.types.storage_options.TarStorageOptionsStorage options for TAR archive filesystem (read-only)
class
upath.types.storage_options.WebdavStorageOptionsStorage options for WebDAV filesystem
class
upath.types.storage_options.ZipStorageOptionsStorage options for ZIP archive filesystem
この情報について
掲載しているシグネチャは fsspec/universal_pathlib の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。