#python-nomad
Branch | Status | Coverage |
---|---|---|
develop |
pip install python-nomad
import nomad
n = nomad.Nomad("172.16.100.10",timeout=5)
"example" in n.jobs
j = n.jobs["example"]["ID"]
example_allocation = n.allocation.get_allocations(j)
n.job.deregister_job(j)
Class | contains | len | getitem | iter |
---|---|---|---|---|
agent | N | N | N | N |
allocation | Y | N | Y | N |
allocations | N | Y | N | Y |
client | N | N | N | N |
evaluation | Y | N | Y | N |
evaluations | Y | Y | Y | Y |
job | Y | N | Y | N |
jobs | Y | Y | Y | Y |
node | Y | N | Y | N |
nodes | Y | Y | Y | Y |
regions | Y | Y | Y | Y |
status.leader | Y | Y | N | N |
status.peers | Y | Y | Y | Y |
system | N | N | N | N |
- create virtualenv and activate
- install requirements-dev.txt
- can either use the Vagrantfile for local integration testing or create environment variables
NOMAD_IP
andNOMAD_PORT
that are assigned to a nomad binary that is running
virutalenv venv
source venv/bin/activate
pip install -r requirements-dev.txt
vagrant up --provider virtualbox
py.test --cov=nomad --cov-report=term-missing --runxfail tests/
- examples
- functional tests
- Inherit Base class, remove duplication and override parent dunders
- readthedocs