/nomad_api

(WIP) A Hashicorp Nomad API client written in modern Python.

Primary LanguagePythonMIT LicenseMIT

nomad_api

image image

A Hashicorp Nomad API client written in modern Python.

Motivation

There is already python-nomad library in PyPI, but I wanted to have async based Nomad API client written in modern Python with type annotation.

Installation

nomad_api requires Python 3.9.

  • pip
    pip install nomad_api
    
  • pipenv
    pipenv install nomad_api
    
  • poetry
    poetry add nomad_api
    

Usage

async with nomad.Client("http://localhost:4646") as cli:
    for job in await cli.jobs():
        print(job)

Supported APIs

Nomad 1.0.4