fspacker.models package

Submodules

fspacker.models.dirs module

class fspacker.models.dirs.Dirs(*, cache: Path = PosixPath('/home/docs/.cache/fspacker'), embed: Path = PosixPath('/home/docs/.cache/fspacker/embed-repo'), libs: Path = PosixPath('/home/docs/.cache/fspacker/libs-repo'), tools: Path = PosixPath('/home/docs/.cache/fspacker/tools'), checksum: str = '')[源代码]

基类:BaseModel

目录配置.

cache: Path
embed: Path
libs: Path
tools: Path
checksum: str
property entries: tuple[Path, Path, Path]

获取所有目录.

返回:

所有目录

返回类型:

tuple[Path, Path, Path]

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

fspacker.models.mode module

class fspacker.models.mode.PackMode(*, archive: bool = False, debug: bool = False, gui: bool = False, offline: bool = False, rebuild: bool = False, recursive: bool = False, simplify: bool = False, use_tk: bool = False)[源代码]

基类:BaseModel

打包模式信息.

archive: bool
debug: bool
gui: bool
offline: bool
rebuild: bool
recursive: bool
simplify: bool
use_tk: bool
reset() None[源代码]

重置打包模式.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

fspacker.models.urls module

class fspacker.models.urls.Urls(*, embed: str = '', pip: str = '')[源代码]

基类:BaseModel

Url配置.

embed: str
pip: str
property fastest_pip_url: str[源代码]

从pip url列表中获取最快的url.

返回:

最快的url

返回类型:

str

property fastest_embed_url: str[源代码]

从embed url列表中获取最快的url.

返回:

最快的url

返回类型:

str

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Module contents