| Port variant | v14 |
| Summary | Nab package candidate selector (3.14) |
| Package version | 0.0.31 |
| Homepage | https://github.com/notatallshaw/nab |
| Keywords | python |
| Maintainer | Python Automaton |
| License | Not yet specified |
| Other variants | v15 |
| Ravenports | Buildsheet | History |
| Ravensource | Port Directory | History |
| Last modified | 24 NOV 2026, 13:34:26 UTC |
| Port created | 19 AUG 2026, 18:47:48 UTC |
| single | # nab-provider Apply Python packaging rules during dependency resolution. This package supplies candidate versions and their dependency constraints to [`nab-resolver`], including environment markers and build, distribution, and VCS policies. It performs no networking, file access, or subprocess calls. Package listings and metadata arrive through `nab_provider.fetch_port.FetchPort`, an interface implemented by the application using the provider. That application is called the host; `nab-project` supplies it for the nab CLI. `nab_provider.testing` supplies an in-memory implementation for tests. ## When to use it Use `nab-provider` to embed nab's resolution in a host that already owns its networking and caching, keeping [`nab-index`] out of the import graph. Most users want [`nab`] instead. Use `nab_provider.ranges.VersionRange` for root constraints and as the resolver's `range_type`. Pass `root_version="0"` and `format_range=provider.format_range` when constructing the resolver. The API is experimental. Pin an exact version when embedding it. ## Wheel tags `wheel_tag_set(filename)` caches repeated filename queries. `parse_wheel_tag_set(filename)` shares parsing by tag suffix for bulk listings. ## Value records Nab's record constructors declare their fields explicitly. `nab_provider.value` shares value comparison and copying across the provider, index and project layers. Fixed fields use `Final` annotations; assignment is not checked at runtime. `replace()` calls the concrete constructor, including validation and derived fields: ```python from nab_provider.tags import PlatformSpec from nab_provider.value import replace platform = PlatformSpec("linux_x86_64") platform = replace(platform, runs_on_libc=(2, 28)) ``` |
| Build (only) |
python314:dev:std python-pip:single:v14 autoselect-python:single:std |
| Build and Runtime | python314:primary:std |
| Runtime (only) |
python-nab-markersets:single:v14 python-nab-resolver:single:v14 python-packaging:single:v14 python-typing-extensions:single:v14 |
| main | mirror://PYPIWHL/d0/da/53da6633437343cb963a7b8f701efda4e96ac956f5022343e97625af6bfb |
| python-nab-index:v14 | Simple-API client and on-disk cache (3.14) |