Skip to main content

USNAN SDK

Python SDK for interacting with the USNAN API.

Installation

pip install usnan

Quick Start

import usnan

client = usnan.USNANClient()

# Search public datasets
config = usnan.models.SearchConfig().add_filter('is_knowledgebase', value=True, match_mode='equals')
for dataset in client.datasets.search(config):
    print(dataset)

Authentication

Authenticate with your NMR Hub account to access additional datasets:

# Browser-based login (opens browser, SSO)
client.login()

# Device authorization (for headless/remote environments)
client.login(method='device')

# Direct token (for automation)
client.login(method='token', token='eyJ...')

Your session is saved locally and restored automatically on future runs. Call client.logout() to revoke it.

Documentation

See the full documentation at ReadTheDocs.

Development

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

Metadata

Release files for usnan 0.3

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

Source distribution (sdist)

Source distribution for usnan 0.3
File Size Uploaded
usnan-0.3.tar.gz 24.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for usnan 0.3
File Interpreter ABI Platform
usnan-0.3-py3-none-any.whl Python 3 none any Details

Total release size: 55.0 kB

Release files / usnan-0.3.tar.gz

Download URL usnan-0.3.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9809b8f9818d20257ec436a61ee400158c9a98e50f9c713014fadd052a64c31d
BLAKE2b-256 checksum
How to use checksums
c1598a70289f501908404231fcdc95bf4826d845e3d44587c0d800bbc65e0295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 27, 2026.

Transparency log

Release files / usnan-0.3-py3-none-any.whl

Download URL usnan-0.3-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b055af7e909c459a8c9e55240b96c5b73aa7550e80665d4bb306211670574fc
BLAKE2b-256 checksum
How to use checksums
4312ef05725bbcaeb4a41246cc2873f7a0e23a596eebaf1439ff39c7e4895df9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3 This release

2 release files

0.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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