Caution
This API is not finalized, and may change in a patch version.
unearth.evaluator
#
Evaluate the links based on the given environment.
- class unearth.evaluator.Evaluator(package_name: str, target_python: ~unearth.evaluator.TargetPython = <factory>, ignore_compatibility: bool = False, allow_yanked: bool = False, format_control: ~unearth.evaluator.FormatControl = <factory>, exclude_newer_than: ~datetime.datetime | None = None)#
Evaluate the links based on the given environment.
- Parameters:
package_name – The links must match the package name
target_python – The links must match the target Python
ignore_compatibility – Whether to ignore the compatibility check
allow_yanked – Whether to allow yanked candidates
format_control – Format control flags
exclude_newer_than – Exclude the candidates newer than this date
- class unearth.evaluator.Package(name: str, version: str | None, link: Link)#
A package instance has a name, version, and link that can be downloaded or unpacked.
- link#
The link to the package.
- Type:
- class unearth.evaluator.TargetPython(py_ver: tuple[int, ...] | None = None, abis: list[str] | None = None, impl: str | None = None, platforms: list[str] | None = None)#
Target Python to get the candidates.