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.31

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.31
File Size Uploaded Provenance Actions
nab_project-0.0.31.tar.gz 627.0 kB With provenance Details for nab_project-0.0.31.tar.gz

Built distribution (wheel)

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

Total release size: 812.5 kB

Release files / nab_project-0.0.31.tar.gz

Download URL nab_project-0.0.31.tar.gz
Size 627.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a17393bf0c9515d3e2204bb47bc1988230d2ed61f5ab31645fbf1b154a321230
BLAKE2b-256 checksum
How to use checksums
a23571d0477e033402860fc6f99ca095edf5af47adcef26dcdf3ec231f0b2a8e
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 Nov 24, 2026.

Transparency log

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

Download URL nab_project-0.0.31-py3-none-any.whl
Size 185.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1abce6bd37bce2b904668af6919675a75467b96c1a2ccbd7c9625cb915099cf2
BLAKE2b-256 checksum
How to use checksums
6b29290daf5e1f7b7c370512afdfb04a34f56f131b7fcdae7e0def84e0d37b3b
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 Nov 24, 2026.

Transparency log

Security for nab-project 0.0.31

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.31.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 Nov 24, 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