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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9809b8f9818d20257ec436a61ee400158c9a98e50f9c713014fadd052a64c31d
|
|
| MD5 |
d3576a3c60fc689008b99af4f43bbdf5
|
|
| BLAKE2b-256 |
c1598a70289f501908404231fcdc95bf4826d845e3d44587c0d800bbc65e0295
|
Provenance
The following attestation bundles were made for usnan-0.3.tar.gz:
Publisher:
manylinux_wheel_builder.yml on NanNMR/PythonSDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
usnan-0.3.tar.gz -
Subject digest:
9809b8f9818d20257ec436a61ee400158c9a98e50f9c713014fadd052a64c31d - Sigstore transparency entry: 1004193790
- Sigstore integration time:
-
Permalink:
NanNMR/PythonSDK@39ae63a1ec6c4b0dac6d404b3090f20544e704c5 -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/NanNMR
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
manylinux_wheel_builder.yml@39ae63a1ec6c4b0dac6d404b3090f20544e704c5 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b055af7e909c459a8c9e55240b96c5b73aa7550e80665d4bb306211670574fc
|
|
| MD5 |
1cc83fbc0b8bf3083435cb28394f1508
|
|
| BLAKE2b-256 |
4312ef05725bbcaeb4a41246cc2873f7a0e23a596eebaf1439ff39c7e4895df9
|
Provenance
The following attestation bundles were made for usnan-0.3-py3-none-any.whl:
Publisher:
manylinux_wheel_builder.yml on NanNMR/PythonSDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
usnan-0.3-py3-none-any.whl -
Subject digest:
1b055af7e909c459a8c9e55240b96c5b73aa7550e80665d4bb306211670574fc - Sigstore transparency entry: 1004193792
- Sigstore integration time:
-
Permalink:
NanNMR/PythonSDK@39ae63a1ec6c4b0dac6d404b3090f20544e704c5 -
Branch / Tag:
refs/tags/v0.3 - Owner: https://github.com/NanNMR
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
manylinux_wheel_builder.yml@39ae63a1ec6c4b0dac6d404b3090f20544e704c5 -
Trigger Event:
push
-
Statement type: