Skip to main content

nab-project

Use nab-project to resolve project dependencies, build wheels from source and write lockfiles. It fetches distributions through nab-index and applies packaging rules through nab-provider. The API is experimental. Pin an exact version when embedding it.

Resolve for the current interpreter

from pathlib import Path

from nab_index.urllib3_async_transport import Urllib3AsyncTransport
from nab_project.inputs import ResolveInputs
from nab_project.resolve import resolve_for_targets
from nab_provider.target import ResolveTarget


def project_versions(path: Path, inputs: ResolveInputs) -> dict[str, str]:
    result = resolve_for_targets(
        path,
        Urllib3AsyncTransport(),
        targets=[ResolveTarget.for_host()],
        inputs=inputs,
    )
    result.raise_for_failure()
    return {
        name: str(version) for name, version in result.target_results[0].pins.items()
    }

Call project_versions(Path("pyproject.toml"), ResolveInputs()) to use PyPI. To supply your own indexes, pass ResolveInputs(indexes=...).

A failed target also produces a result, so call raise_for_failure() before using its pins.

To read Nab's configuration files, also install the matching nab distribution. Import read_pyproject_config and plan_targets from nab.config.model, then call config = read_pyproject_config(path). Pass inputs=config.resolve_inputs() and targets=plan_targets(config) to resolve_for_targets.

For the requirements behind the selected versions, pass include_dependency_requirements=True. Each successful target result then exposes them through dependency_requirements().

Metadata

Release files for nab-project 0.0.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nab-project 0.0.32
File Size Uploaded Provenance Actions
nab_project-0.0.32.tar.gz 695.5 kB With provenance Details for nab_project-0.0.32.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nab-project 0.0.32
File Interpreter ABI Platform Actions
nab_project-0.0.32-py3-none-any.whl Python 3 none any Details for nab_project-0.0.32-py3-none-any.whl

Total release size: 920.6 kB

Release files / nab_project-0.0.32.tar.gz

Download URL nab_project-0.0.32.tar.gz
Size 695.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9f00e1b5da6d5e74c789c5e7e7d85a87d66f8376ade5ff730a491178af998a4b
BLAKE2b-256 checksum
How to use checksums
88f4fbb4106f699e466be48af2d8dfe49fdc795ef8acc408c40d1ab86a47f272
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / nab_project-0.0.32-py3-none-any.whl

Download URL nab_project-0.0.32-py3-none-any.whl
Size 225.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d395f281f61e58a77ba2fbd761308cd2ce04efc4bf4415d35c3bccccdb9ad5b3
BLAKE2b-256 checksum
How to use checksums
257662f31a3b379e82906fc5b5dde7cba1f37a07d84ff8fa6fb5a1d2bdfe5862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for nab-project 0.0.32

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nab_project-0.0.32.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page