https://github.com/yukinarit/nomad_api
(WIP) A Hashicorp Nomad API client written in modern Python.
https://github.com/yukinarit/nomad_api
hashicorp hashicorp-nomad python
Last synced: 25 days ago
JSON representation
(WIP) A Hashicorp Nomad API client written in modern Python.
- Host: GitHub
- URL: https://github.com/yukinarit/nomad_api
- Owner: yukinarit
- License: mit
- Created: 2021-04-09T14:58:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T06:49:27.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T08:28:03.154Z (3 months ago)
- Topics: hashicorp, hashicorp-nomad, python
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `nomad_api`
[](https://pypi.org/project/nomad_api/) [](https://pypi.org/project/nomad_api/)
A Hashicorp Nomad API client written in modern Python.
## Motivation
There is already [python-nomad](https://github.com/jrxFive/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
```python
async with nomad.Client("http://localhost:4646") as cli:
for job in await cli.jobs():
print(job)
```## Supported APIs
Nomad 1.0.4
* [event_stream](https://www.nomadproject.io/api-docs/events)
* Jobs
* [List jobs](https://www.nomadproject.io/api-docs/jobs#list-jobs)
* [Read job](https://www.nomadproject.io/api-docs/jobs#read-job)