Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Nomad Media Python SDK

Official Python SDK for the Nomad Media API.

PyPI License: MIT

Beta. The 2026.9 line is a pre-release, so pip skips it unless you ask for it. Report problems.

Install

pip install --pre nomad-media-pip

Requires Python 3.12 or higher.

Quick start

from nomad_media_pip.src.nomad_sdk import Nomad_SDK

sdk = Nomad_SDK({
    "serviceApiUrl": "https://your-instance.demos.media",
    "username": "you@example.com",
    "password": "your-password",   # or "apiKey"
    "apiType": "admin"             # "admin" or "portal"
})

# The SDK logs in automatically on the first call
channels = sdk.get_live_channels()

Failed calls raise NomadApiException, which carries the HTTP status_code:

from nomad_media_pip.src.exceptions.sdk_exceptions import NomadApiException

try:
    sdk.get_asset(asset_id)
except NomadApiException as err:
    print(err.status_code, err)

Uploads send the file in parts and return the new asset id:

asset_id = sdk.upload_asset(None, None, None, "replace", "./video.mp4", parent_id=folder_id)

For large files, pass max_workers, part_confirmation or on_progress as keyword arguments.

Upgrading from 0.1.x

  • Failed calls raise. Earlier versions logged the error and returned None. Catch NomadApiException. upload_asset and upload_related_asset raise too, after cancelling the upload.
  • Calls are no longer retried automatically.
  • Versions follow the API: YYYY.M.patch (for example 2026.9.2).

The full list of changes is in the changelog.

Configuration

Key Description
serviceApiUrl Your API base URL. Required.
username, password / apiKey Your credentials. Never commit them.
apiType "admin" or "portal".
debugMode Print API call details.
singleton Reuse one SDK instance.

SSO login is also supported; see the documentation.

More

Metadata

Release files for nomad-media-pip 2026.9.2b0

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

Source distribution (sdist)

Source distribution for nomad-media-pip 2026.9.2b0
File Size Uploaded Provenance Actions
nomad_media_pip-2026.9.2b0.tar.gz 215.9 kB Without provenance Details for nomad_media_pip-2026.9.2b0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nomad-media-pip 2026.9.2b0
File Interpreter ABI Platform Actions
nomad_media_pip-2026.9.2b0-py3-none-any.whl Python 3 none any Details for nomad_media_pip-2026.9.2b0-py3-none-any.whl

Total release size: 650.0 kB

Release files / nomad_media_pip-2026.9.2b0.tar.gz

Download URL nomad_media_pip-2026.9.2b0.tar.gz
Size 215.9 kB
Tags Source
SHA-256 checksum
How to use checksums
baf2793373deaa75b534e6eb34cbbd19c1e98f8591f5fef95651b32857e0f518
BLAKE2b-256 checksum
How to use checksums
bd3b2ee91481c67af4ea02db3d66f7113ef3c7467d96025d520bbf6140f296ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / nomad_media_pip-2026.9.2b0-py3-none-any.whl

Download URL nomad_media_pip-2026.9.2b0-py3-none-any.whl
Size 434.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc3dd6585f0fb3783e4fb9a686c70f33ca1c8f4f780eb49f89a6d62cb5985126
BLAKE2b-256 checksum
How to use checksums
b104a6fc0a183da951ca5d530b084d360b913b3c8f58105ac157584e7671c302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Security for nomad-media-pip 2026.9.2b0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release
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