Install & Compatibility
Where this runs
tested against v2.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.654s · 21.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.1s · import 0.556s · 22MB
19MB installed
● package 19MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Nomad
✓ from nomad import Nomad
✗ from python_nomad import Nomad
Package name is 'nomad' not 'python_nomad'
NomadException
✓ from nomad.api.exceptions import BaseNomadException
✗ from nomad import NomadException
Exception classes are under nomad.api.exceptions
Initialise a Nomad client and list all jobs.
from nomad import Nomad
client = Nomad(
host='http://127.0.0.1:4646',
token=os.environ.get('NOMAD_TOKEN', ''),
)
jobs = client.jobs.get_jobs()
print(jobs)
Errors
Common errors & fixes
ImportError: cannot import name 'Nomad' from 'nomad'
The package is not installed or import path is incorrect. Usually means 'python-nomad' is not installed.
fixRun 'pip install python-nomad' and ensure you import using 'from nomad import Nomad'.
AttributeError: 'Nomad' object has no attribute 'jobs'
Initialization failed due to missing or invalid host/token, causing the client to not properly set up endpoints.
fixVerify Nomad host is reachable and token is correct. Ensure host starts with http:// or https://.
TypeError: get_jobs() got an unexpected keyword argument 'id'
Passing keyword argument 'id' to an API method after version 2.0.0, where it was renamed to 'id_'.
fixReplace 'id=...' with 'id_=...' in your call.
Upgrade
Version history
2.1.0latest on PyPI · released Feb 4, 2025
Audit
Dependencies
requestsrequiredHTTP library used for all API calls