python-nomad icon indicating copy to clipboard operation
python-nomad copied to clipboard

Nomad logs

Open i4s-strinidad opened this issue 6 years ago • 2 comments

Hi,

Is there any way to execute nomad logs command? I could not see it in the docs and may be a great feature for the library.

i4s-strinidad avatar May 09 '18 08:05 i4s-strinidad

Hey @i4s-strinidad, the client endpoint has changed a couple times with newer releases. Depending on your version of nomad and the client library you might have mixed results.

https://github.com/jrxFive/python-nomad/blob/master/nomad/api/client.py

Probably interested in:

  • https://github.com/jrxFive/python-nomad/blob/master/nomad/api/client.py#L68-L97 (cat)
  • https://github.com/jrxFive/python-nomad/blob/master/nomad/api/client.py#L37-L65 (ls)

If you have any issues with those please let me know and we can try to rectify them; also absolutely right on having them in the documentation.

jonathanrcross avatar May 10 '18 14:05 jonathanrcross

why the tests(https://github.com/jrxFive/python-nomad/tree/master/tests) dose not have "nomad logs" example?
Is there any way to execute nomad logs command?

aaron0428 avatar May 31 '18 01:05 aaron0428