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-nomad,
airflow-supervisor,
airflow-systemd, and
airflow-cron.
Installation
pip install nomad-pydantic
Metadata
Release files for nomad-pydantic 0.2.0
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.2.0.tar.gz | 16.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nomad_pydantic-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.7 kB
Release files / nomad_pydantic-0.2.0.tar.gz
| Download URL | nomad_pydantic-0.2.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85744fd6c72cadfdfcfcc84b6baaef7981d276b0195db780642d6b773ffa808c
|
|
BLAKE2b-256 checksum How to use checksums |
d7aeed56266270be21b95c1043d6c92cd71a4bda58fc0f9f6b69430ce33ddf31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / nomad_pydantic-0.2.0-py3-none-any.whl
| Download URL | nomad_pydantic-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ac10f5c332221e9ed84e05e7cbe757ee80d73a08790ec8f8632ce65efe32502
|
|
BLAKE2b-256 checksum How to use checksums |
ac4ffee16d3a6f0f0bcc3cda3942ec2b82e5d8634f55e1165628c9cc880f98bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|