Skip to content

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

License

Notifications You must be signed in to change notification settings

yukinarit/nomad_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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