Skip to main content

Python SDK for USNAN API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usnan-0.3.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

usnan-0.3-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file usnan-0.3.tar.gz.

File metadata

  • Download URL: usnan-0.3.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for usnan-0.3.tar.gz
Algorithm Hash digest
SHA256 9809b8f9818d20257ec436a61ee400158c9a98e50f9c713014fadd052a64c31d
MD5 d3576a3c60fc689008b99af4f43bbdf5
BLAKE2b-256 c1598a70289f501908404231fcdc95bf4826d845e3d44587c0d800bbc65e0295

See more details on using hashes here.

Provenance

The following attestation bundles were made for usnan-0.3.tar.gz:

Publisher: manylinux_wheel_builder.yml on NanNMR/PythonSDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file usnan-0.3-py3-none-any.whl.

File metadata

  • Download URL: usnan-0.3-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for usnan-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b055af7e909c459a8c9e55240b96c5b73aa7550e80665d4bb306211670574fc
MD5 1cc83fbc0b8bf3083435cb28394f1508
BLAKE2b-256 4312ef05725bbcaeb4a41246cc2873f7a0e23a596eebaf1439ff39c7e4895df9

See more details on using hashes here.

Provenance

The following attestation bundles were made for usnan-0.3-py3-none-any.whl:

Publisher: manylinux_wheel_builder.yml on NanNMR/PythonSDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page