PF — Package Floor
English | 简体中文
Find verified lower bounds for a Python package's direct dependencies.
What it does
PF discovers candidate versions in isolated environments. search optionally captures a ty static baseline from the highest versions your declarations allow, then runs the project's full test command. Compatibility conclusions come only from that dynamic evidence; ty may choose a later probe but cannot reject a candidate. It records an explainable, verified exact dependency vector. smoke and check run the same verifier without ty.
The search unit is one installable package and one compatibility cell: exact uv target triple, CPython minor, and extra surface. On a frozen candidate snapshot, PF returns a coordinate-minimal vector that passed full tests. It does not claim a global minimum over the Cartesian product of dependencies, and it does not prove that unprobed versions or other combinations work. The product contract is D001.
For admitted resolution and installation requests, an unattributed normal nonzero exit rejects that attempt, including failures inside a build backend. It does not prove a dependency conflict or a repeatable failure. A backend can report network or permission problems this way, so false rejections may raise the reported floor, miss feasible vectors, or leave no result. Timeouts, abnormal terminals and directly observed external or consistency failures remain indeterminate. Final results still require actual resolution, installation, graph checks and a full verifier PASS; PF does not add retries or promise reproducibility from one observation.
Installation
uv tool install package-floor
pip install package-floor also works. The CLI name is pf. From a clone, uv run pf uses the local tree.
Quick Start
The target project needs static project.dependencies (and optional-dependencies, if used). Test dependency groups are optional: omitting test-group selects dev, then test, from the workspace root or selected member. If neither exists, the group is empty. An explicit name selects only that group; a missing name also means an empty group. The default test command is pytest; PF does not install it automatically. For example, provide the test tools with:
[dependency-groups]
test = ["pytest"]
Then:
pf smoke
pf search
pf apply
smoke checks a fresh install at the newest allowed versions. search writes package-floor.json. apply updates the project's requirement floors from that report when authorization succeeds. After apply, check is the everyday command: it verifies the current declarations and does not require a report or Git.
Commands
| Command | What it does |
|---|---|
pf smoke |
Fresh-install at newest allowed versions and run the full tests. Does not run ty, search, or write a report. |
pf check |
Verify the lower bounds the project already declares. Does not require a prior search or apply, a report, or Git. Does not run ty, search, or write a report. |
pf search |
Find verified floors and write package-floor.json. Never edits project metadata. |
pf explain |
Read the report and show floors, coverage, and apply blockers. |
pf apply |
Edit project metadata from an authorized report. --force only waives source-layer drift. |
pf minimize |
Run search, then the default apply. |
pf diagnose FAILURE_ID |
Explain one recorded rejection or indeterminate result. Offline; does not replay. |
pf merge REPORT ... --output PATH |
Combine compatible reports produced on different hosts. |
Onboarding: pf smoke → pf search → pf explain → pf apply. Steady state: pf check. Use pf minimize to search and apply in one step. After a failed check, or when you want new floors, run pf search → pf apply again.
Requirements
- Omit
--packageto select the installable workspace root. An explicit value is a canonical distribution name of one workspace member, not a path. - Each process only runs the target that matches the current host. Merge other hosts with
pf merge. When this host succeeds and the only gaps are other hosts,pf searchexits 0 with an incomplete report so CI can collect artifacts. searchwritespackage-floor.json.applydoes not re-resolve dependencies or reruntyor tests.
Configuration
Settings merge from the workspace root's [tool.pf] into the selected member's own [tool.pf];
explicit CLI flags override that run. For example:
[tool.pf]
test-command = ["pytest"]
search-resolution = "patch"
max-cells = 4
[tool.pf.search-space-defaults]
with-lower-bound = "majors[declaration-1:]"
without-lower-bound = "majors[baseline-2:]"
This is a configuration example, not a complete defaults table. See
D001 configuration for groups, Cells, concurrency, timeouts and layer merging;
see D037 candidate and search policy for spaces,
conditional defaults, per-dependency overrides and exact baseline artifacts.
search-resolution controls sampling within the chosen space; a verified floor remains an exact version.
A self-reference such as requests[socks] in the test group makes socks required in every Cell.
Extra exploration is added to that required surface. A Cell without active external test dependencies
installs the project plan directly and still runs the configured verifier. Changing the test command or
harness changes the validation contract and can change the resulting floor; see
D001 validation.
Pinned tools
Released PF pins uv 0.12.5 and ty 0.0.74. The resolver protocol accepts only that uv version; other versions fail closed. Upgrading either tool requires re-qualification before the pin changes.
Documentation
- D001 — product and command contract: floors, commands, configuration, reports, and exit codes
- Engineering docs index: contract ownership and layout
- This repository's own
[tool.pf] test-commandis a targeted-runtime contract: in-process public interfaces only. Real uv/ty/CLI and qualification runs live in CI test lanes. An existingpackage-floor.jsonproduced under a wider historicalCis not a floor relative to the current command; see tests/README.md.
License
Apache License 2.0. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file package_floor-0.4.0.tar.gz.
File metadata
- Download URL: package_floor-0.4.0.tar.gz
- Upload date:
- Size: 251.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68d21e0e512f80df9eaf9787cbf0eb05bc1bbce79e31870ac4ca723f8f4ba392
|
|
| MD5 |
5c686c82de0c2d70fad7b124c5fcea8c
|
|
| BLAKE2b-256 |
bb57788d8b12173693102230c61d3947c868a57dc23f946e8bf61833994db425
|
Provenance
The following attestation bundles were made for package_floor-0.4.0.tar.gz:
Publisher:
publish.yml on BigTailFox/pf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
package_floor-0.4.0.tar.gz -
Subject digest:
68d21e0e512f80df9eaf9787cbf0eb05bc1bbce79e31870ac4ca723f8f4ba392 - Sigstore transparency entry: 2791691405
- Sigstore integration time:
-
Permalink:
BigTailFox/pf@0b2d14d59dfdc04f31229e832e5908e4aca76948 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/BigTailFox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b2d14d59dfdc04f31229e832e5908e4aca76948 -
Trigger Event:
release
-
Statement type:
File details
Details for the file package_floor-0.4.0-py3-none-any.whl.
File metadata
- Download URL: package_floor-0.4.0-py3-none-any.whl
- Upload date:
- Size: 293.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
149eed504166fa7f11a464c6d7ba9e3f21aada2181d912a611e32405f39a08fc
|
|
| MD5 |
96b2140280f8c356c1c11f9c8ab13e8a
|
|
| BLAKE2b-256 |
77e78dd39633fb706817174d2cc25dad600031396c9cd9e373198dfe8d40a1b9
|
Provenance
The following attestation bundles were made for package_floor-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on BigTailFox/pf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
package_floor-0.4.0-py3-none-any.whl -
Subject digest:
149eed504166fa7f11a464c6d7ba9e3f21aada2181d912a611e32405f39a08fc - Sigstore transparency entry: 2791691432
- Sigstore integration time:
-
Permalink:
BigTailFox/pf@0b2d14d59dfdc04f31229e832e5908e4aca76948 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/BigTailFox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0b2d14d59dfdc04f31229e832e5908e4aca76948 -
Trigger Event:
release
-
Statement type: