Skip to main content

nomad-pydantic

Typed Python models for building, validating, rendering, and managing Nomad jobs.

Build Status codecov License PyPI

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.1

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-pydantic 0.2.1
File Size Uploaded Provenance Actions
nomad_pydantic-0.2.1.tar.gz 16.8 kB Without provenance Details for nomad_pydantic-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nomad-pydantic 0.2.1
File Interpreter ABI Platform Actions
nomad_pydantic-0.2.1-py3-none-any.whl Python 3 none any Details for nomad_pydantic-0.2.1-py3-none-any.whl

Total release size: 35.7 kB

Release files / nomad_pydantic-0.2.1.tar.gz

Download URL nomad_pydantic-0.2.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d65016b2deffd78bd0ff3062ce680b4bc6d4ed16fec77762e8ee2e2654821225
BLAKE2b-256 checksum
How to use checksums
7a251f0c6f8436f973d417d0d87c69222d07f62615e3b3e6420c232d506567a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / nomad_pydantic-0.2.1-py3-none-any.whl

Download URL nomad_pydantic-0.2.1-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78884f25d000f9bea7a271378abed1584004e23808e78188242c6c6715cc8842
BLAKE2b-256 checksum
How to use checksums
704cd96216d61f4fcc2e3e060e1697bc00b57d896a76e8f653d76cead953f39d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for nomad-pydantic 0.2.1

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.

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