python-nab-provider
Port variant v15
Summary Nab package candidate selector (3.15)
Package version 0.0.31
Homepage https://github.com/notatallshaw/nab
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
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
Subpackage Descriptions
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)) ```
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python315:dev:std
python-pip:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Runtime (only) python-nab-markersets:single:v15
python-nab-resolver:single:v15
python-packaging:single:v15
python-typing-extensions:single:v15
Download groups
main mirror://PYPIWHL/d0/da/53da6633437343cb963a7b8f701efda4e96ac956f5022343e97625af6bfb
Distribution File Information
ba6dfbaa0beccf1c9de31b5012d231689b757b21e837584b26cfcb3e25aaca98 231258 python-src/nab_provider-0.0.31-py3-none-any.whl
Ports that require python-nab-provider:v15
python-nab-index:v15 Simple-API client and on-disk cache (3.15)