JinaD Client

You can use JinaDClient or (for your async code) feel free to use AsyncJinaDClient which makes all following code awaitables.

Check if remote server is alive

  1. from daemon.clients import JinaDClient
  2. client = JinaDClient(host=HOST, port=PORT)
  3. assert client.alive

or,

  1. from daemon.clients import AsyncJinaDClient
  2. client = AsyncJinaDClient(host=HOST, port=PORT)
  3. assert await client.alive

Get the status of the remote server

  1. from daemon.clients import JinaDClient
  2. client = JinaDClient(host=HOST, port=PORT)
  3. client.status
  1. {
  2. "jina" {
  3. "jina": "2.1.2",
  4. ...
  5. },
  6. "envs": {
  7. ...
  8. },
  9. "workspaces": {
  10. ...
  11. },
  12. "peas": {
  13. ...
  14. },
  15. "pods": {
  16. ...
  17. }
  18. "flows": {
  19. ...
  20. }
  21. }