hatch の API リファレンス
hatch (pypa/hatch) の公開 API 67 件 —— クラス 6、関数 31、メソッド 30。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: pypa/hatch
| 種別 | 件数 |
|---|---|
| クラス | 6 |
| 関数 | 31 |
| メソッド | 30 |
API 一覧
method
backend.src.hatchling.bridge.app.Application.abort(message:str='', code:int=1, **kwargs:Any) -> NoneTerminate the program with the given return code.
method
backend.src.hatchling.bridge.app.Application.display_info(message:str='', **kwargs:Any) -> NoneMeant to be used for messages conveying basic information.
method
backend.src.hatchling.bridge.app.Application.display_warning(message:str='', **kwargs:Any) -> NoneMeant to be used for messages conveying important information.
func
backend.src.hatchling.build.build_editable(wheel_directory:str, config_settings:dict[str, Any] | None=None, metadata_directory:str | None=None) -> strhttps://peps.python.org/pep-0660/#build-editable
func
backend.src.hatchling.build.build_sdist(sdist_directory:str, config_settings:dict[str, Any] | None=None) -> strhttps://peps.python.org/pep-0517/#build-sdist
func
backend.src.hatchling.build.build_wheel(wheel_directory:str, config_settings:dict[str, Any] | None=None, metadata_directory:str | None=None) -> strhttps://peps.python.org/pep-0517/#build-wheel
class
backend.src.hatchling.builders.binary.BinaryBuilderBuild binaries
func
backend.src.hatchling.builders.macos.normalize_macos_version(version:str, *arm:bool, *compat:bool) -> strSet minor version to 0 if major is 11+.
func
backend.src.hatchling.builders.macos.process_macos_plat_tag(plat:str, *compat:bool) -> strProcess the macOS platform tag.
class
backend.src.hatchling.builders.sdist.SdistBuilderBuild an archive of the source files
func
backend.src.hatchling.builders.utils.normalize_artifact_permissions(path:str) -> NoneNormalize the permission bits for artifacts
class
backend.src.hatchling.builders.wheel.WheelBuilderBuild a binary distribution (.whl file)
class
backend.src.hatchling.metadata.core.BuildMetadatahttps://peps.python.org/pep-0517/
class
backend.src.hatchling.metadata.core.CoreMetadatahttps://peps.python.org/pep-0621/
method
backend.src.hatchling.metadata.core.CoreMetadata.classifiers() -> list[str]https://peps.python.org/pep-0621/#classifiers
method
backend.src.hatchling.metadata.core.CoreMetadata.description() -> strhttps://peps.python.org/pep-0621/#description
method
backend.src.hatchling.metadata.core.CoreMetadata.dynamic() -> list[str]https://peps.python.org/pep-0621/#dynamic
method
backend.src.hatchling.metadata.core.CoreMetadata.entry_points() -> dict[str, dict[str, str]]https://peps.python.org/pep-0621/#entry-points
method
backend.src.hatchling.metadata.core.CoreMetadata.gui_scripts() -> dict[str, str]https://peps.python.org/pep-0621/#entry-points
method
backend.src.hatchling.metadata.core.CoreMetadata.import_names() -> list[str] | Nonehttps://peps.python.org/pep-0794/
method
backend.src.hatchling.metadata.core.CoreMetadata.keywords() -> list[str]https://peps.python.org/pep-0621/#keywords
method
backend.src.hatchling.metadata.core.CoreMetadata.license() -> strhttps://peps.python.org/pep-0621/#license
method
backend.src.hatchling.metadata.core.CoreMetadata.license_expression() -> strhttps://peps.python.org/pep-0639/
method
backend.src.hatchling.metadata.core.CoreMetadata.license_files() -> list[str]https://peps.python.org/pep-0639/
method
backend.src.hatchling.metadata.core.CoreMetadata.name() -> strhttps://peps.python.org/pep-0621/#name
method
backend.src.hatchling.metadata.core.CoreMetadata.raw_name() -> strhttps://peps.python.org/pep-0621/#name
method
backend.src.hatchling.metadata.core.CoreMetadata.readme() -> strhttps://peps.python.org/pep-0621/#readme
method
backend.src.hatchling.metadata.core.CoreMetadata.readme_content_type() -> strhttps://peps.python.org/pep-0621/#readme
method
backend.src.hatchling.metadata.core.CoreMetadata.readme_path() -> strhttps://peps.python.org/pep-0621/#readme
method
backend.src.hatchling.metadata.core.CoreMetadata.requires_python() -> strhttps://peps.python.org/pep-0621/#requires-python
method
backend.src.hatchling.metadata.core.CoreMetadata.scripts() -> dict[str, str]https://peps.python.org/pep-0621/#entry-points
method
backend.src.hatchling.metadata.core.CoreMetadata.urls() -> dict[str, str]https://peps.python.org/pep-0621/#urls
method
backend.src.hatchling.metadata.core.CoreMetadata.version() -> strhttps://peps.python.org/pep-0621/#version
func
backend.src.hatchling.metadata.spec.construct_metadata_file_1_2(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0345/
func
backend.src.hatchling.metadata.spec.construct_metadata_file_2_1(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0566/
func
backend.src.hatchling.metadata.spec.construct_metadata_file_2_2(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0643/
func
backend.src.hatchling.metadata.spec.construct_metadata_file_2_3(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0685/
func
backend.src.hatchling.metadata.spec.construct_metadata_file_2_4(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0639/
func
backend.src.hatchling.metadata.spec.construct_metadata_file_2_5(metadata:ProjectMetadata, extra_dependencies:tuple[str] | None=None) -> strhttps://peps.python.org/pep-0794/
class
backend.src.hatchling.version.scheme.standard.StandardSchemeSee https://peps.python.org/pep-0440/
func
src.hatch.cli.check.fmt.fmt(app:Application, *args:tuple[str, ...], *fix:bool, *sync:bool)Verify formatting, using Ruff by default.
func
src.hatch.cli.clean.clean(ctx, location, targets, hooks_only, no_hooks, ext)Remove build artifacts.
func
src.hatch.cli.config.find(app)Show the location of the config file.
func
src.hatch.cli.config.set_value(app, key, value)Assign values to config file entries.
func
src.hatch.cli.config.show(app, all_keys)Show the contents of the config file.
func
src.hatch.cli.config.update(app)Update the config file with any new fields.
func
src.hatch.cli.fmt.fmt(app:Application, *args:tuple[str, ...], *check:bool, *linter:bool, *formatter:bool, *sync:bool)Format and lint source code.
func
src.hatch.cli.project.metadata.metadata(app:Application, field:str | None)Display project metadata.
func
src.hatch.cli.python.find.find(app:Application, *name:str, *parent:bool, *directory:str | None)Locate Python binaries.
func
src.hatch.cli.python.install.install(app:Application, *names:tuple[str, ...], *private:bool, *update:bool, *directory:str | None)Install Python distributions.
func
src.hatch.cli.python.remove.remove(app:Application, *names:tuple[str, ...], *directory:str | None)Remove Python distributions.
func
src.hatch.cli.python.show.show(app:Application, *force_ascii:bool, *directory:str | None)Show the available Python distributions.
func
src.hatch.cli.python.update.update(ctx:click.Context, *names:tuple[str, ...], *directory:str | None)Update Python distributions.
func
src.hatch.cli.run.run(ctx:click.Context, args:tuple[str, ...])Run commands within project environments.
func
src.hatch.cli.self.report.report(app:Application, *no_open:bool) -> NoneGenerate a pre-populated GitHub issue.
func
src.hatch.cli.shell.shell(app:Application, env_name:str | None, name:str, path:str)Enter a shell within a project's environment.
func
src.hatch.cli.status.status(app)Show information about the current environment.
func
src.hatch.cli.version.version(app:Application, *desired_version:str | None, *force:bool)View or set a project's version.
method
src.hatch.project.core.Project.dependency_groups() -> dict[str, Any]https://peps.python.org/pep-0735/
func
src.hatch.project.utils.parse_inline_script_metadata(script:str) -> dict[str, Any] | Nonehttps://peps.python.org/pep-0723/#reference-implementation
method
src.hatch.utils.platform.Platform.default_shell() -> strReturns the default shell of the system.
method
src.hatch.utils.platform.Platform.display_name() -> strOne of the following: - `Linux` - `Windows` - `macOS`
method
src.hatch.utils.platform.Platform.exit_with_command(command:list[str | os.PathLike]) -> NoneRun the given command and exit with its exit code.
method
src.hatch.utils.platform.Platform.home() -> PathThe user's home directory as a path-like object.
method
src.hatch.utils.platform.Platform.macos() -> boolIndicates whether Hatch is running on macOS.
method
src.hatch.utils.platform.Platform.name() -> strOne of the following: - `linux` - `windows` - `macos`
method
src.hatch.utils.platform.Platform.windows() -> boolIndicates whether Hatch is running on Windows.
この情報について
掲載しているシグネチャは pypa/hatch の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。