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.3b0

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.3b0
File Size Uploaded Provenance Actions
nomad_media_pip-2026.9.3b0.tar.gz 217.2 kB Without provenance Details for nomad_media_pip-2026.9.3b0.tar.gz

Built distribution (wheel)

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

Total release size: 652.4 kB

Release files / nomad_media_pip-2026.9.3b0.tar.gz

Download URL nomad_media_pip-2026.9.3b0.tar.gz
Size 217.2 kB
Tags Source
SHA-256 checksum
How to use checksums
825fb996bffd1cc08c78dfa243280ba1b50989fe214ba1aa7664813d838129a6
BLAKE2b-256 checksum
How to use checksums
d911339ab407d18c7b068b0edf690411eeb8ed7a5bc108433d61cea33ea248d0
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.3b0-py3-none-any.whl

Download URL nomad_media_pip-2026.9.3b0-py3-none-any.whl
Size 435.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8af32131ab7eaca31f347092e75d964088d6f05cebfc85422ee40af3a90ca7ae
BLAKE2b-256 checksum
How to use checksums
6a54c84de6e7ab3c55820db450f005af46c1dfda30fedbcdf0a5f3526624c988
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.3b0

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