nomad-pydantic
Typed Python models for building, validating, rendering, and managing Nomad jobs.
nomad-pydantic represents jobs, task groups, tasks, resources, services,
volumes, and periodic schedules as Pydantic models. It renders the JSON envelope
accepted by nomad job run -json and provides a mockable client for common
Nomad CLI lifecycle operations.
from nomad_pydantic import Job, NomadConfiguration, Task, TaskGroup
config = NomadConfiguration(
job=Job(
id="hello",
type="batch",
task_groups=[
TaskGroup(
name="hello",
tasks=[
Task(
name="hello",
driver="docker",
config={"image": "alpine:3", "args": ["echo", "hello"]},
)
],
)
],
)
)
config.write()
Documentation
- Tutorial builds and renders a first job.
- How-to guides cover Hydra, periodic jobs, and lifecycle operations.
- Concepts explains the model hierarchy and JSON boundary.
- API reference documents every public model and client.
Ecosystem
nomad-pydantic follows the same configuration pattern as
supervisor-pydantic,
systemd-pydantic, and
cron-pydantic. The broader
declarative Airflow stack is built from
airflow-pydantic and
airflow-config, with runtime
integrations provided by
airflow-supervisor,
airflow-systemd, and
airflow-cron.
Installation
pip install nomad-pydantic
Metadata
Release files for nomad-pydantic 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nomad_pydantic-0.1.1.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nomad_pydantic-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.0 kB
Release files / nomad_pydantic-0.1.1.tar.gz
| Download URL | nomad_pydantic-0.1.1.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
166d8899d2d1c2300f88ded775deec77bacb8139fe515571851e15f0a2d6d6a2
|
|
BLAKE2b-256 checksum How to use checksums |
a8a03aa988dc53dcd53ae242ded2f19fef2749a81bf69e25db51362ec30fd16b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / nomad_pydantic-0.1.1-py3-none-any.whl
| Download URL | nomad_pydantic-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f06b2d8276f174b2a509fb064ba6bc9288933a680ec5fd09e128ec18f416561
|
|
BLAKE2b-256 checksum How to use checksums |
4fd8c1e3a9a156123d657b348d8e28fc225197ae7affab2fbd646ac4f28eb822
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|